pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/rspamd



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Mar 20 14:15:16 UTC 2017

Added Files:
        pkgsrc/mail/rspamd: options.mk
        pkgsrc/mail/rspamd/files: rspamd.sh

Log Message:
Add missing files for 1.5.3 update.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/rspamd/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/rspamd/files/rspamd.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/mail/rspamd/options.mk
diff -u /dev/null pkgsrc/mail/rspamd/options.mk:1.1
--- /dev/null   Mon Mar 20 14:15:16 2017
+++ pkgsrc/mail/rspamd/options.mk       Mon Mar 20 14:15:16 2017
@@ -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
+

Index: pkgsrc/mail/rspamd/files/rspamd.sh
diff -u /dev/null pkgsrc/mail/rspamd/files/rspamd.sh:1.1
--- /dev/null   Mon Mar 20 14:15:16 2017
+++ pkgsrc/mail/rspamd/files/rspamd.sh  Mon Mar 20 14:15:16 2017
@@ -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
+



Home | Main Index | Thread Index | Old Index