ports/66005: New port: mail/p5-SpamAssassin-devel - port that follows the 3.0 CVS devel tree of SpamAssassin

Linh Pham question at closedsrc.org
Tue Apr 27 00:50:25 UTC 2004


The following reply was made to PR ports/66005; it has been noted by GNATS.

From: Linh Pham <question at closedsrc.org>
To: Michael Johnson <ahze at ahze.net>
Cc: question+freebsdpr at closedsrc.org,
	freebsd-gnats-submit at FreeBSD.org
Subject: Re: ports/66005: New port: mail/p5-SpamAssassin-devel - port that follows the 3.0 CVS devel tree of SpamAssassin
Date: Mon, 26 Apr 2004 17:44:07 -0700

 --WplhKdTI2c8ulnbP
 Content-Type: multipart/mixed; boundary="+pHx0qQiF2pBVqBT"
 Content-Disposition: inline
 
 
 --+pHx0qQiF2pBVqBT
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On 2004-04-26 20:31 -0400, Michael Johnson <ahze at ahze.net> wrote:
 
 # i can't build it
 #=20
 # gentoo:~/p5-Mail-SpamAssassin-devel root$ make
 # =3D=3D=3D>  Vulnerability check disabled
 # =3D=3D=3D>  Extracting for p5-Mail-SpamAssassin-devel-3.000000
 # >> Checksum OK for Mail-SpamAssassin-3.000000-cvs.tar.gz.
 # =3D=3D=3D>  Patching for p5-Mail-SpamAssassin-devel-3.000000
 # find:=20
 # ./work/Mail-SpamAssassin-3.000000//Mail-SpamAssassin-3.000000-cvs: No=20
 # such file or directory
 # *** Error code 1
 #=20
 # use WRKSRC instead of WRKDIR ie. WRKSRC=3D ${WRKDIR}/XXXXXXX
 
 Thanks for the heads-up. I'm a newbie at hacking Makefiles :)
 
 I've attached the updated Makefile, which I was able to get to build and
 install.
 
 --=20
 Linh Pham                                         question at closedsrc.org
 Webmaster and FreeBSD Geek                          http://closedsrc.org
 Apprentice Manager Editor and Writer           http://www.daemonnews.org
 C++ is to C, as lung cancer is to lung  |  There is always one more bug.
 
 --+pHx0qQiF2pBVqBT
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=sa-devel_Makefile
 
 # 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.57 2004/03/30 20:21:04 sf Exp $
 #
 
 PORTNAME=	Mail-SpamAssassin-devel
 PORTVERSION=	3.000000
 CATEGORIES=	mail perl5
 MASTER_SITES=	http://spamassassin.org/devel/ \
 		${MASTER_SITE_PERL_CPAN}
 # MASTER_SITE_SUBDIR=	Mail
 DISTNAME=	Mail-SpamAssassin-3.000000-cvs
 WRKSRC=		./work/Mail-SpamAssassin-3.000000/
 EXTRACT_SUFX=	.tar.gz
 PKGNAMEPREFIX=	p5-
 
 MAINTAINER=	perl at FreeBSD.org
 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
 RUN_DEPENDS=	${BUILD_DEPENDS} \
 		razor-client:${PORTSDIR}/mail/razor-agents
 
 PERL_CONFIGURE=	yes
 CONFIGURE_ARGS+=	SYSCONFDIR="${PREFIX}/etc" \
 			RUN_RAZOR_TESTS="no" RUN_RAZOR2_TESTS="no" \
 			CONTACT_ADDRESS="the administrator of that system"
 
 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}
 
 USE_RC_SUBR=	yes
 SED_SCRIPT=	-e 's|%%PREFIX%%|${PREFIX}|g' \
 		-e 's|%%RC_SUBR%%|${RC_SUBR}|g'
 post-patch:
 	@${FIND} ${WRKSRC} -name \*.orig -delete
 	@${MV} ${WRKSRC}/rules/local.cf ${WRKSRC}/rules/local.cf.sample
 	@${SED} -e 's#local.cf#local.cf.sample#g' \
 		${WRKSRC}/Makefile.PL > ${WRKSRC}/Makefile.PL.sed
 	@${MV} ${WRKSRC}/Makefile.PL.sed ${WRKSRC}/Makefile.PL
 
 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/* ${DOCSDIR}
 .endif
 	@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
 
 .include <bsd.port.pre.mk>
 
 .if ${PERL_LEVEL} < 500601
 	${ECHO} "This version of SpamAssassin requires Perl 5.6.1 or later."
 	${ECHO} ""
 	@exit 1
 .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>
 
 --+pHx0qQiF2pBVqBT--
 
 --WplhKdTI2c8ulnbP
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFAjazXwhofDeWkDMIRAtDkAKCzsUzMPa33sQQqkW+QodqyLPCPsQCgkK0X
 eesvCm5mRX38SMKxIOy36zQ=
 =Yg2c
 -----END PGP SIGNATURE-----
 
 --WplhKdTI2c8ulnbP--



More information about the freebsd-ports-bugs mailing list