pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/rspamd Add missing files for 1.5.3 update.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f67765fe216
branches:  trunk
changeset: 359951:7f67765fe216
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Mar 20 14:15:16 2017 +0000

description:
Add missing files for 1.5.3 update.

diffstat:

 mail/rspamd/files/rspamd.sh |  37 +++++++++++++++++++++++++++++++++++++
 mail/rspamd/options.mk      |  18 ++++++++++++++++++
 2 files changed, 55 insertions(+), 0 deletions(-)

diffs (63 lines):

diff -r e6bb60859a82 -r 7f67765fe216 mail/rspamd/files/rspamd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/rspamd/files/rspamd.sh       Mon Mar 20 14:15:16 2017 +0000
@@ -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 -r e6bb60859a82 -r 7f67765fe216 mail/rspamd/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/rspamd/options.mk    Mon Mar 20 14:15:16 2017 +0000
@@ -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
+



Home | Main Index | Thread Index | Old Index