diff options
author | Dejan Lesjak <lesi@FreeBSD.org> | 2005-07-25 08:21:27 +0000 |
---|---|---|
committer | Dejan Lesjak <lesi@FreeBSD.org> | 2005-07-25 08:21:27 +0000 |
commit | a58473d9fcd8618853e34fb82050a8af7d481b28 (patch) | |
tree | 714d4db5d37aaf86eede6d379a6f72f162609ef6 /mail/dcc-dccd/Makefile | |
parent | c925442c4b6b4a8bcd8b0ac3ada15cacc0fc2a87 (diff) | |
download | ports-a58473d9fcd8618853e34fb82050a8af7d481b28.tar.gz ports-a58473d9fcd8618853e34fb82050a8af7d481b28.zip |
Notes
Diffstat (limited to 'mail/dcc-dccd/Makefile')
-rw-r--r-- | mail/dcc-dccd/Makefile | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/mail/dcc-dccd/Makefile b/mail/dcc-dccd/Makefile index 54f55979ae6f..18dcd966b455 100644 --- a/mail/dcc-dccd/Makefile +++ b/mail/dcc-dccd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= dcc-dccd -PORTVERSION= 1.3.5 +PORTVERSION= 1.3.9 CATEGORIES= mail MASTER_SITES= http://www.rhyolite.com/anti-spam/dcc/source/ \ http://www.wa.apana.org.au/~dean/sources/ \ @@ -16,10 +16,6 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= dean@odyssey.apana.org.au COMMENT= Distributed Checksum Clearinghouse procmail, sendmail support -BROKEN= Incomplete pkg-plist -DEPRECATED= ${BROKEN} -EXPIRATION_DATE=2005-09-22 - USE_REINPLACE= yes HAS_CONFIGURE= yes MANCOMPRESSED= yes @@ -37,11 +33,12 @@ DCCUID?= 112 DCCGROUP?= dcc DCCGID?= 112 -# if no preference was set, check for an up to date base version -# but give an installed port preference over it. +# +# Use configure script to set locations of all files. Use of +# sed scripting breaks things. +# -HOMEDIR= ${PREFIX}/dcc -CONFIGURE_ARGS= --homedir=${HOMEDIR} +CONFIGURE_ARGS= --homedir=${PREFIX}/dcc --bindir=${PREFIX}/bin --mandir=${PREFIX}/man --with-rundir=/var/run .include <bsd.port.pre.mk> @@ -87,6 +84,7 @@ PLIST_SUB+= WITH_DCCIFD="" .endif CONFIGURE_ARGS+= --with-uid=${DCCUSER} + SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \ -e 's|%%DCCUSER%%|${DCCUSER}|g' -e 's|%%DCCUID%%|${DCCUID}|g' \ -e 's|%%DCCGROUP%%|${DCCGROUP}|g' -e 's|%%DCCGID%%|${DCCGID}|g' @@ -102,23 +100,12 @@ pre-everything:: @${ECHO_MSG} 'WITHOUT_SENDMAIL=yes' @${ECHO_MSG} '' -post-patch: - ${FIND} ${WRKSRC} -type f -exec \ - ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' {} \; - ${REINPLACE_CMD} -e 's,PTHREAD_LDFLAGS="$$PTHREAD_LDFLAGS -pthread,PTHREAD_LDFLAGS="$$PTHREAD_LDFLAGS,g' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's,FreeBSD)\n\tPTHREAD_LDFLAGS,FreeBSD)\n\tDCC_CFLAGS="${PTHREAD_CFLAGS} $$DCC_CFLAGS"\n\tPTHREAD_LDFLAGS,g' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's,PTHREAD_LIBS="$$PTHREAD_LIBS -lc_r,PTHREAD_LIBS=" ${PTHREAD_LIBS},g' ${WRKSRC}/configure - post-build: @${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install >${PKGINSTALL} @${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-deinstall >${PKGDEINSTALL} pre-install: @${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL - -post-install: - @[ -s ${HOMEDIR}/dcc_conf ] || \ - ${CP} ${HOMEDIR}/dcc_conf.dist ${HOMEDIR}/dcc_conf + ${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL .include <bsd.port.post.mk> |