pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/spamass-milter Add startup script, as requested i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2701e2de45bb
branches: trunk
changeset: 461158:2701e2de45bb
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Thu Sep 11 18:22:40 2003 +0000
description:
Add startup script, as requested in PR pkg/22724 by Chris Jones.
Bump PKGREVISION to 2.
diffstat:
mail/spamass-milter/Makefile | 7 +++++--
mail/spamass-milter/PLIST | 5 +++--
mail/spamass-milter/files/spamass-milter.sh | 25 +++++++++++++++++++++++++
3 files changed, 33 insertions(+), 4 deletions(-)
diffs (63 lines):
diff -r 83f71d04642e -r 2701e2de45bb mail/spamass-milter/Makefile
--- a/mail/spamass-milter/Makefile Thu Sep 11 18:12:00 2003 +0000
+++ b/mail/spamass-milter/Makefile Thu Sep 11 18:22:40 2003 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2003/07/17 21:47:02 grant Exp $
+# $NetBSD: Makefile,v 1.5 2003/09/11 18:22:40 jmmv Exp $
#
DISTNAME= spamass-milter-0.1.3a
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://savannah.nongnu.org/download/spamass-milt/
@@ -14,6 +14,9 @@
USE_BUILDLINK2= YES
GNU_CONFIGURE= YES
+USE_PKGINSTALL= YES
+
+RCD_SCRIPTS= spamass-milter
.include "../../mail/libmilter/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"
diff -r 83f71d04642e -r 2701e2de45bb mail/spamass-milter/PLIST
--- a/mail/spamass-milter/PLIST Thu Sep 11 18:12:00 2003 +0000
+++ b/mail/spamass-milter/PLIST Thu Sep 11 18:22:40 2003 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/03 14:46:02 manu Exp $
+@comment $NetBSD: PLIST,v 1.2 2003/09/11 18:22:40 jmmv Exp $
+etc/rc.d/spamass-milter
+man/man1/spamass-milter.1
sbin/spamass-milter
-man/man1/spamass-milter.1
diff -r 83f71d04642e -r 2701e2de45bb mail/spamass-milter/files/spamass-milter.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamass-milter/files/spamass-milter.sh Thu Sep 11 18:22:40 2003 +0000
@@ -0,0 +1,25 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: spamass-milter.sh,v 1.1 2003/09/11 18:22:41 jmmv Exp $
+#
+
+# PROVIDE: spamass-milter
+# REQUIRE: spamd
+# KEYWORD: shutdown
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="spamass_milter"
+rcvar=${name}
+command="@PREFIX@/sbin/spamass-milter"
+command_args="-u nobody -p /var/run/spamass.sock -f"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ @ECHO@ -n " ${name}"
+ ${command} ${spamass_milter_flags} ${command_args}
+fi
Home |
Main Index |
Thread Index |
Old Index