blob: e0cae764519a0397ca7bcd4cabae98131c93be4c (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: p5-Mail-SpamAssassin-devel
# Date created: Dec 5 2002
# Whom: Brian Fundakowski Feldman
#
# $FreeBSD$
#
PORTNAME= Mail-SpamAssassin
PORTVERSION= 2.51
PORTREVISION= 0
CATEGORIES= mail perl5
MASTER_SITES= http://spamassassin.org/devel/ \
${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Mail
PKGNAMEPREFIX= p5-
MAINTAINER= DougB@FreeBSD.org
COMMENT= A mail filter for identifying SPAM
BROKEN= "mail/p5-Mail-SpamAssassin has been updated to 2.50"
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools
RUN_DEPENDS= ${BUILD_DEPENDS} \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
razor-client:${PORTSDIR}/mail/razor-agents
PODPARSER= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
RUN_DEPENDS+= ${PODPARSER}
BUILD_DEPENDS+= ${PODPARSER}
NO_LATEST_LINK= yes
PERL_CONFIGURE= yes
CONFIGURE_ARGS+= SYSCONFDIR="${PREFIX}/etc" RUN_RAZOR1_TESTS="no" \
RUN_RAZOR2_TESTS="no"
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Mail::SpamAssassin.3 Mail::SpamAssassin::PerMsgStatus.3 \
Mail::SpamAssassin::Conf.3 \
Mail::SpamAssassin::PersistentAddrList.3 \
Mail::SpamAssassin::PerMsgLearner.3 \
Mail::SpamAssassin::Bayes.3
MAN1PREFIX= ${PREFIX}
MAN1= spamd.1 spamassassin.1 spamc.1 sa-learn-nonspam.1 \
sa-learn-spam.1 sa-learn-rebuild.1 sa-forget.1
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples//${PKGNAMEPREFIX}${PORTNAME}
post-patch:
.for file in Makefile.PL build/preprocessor.pm
@${CP} ${WRKSRC}/${file} ${WRKSRC}/${file}.orig
@${SED} -e 's#::Post545##' ${WRKSRC}/${file}.orig > ${WRKSRC}/${file}
.endfor
@${FIND} ${WRKSRC} -name \*.orig -delete
post-install:
@strip ${PREFIX}/bin/spamc
${INSTALL_SCRIPT} ${FILESDIR}/spamd.sh ${PREFIX}/etc/rc.d/spamd.sh-dist
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/sql/README ${DOCSDIR}/README.sql
cd ${WRKSRC} ; ${INSTALL_DATA} \
BUGS COPYRIGHT Changes README TRADEMARK procmailrc.example sample* \
spamd/README* sql/spamassassin.sql ${DOCSDIR}
.endif
.include <bsd.port.mk>
|