diff options
author | abs <abs> | 2002-08-30 10:50:51 +0000 |
---|---|---|
committer | abs <abs> | 2002-08-30 10:50:51 +0000 |
commit | 923d31a0ebd478b804bf0549166c14358a16fb95 (patch) | |
tree | ec694b65a77a7c05db10bd3a4dcfc2becb90a2e5 /mail | |
parent | 6933ed10a6199afcae48ff61cbf3b5728cd0c4e1 (diff) | |
download | pkgsrc-923d31a0ebd478b804bf0549166c14358a16fb95.tar.gz |
Updated spamassassin to 2.31nb1
Add rc.d/spamd (From norm at sandbox org uk)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamassassin/Makefile | 8 | ||||
-rw-r--r-- | mail/spamassassin/PLIST | 3 | ||||
-rwxr-xr-x | mail/spamassassin/files/spamd.sh | 17 |
3 files changed, 26 insertions, 2 deletions
diff --git a/mail/spamassassin/Makefile b/mail/spamassassin/Makefile index ff5b9201ab3..d9ae6936d4a 100644 --- a/mail/spamassassin/Makefile +++ b/mail/spamassassin/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.4 2002/08/26 16:00:52 hubertf Exp $ +# $NetBSD: Makefile,v 1.5 2002/08/30 10:50:51 abs Exp $ DISTNAME= Mail-SpamAssassin-2.31 PKGNAME= spamassassin-2.31 SVR4_PKGNAME= sa +PKGREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Mail/} @@ -13,6 +14,8 @@ COMMENT= mail filter to identify spam DEPENDS+= p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS DEPENDS+= p5-Time-HiRes-[0-9]*:../../time/p5-Time-HiRes +RCD_SCRIPTS= spamd + USE_BUILDLINK_ONLY= YES PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Mail/SpamAssassin/.packlist @@ -28,6 +31,8 @@ do-configure: @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL post-install: + ${SED} -e 's:@PREFIX@:${PREFIX}:' ${FILESDIR}/spamd.sh \ + > ${PREFIX}/etc/rc.d/spamd .for d in spamassassin spamassassin/sql spamassassin/spamd ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/$d .endfor @@ -37,4 +42,5 @@ post-install: .endfor .include "../../lang/perl5/buildlink.mk" +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" diff --git a/mail/spamassassin/PLIST b/mail/spamassassin/PLIST index c3a1cfa3839..f270be44a55 100644 --- a/mail/spamassassin/PLIST +++ b/mail/spamassassin/PLIST @@ -1,8 +1,9 @@ -@comment $NetBSD: PLIST,v 1.4 2002/08/26 16:00:52 hubertf Exp $ +@comment $NetBSD: PLIST,v 1.5 2002/08/30 10:50:51 abs Exp $ @comment bin/spamassassin @comment bin/spamc @comment bin/spamd @comment bin/spamproxyd +etc/rc.d/spamd share/doc/spamassassin/README share/doc/spamassassin/procmailrc.example share/doc/spamassassin/sample-nonspam.txt diff --git a/mail/spamassassin/files/spamd.sh b/mail/spamassassin/files/spamd.sh new file mode 100755 index 00000000000..3b85ef08ac8 --- /dev/null +++ b/mail/spamassassin/files/spamd.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# +# $NetBSD: spamd.sh,v 1.1 2002/08/30 10:50:52 abs Exp $ +# +# PROVIDE: spamd + +. /etc/rc.subr + +name="spamd" +rcvar=$name +command="/usr/pkg/bin/${name}" +command_args="-r /var/run/${name}.pid" +command_interpreter="@PREFIX@/bin/perl" +pidfile="/var/run/${name}.pid" + +load_rc_config $name +run_rc_command "$1" |