Updated spamassassin to 2.31nb1

Add rc.d/spamd (From norm at sandbox org uk)
This commit is contained in:
abs 2002-08-30 10:50:51 +00:00
parent dfd095b58c
commit 09a910259e
3 changed files with 26 additions and 2 deletions

View file

@ -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"

View file

@ -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

View file

@ -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"