Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2004 19:57:38 -0700
From:      Linh Pham <question@closedsrc.org>
To:        Michael Johnson <ahze@ahze.net>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/66005: New port: mail/p5-SpamAssassin-devel - port that follows the 3.0 CVS devel tree of SpamAssassin
Message-ID:  <20040427025738.GA92553@q.internal.closedsrc.org>
In-Reply-To: <78874ECE-97F3-11D8-9F3D-000A958C81C6@ahze.net>
References:  <200404270050.i3R0oOsR099406@freefall.freebsd.org> <78874ECE-97F3-11D8-9F3D-000A958C81C6@ahze.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--kORqDWCi7qDJ0mEj
Content-Type: multipart/mixed; boundary="PNTmBPCT7hxwcZjr"
Content-Disposition: inline


--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2004-04-26 22:34 -0400, Michael Johnson <ahze@ahze.net> wrote:

# you want ${WRKDIR} instead of ./work because people like me who have=20
# one ports dir and do ports over nfs use WRKDIR=3D/some/other/dir so it=20
# doesn't actually do the build over nfs.

Thanks. I've changed WRKSRC to use ${WRKDIR} instead.

# you want to use USE_REINPLACE=3Dyes and ${REINPLACE_CMD} instead of ${SED}

I've replaced two out of three of the ${SED} instances with
${REINPLACE_CMD}. The other one caused Makefile.PL to not be edited
properly. I pretty much used the mail/p5-Mail-SpamAssassin port as a
basis for this one.

--=20
Linh Pham                                         question@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.

--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="sa-devel_Makefile,v2.diff"
Content-Transfer-Encoding: quoted-printable

--- sa-devel_Makefile	Mon Apr 26 17:42:04 2004
+++ sa-devel_Makefile,v2	Mon Apr 26 19:54:25 2004
@@ -12,10 +12,12 @@
 		${MASTER_SITE_PERL_CPAN}
 # MASTER_SITE_SUBDIR=3D	Mail
 DISTNAME=3D	Mail-SpamAssassin-3.000000-cvs
-WRKSRC=3D		./work/Mail-SpamAssassin-3.000000/
+WRKSRC=3D		${WRKDIR}/Mail-SpamAssassin-3.000000/
 EXTRACT_SUFX=3D	.tar.gz
 PKGNAMEPREFIX=3D	p5-
=20
+USE_REINPLACE=3D	yes
+
 MAINTAINER=3D	perl@FreeBSD.org
 COMMENT=3D	A highly efficient mail filter for identifying spam
=20
@@ -27,7 +29,6 @@
=20
 PERL_CONFIGURE=3D	yes
 CONFIGURE_ARGS+=3D	SYSCONFDIR=3D"${PREFIX}/etc" \
-			RUN_RAZOR_TESTS=3D"no" RUN_RAZOR2_TESTS=3D"no" \
 			CONTACT_ADDRESS=3D"the administrator of that system"
=20
 MAN3=3D		Mail::SpamAssassin.3 Mail::SpamAssassin::PerMsgStatus.3 \
@@ -53,7 +54,7 @@
 	@${MV} ${WRKSRC}/Makefile.PL.sed ${WRKSRC}/Makefile.PL
=20
 post-build:
-	@${SED} ${SED_SCRIPT} ${FILESDIR}/spamd.sh > ${WRKDIR}/spamd.sh
+	@${REINPLACE_CMD} ${SED_SCRIPT} ${FILESDIR}/spamd.sh > ${WRKDIR}/spamd.sh
=20
 post-install:
 	@${STRIP_CMD} ${PREFIX}/bin/spamc
@@ -65,7 +66,7 @@
 	    BUGS COPYRIGHT Changes README TRADEMARK procmailrc.example sample* \
 	    spamd/README* sql/* ${DOCSDIR}
 .endif
-	@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
+	@${REINPLACE_CMD} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
=20
 .include <bsd.port.pre.mk>
=20

--PNTmBPCT7hxwcZjr--

--kORqDWCi7qDJ0mEj
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAjcwiwhofDeWkDMIRAs5zAJ0VxCn4CxOePCByGeSGssjyQkp9ZQCcDKM2
qT27fSCELZ9MfD8pdtEO3ys=
=Mr1o
-----END PGP SIGNATURE-----

--kORqDWCi7qDJ0mEj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040427025738.GA92553>