I've gotten a Makefile mostly tuned for sa3, based on the FreeBSD port makefile for 2.64. I've added most of the dependencies, but FreeBSD doesn't have ports for Net::SMTP or IP::Country::Fast, so those two features can't be auto-installed unless the ports maintainer comes up with them.

I'm also not *quite* sure of the syntax for requiring a specific *version* of a perl module from within the ports tree.

I've added an optional WITH_SSL=yes define that will auto-ssl-ify things.

Finally, there's a few prompts that as-of-yet cannot be bypassed, I've opened a bug on those.

So, suffice it to say it should be a while before we see this in the ports tree. I'm going to send my changes along to [EMAIL PROTECTED] and see what they think.

-Dan


--

"Goodbye my peoples.  I'll miss each one of you.  Sniff-Sniff I now know
the true meaning of love.  Thank you Sniff-Sniff.  You are all in my
heart."

-Chris D.

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------
# New ports collection makefile for:    p5-Mail-SpamAssassin
# Date created:                         Nov 26 2001
# Whom:                                 Anthony Kim
#
# $FreeBSD: ports/mail/p5-Mail-SpamAssassin/Makefile,v 1.59 2004/08/05 13:33:18 
mat Exp $
#

PORTNAME=       Mail-SpamAssassin
PORTVERSION=    3.0.0
CATEGORIES=     mail perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=     Mail
PKGNAMEPREFIX=  p5-

MAINTAINER=     [EMAIL PROTECTED]
COMMENT=        A highly efficient mail filter for identifying spam

BUILD_DEPENDS=  ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS 
\
                
${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
                ${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools \
                
${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
                
${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
                
${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
                
${SITE_PERL}/Mail/SPF/Query.pm:${PORTSDIR}/mail/p5-Mail-SPF-Query \
                
${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes

RUN_DEPENDS=    ${BUILD_DEPENDS} \
                razor-client:${PORTSDIR}/mail/razor-agents \
                cdcc:${PORTSDIR}/mail/dcc-dccd \
                pyzor:${PORTSDIR}/mail/pyzor


PERL_CONFIGURE= yes
CONFIGURE_ARGS+=        SYSCONFDIR="${PREFIX}/etc" \
                        RUN_NET_TESTS="no" \
                        CONTACT_ADDRESS="the administrator of that system"

.if defined(WITH_SSL) 
CFLAGS+=                -DSPAMC_SSL
CONFIGURE_ARGS+=        ENABLE_SSL="yes"
BUILD_DEPENDS+=         
${SITE_PERL}/IO/Socket/SSL.pm:${$PORTSDIR}/security/p5-IO-Socket-SSL
.endif



MAN3=           Mail::SpamAssassin.3 Mail::SpamAssassin::PerMsgStatus.3 \
                Mail::SpamAssassin::Conf.3 \
                Mail::SpamAssassin::PersistentAddrList.3 \
                Mail::SpamAssassin::PerMsgLearner.3 \
                Mail::SpamAssassin::Bayes.3 \
                Mail::SpamAssassin::AutoWhitelist.3 \
                Mail::SpamAssassin::ConfSourceSQL.3

MAN1=           spamd.1 spamassassin.1 spamc.1 sa-learn.1

DOCSDIR=        ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
DATADIR=        ${PREFIX}/share/spamassassin

USE_RC_SUBR=    yes
SED_SCRIPT=     -e 's|%%PREFIX%%|${PREFIX}|g' \
                -e 's|%%RC_SUBR%%|${RC_SUBR}|g'


post-build:
        @${SED} ${SED_SCRIPT} ${FILESDIR}/spamd.sh > ${WRKDIR}/spamd.sh

post-install:
        @${STRIP_CMD} ${PREFIX}/bin/spamc
        ${INSTALL_SCRIPT} ${WRKDIR}/spamd.sh ${PREFIX}/etc/rc.d/spamd.sh
.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#${PREFIX}#' ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
RUN_DEPENDS+=   ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
BUILD_DEPENDS+= ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
.endif

.if ${PERL_LEVEL} < 500800
RUN_DEPENDS+=   
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
.endif

.include <bsd.port.post.mk>

Reply via email to