blob: d9ae6936d4a7ffb2107daffd767063cb965ecf8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $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/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.spamassassin.org/
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
post-patch:
@(cd ${WRKSRC}; \
for f in README Makefile.PL lib/Mail/SpamAssassin/Conf.pm ; do \
${SED} -e "s,/usr/share,${PREFIX}/share," \
-e "s,/etc/mail,${PKG_SYSCONFBASE},g" $$f > $$f.fixed && \
${MV} $$f.fixed $$f; \
done)
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
.for f in README procmailrc.example sample-nonspam.txt sample-spam.txt \
sql/README sql/spamassassin.sql spamd/README.spamd
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/spamassassin/$f
.endfor
.include "../../lang/perl5/buildlink.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
|