diff options
author | wiz <wiz@pkgsrc.org> | 2017-03-20 14:15:16 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2017-03-20 14:15:16 +0000 |
commit | d15083fba3b13d336a2bd4bb53642745808dcf75 (patch) | |
tree | 9444b4cfaea6c6debad84668f6806ed0bc865f8a /mail/rspamd | |
parent | 135404fa15b00953831f8bb65c25cd168a7d8a86 (diff) | |
download | pkgsrc-d15083fba3b13d336a2bd4bb53642745808dcf75.tar.gz |
Add missing files for 1.5.3 update.
Diffstat (limited to 'mail/rspamd')
-rw-r--r-- | mail/rspamd/files/rspamd.sh | 37 | ||||
-rw-r--r-- | mail/rspamd/options.mk | 18 |
2 files changed, 55 insertions, 0 deletions
diff --git a/mail/rspamd/files/rspamd.sh b/mail/rspamd/files/rspamd.sh new file mode 100644 index 00000000000..c042b2329c5 --- /dev/null +++ b/mail/rspamd/files/rspamd.sh @@ -0,0 +1,37 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: rspamd.sh,v 1.1 2017/03/20 14:15:16 wiz Exp $ +# +# PROVIDE: rspamd +# REQUIRE: DAEMON +# BEFORE: mail + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="rspamd" +rcvar=$name +command="@PREFIX@/bin/rspamd" +pidfile="@VARBASE@/run/rspamd/${name}.pid" +command_args="-c @PKG_SYSCONFDIR@/rspamd.conf" +required_files="@PKG_SYSCONFDIR@/rspamd.conf" +start_precmd="rspamd_precmd" + +rspamd_precmd() +{ + if [ ! -d @VARBASE@/run/rspamd ]; then + @MKDIR@ @VARBASE@/run/rspamd + @CHMOD@ 0755 @VARBASE@/run/rspamd + @CHOWN@ @RSPAMD_USER@:@RSPAMD_GROUP@ @VARBASE@/run/rspamd + fi +} + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n " ${name}" + ${command} ${rspamd_flags} ${command_args} +fi + diff --git a/mail/rspamd/options.mk b/mail/rspamd/options.mk new file mode 100644 index 00000000000..e4fa9b0b2cf --- /dev/null +++ b/mail/rspamd/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1 2017/03/20 14:15:16 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.rspamd + +PKG_SUPPORTED_OPTIONS= gd + +.include "../../mk/bsd.options.mk" + +### +### Enable fuzzy matching for images +### +.if !empty(PKG_OPTIONS:Mgd) +.include "../../graphics/gd/buildlink3.mk" +CMAKE_ARGS+= -DENABLE_GD=ON +.else +CMAKE_ARGS+= -DENABLE_GD=OFF +.endif + |