diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-12-01 02:28:59 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-12-01 02:28:59 +0000 |
commit | de16f04ab36d6ea113aa6b3220a004c520763e37 (patch) | |
tree | 82575866a591141d3e82097c54c53084045da07d /net-mgmt/cricket/Makefile | |
parent | 0cffd23e0b706be2984269d843f4a8c746eb7d34 (diff) | |
download | ports-de16f04ab36d6ea113aa6b3220a004c520763e37.tar.gz ports-de16f04ab36d6ea113aa6b3220a004c520763e37.zip |
- relocate PKGMESSAGE and unbreak this port
- replace files/patch-* with REINPLACE_CMD
Notes
Notes:
svn path=/head/; revision=122858
Diffstat (limited to 'net-mgmt/cricket/Makefile')
-rw-r--r-- | net-mgmt/cricket/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/net-mgmt/cricket/Makefile b/net-mgmt/cricket/Makefile index 7f2164e879ea..9e33e6e7513b 100644 --- a/net-mgmt/cricket/Makefile +++ b/net-mgmt/cricket/Makefile @@ -33,6 +33,16 @@ CRICKET_USER?= wwwadm CRICKET_UID?= 81 CRICKET_GROUP?= www CRICKET_GID?= 80 +USE_REINPLACE= yes +PKGMESSAGE= ${WRKDIR}/pkg-message + +post-patch: + @${REINPLACE_CMD} -e 's,/home/cricket,${PREFIX},g' \ + ${WRKSRC}/cricket-conf.pl.sample + @${REINPLACE_CMD} -e 's,/usr/local/net/bin/ssh,/usr/bin/ssh,g' \ + ${WRKSRC}/sample-config/news-server/Defaults + @${SED} -e 's,%%PREFIX%%,${PREFIX},' ${FILESDIR}/pkg-message.in > \ + ${PKGMESSAGE} do-install: @PREFIX="${PREFIX}" USER="${CRICKET_USER}" GROUP="${CRICKET_GROUP}" \ @@ -53,12 +63,9 @@ do-install: ${ECHO_MSG} "You should migrate manually to use new cricket"; \ ${ECHO_MSG} "installation scheme."; \ fi + @${INSTALL_DATA} ${WRKSRC}/cricket-conf.pl.sample ${PREFIX}/etc/cricket-conf.pl.dist post-install: - @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/cricket-conf.pl.sample \ - > ${PREFIX}/etc/cricket-conf.pl.dist - @${SED} -e 's,%%PREFIX%%,${PREFIX},' ${FILESDIR}/pkg-message.in > \ - ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> |