67 lines
2.1 KiB
Makefile
67 lines
2.1 KiB
Makefile
# New ports collection makefile for: p5-Mail-SpamAssassin
|
|
# Date created: Nov 26 2001
|
|
# Whom: Anthony Kim
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Mail-SpamAssassin
|
|
PORTVERSION= 2.50
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail perl5
|
|
MASTER_SITES= http://spamassassin.org/released/ \
|
|
${MASTER_SITE_PERL_CPAN}
|
|
MASTER_SITE_SUBDIR= Mail
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= DougB@FreeBSD.org
|
|
COMMENT= A highly efficient mail filter for identifying spam
|
|
|
|
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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
PODPARSER= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
|
|
RUN_DEPENDS+= ${PODPARSER}
|
|
BUILD_DEPENDS+= ${PODPARSER}
|
|
.endif
|
|
|
|
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.1
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name \*.orig -delete
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${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} INSTALL USAGE \
|
|
BUGS COPYRIGHT Changes README TRADEMARK procmailrc.example sample* \
|
|
spamd/README* sql/spamassassin.sql ${DOCSDIR}
|
|
.endif
|
|
|
|
@${SED} -e 's#PREFIX#/usr/local#' pkg-message
|
|
|
|
.include <bsd.port.post.mk>
|