diff options
author | jmmv <jmmv> | 2003-09-11 18:22:40 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2003-09-11 18:22:40 +0000 |
commit | 58830a700e4a4adb4c94567f117954c009f3df4c (patch) | |
tree | 012220453115e4e43d82dd7db10ef22b5a2a03df /mail | |
parent | 7c4fbedb397ccafa3bbc62c3b7d81dcf4a899417 (diff) | |
download | pkgsrc-58830a700e4a4adb4c94567f117954c009f3df4c.tar.gz |
Add startup script, as requested in PR pkg/22724 by Chris Jones.
Bump PKGREVISION to 2.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamass-milter/Makefile | 7 | ||||
-rw-r--r-- | mail/spamass-milter/PLIST | 5 | ||||
-rw-r--r-- | mail/spamass-milter/files/spamass-milter.sh | 25 |
3 files changed, 33 insertions, 4 deletions
diff --git a/mail/spamass-milter/Makefile b/mail/spamass-milter/Makefile index 8f0b7d70929..007992b169d 100644 --- a/mail/spamass-milter/Makefile +++ b/mail/spamass-milter/Makefile @@ -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 @@ DEPENDS+= spamassassin>=2.44:../../mail/spamassassin USE_BUILDLINK2= YES GNU_CONFIGURE= YES +USE_PKGINSTALL= YES + +RCD_SCRIPTS= spamass-milter .include "../../mail/libmilter/buildlink2.mk" .include "../../mk/pthread.buildlink2.mk" diff --git a/mail/spamass-milter/PLIST b/mail/spamass-milter/PLIST index f1470789460..34c6144a38f 100644 --- a/mail/spamass-milter/PLIST +++ b/mail/spamass-milter/PLIST @@ -1,3 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/03 14:46:02 manu Exp $ -sbin/spamass-milter +@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 diff --git a/mail/spamass-milter/files/spamass-milter.sh b/mail/spamass-milter/files/spamass-milter.sh new file mode 100644 index 00000000000..4b068b4d038 --- /dev/null +++ b/mail/spamass-milter/files/spamass-milter.sh @@ -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 |