From dd3458f5e040683d82f2482da43b3599b3518890 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Tue, 28 Dec 2004 02:31:37 +0000 Subject: [PATCH] - Take care of leftover directory - Use SUB_FILES PR: ports/75522 Submitted by: Florent Thoumie (maintainer) --- net-p2p/bnbt/Makefile | 11 +++-------- net-p2p/bnbt/files/{bnbt.sh => bnbt.sh.in} | 0 net-p2p/bnbt/files/pkg-message.in | 5 +---- net-p2p/bnbt/pkg-plist | 3 +++ net/bnbt/Makefile | 11 +++-------- net/bnbt/files/{bnbt.sh => bnbt.sh.in} | 0 net/bnbt/files/pkg-message.in | 5 +---- net/bnbt/pkg-plist | 3 +++ 8 files changed, 14 insertions(+), 24 deletions(-) rename net-p2p/bnbt/files/{bnbt.sh => bnbt.sh.in} (100%) create mode 100644 net-p2p/bnbt/pkg-plist rename net/bnbt/files/{bnbt.sh => bnbt.sh.in} (100%) create mode 100644 net/bnbt/pkg-plist diff --git a/net-p2p/bnbt/Makefile b/net-p2p/bnbt/Makefile index 03352b698dea..9a4787907b6e 100644 --- a/net-p2p/bnbt/Makefile +++ b/net-p2p/bnbt/Makefile @@ -7,6 +7,7 @@ PORTNAME= bnbt PORTVERSION= 8.1b3 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://bnbt.go-dedicated.com/ \ http://www.oook.cz/bsd/distfiles/ @@ -17,16 +18,14 @@ COMMENT= A C++ BitTorrent Tracker USE_ZIP= yes WRKSRC= ${WRKDIR}/${PORTNAME}/src -PKGMESSAGE= ${WRKDIR}/pkg-message USE_GMAKE= yes USE_REINPLACE= yes USE_RC_SUBR= yes -SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ - -e 's,%%RC_SUBR%%,${RC_SUBR},g' +SUB_FILES= pkg-message bnbt.sh +SUB_LIST= RC_SUBR="${RC_SUBR}" -PLIST_FILES= bin/bnbt PORTDOCS= footer.html header.html lesser.txt readme.txt users.txt .if defined(WITH_MYSQL) @@ -47,10 +46,6 @@ post-patch: @${REINPLACE_CMD} -e 's|bnbt.cfg|${PREFIX}/etc/${PORTNAME}/bnbt.cfg|' \ ${WRKSRC}/config.h ${WRKSRC}/config.cpp ${WRKSRC}/tracker.cpp -post-build: - @${SED} ${SED_SCRIPT} ${FILESDIR}/bnbt.sh > ${WRKDIR}/bnbt.sh - @${SED} ${SED_SCRIPT} ${FILESDIR}/pkg-message.in > ${WRKDIR}/pkg-message - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${ALL_TARGET} ${PREFIX}/bin/bnbt ${MKDIR} ${PREFIX}/etc/${PORTNAME} diff --git a/net-p2p/bnbt/files/bnbt.sh b/net-p2p/bnbt/files/bnbt.sh.in similarity index 100% rename from net-p2p/bnbt/files/bnbt.sh rename to net-p2p/bnbt/files/bnbt.sh.in diff --git a/net-p2p/bnbt/files/pkg-message.in b/net-p2p/bnbt/files/pkg-message.in index b13bde3da32c..5543af77c8df 100644 --- a/net-p2p/bnbt/files/pkg-message.in +++ b/net-p2p/bnbt/files/pkg-message.in @@ -1,12 +1,9 @@ ************************************************************ - Bnbt has been successfully installed. In order to run bnbt, add the following lines to /etc/rc.conf: bnbt_enable="YES" -Then start the server with - %%PREFIX%%/etc/rc.d/bnbt.sh start +Then start the server with %%PREFIX%%/etc/rc.d/bnbt.sh start or reboot. - ************************************************************ diff --git a/net-p2p/bnbt/pkg-plist b/net-p2p/bnbt/pkg-plist new file mode 100644 index 000000000000..2754d85dc396 --- /dev/null +++ b/net-p2p/bnbt/pkg-plist @@ -0,0 +1,3 @@ +bin/bnbt +@exec mkdir -p %D/etc/bnbt +@unexec rmdir %D/etc/bnbt 2>/dev/null || true diff --git a/net/bnbt/Makefile b/net/bnbt/Makefile index 03352b698dea..9a4787907b6e 100644 --- a/net/bnbt/Makefile +++ b/net/bnbt/Makefile @@ -7,6 +7,7 @@ PORTNAME= bnbt PORTVERSION= 8.1b3 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://bnbt.go-dedicated.com/ \ http://www.oook.cz/bsd/distfiles/ @@ -17,16 +18,14 @@ COMMENT= A C++ BitTorrent Tracker USE_ZIP= yes WRKSRC= ${WRKDIR}/${PORTNAME}/src -PKGMESSAGE= ${WRKDIR}/pkg-message USE_GMAKE= yes USE_REINPLACE= yes USE_RC_SUBR= yes -SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ - -e 's,%%RC_SUBR%%,${RC_SUBR},g' +SUB_FILES= pkg-message bnbt.sh +SUB_LIST= RC_SUBR="${RC_SUBR}" -PLIST_FILES= bin/bnbt PORTDOCS= footer.html header.html lesser.txt readme.txt users.txt .if defined(WITH_MYSQL) @@ -47,10 +46,6 @@ post-patch: @${REINPLACE_CMD} -e 's|bnbt.cfg|${PREFIX}/etc/${PORTNAME}/bnbt.cfg|' \ ${WRKSRC}/config.h ${WRKSRC}/config.cpp ${WRKSRC}/tracker.cpp -post-build: - @${SED} ${SED_SCRIPT} ${FILESDIR}/bnbt.sh > ${WRKDIR}/bnbt.sh - @${SED} ${SED_SCRIPT} ${FILESDIR}/pkg-message.in > ${WRKDIR}/pkg-message - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${ALL_TARGET} ${PREFIX}/bin/bnbt ${MKDIR} ${PREFIX}/etc/${PORTNAME} diff --git a/net/bnbt/files/bnbt.sh b/net/bnbt/files/bnbt.sh.in similarity index 100% rename from net/bnbt/files/bnbt.sh rename to net/bnbt/files/bnbt.sh.in diff --git a/net/bnbt/files/pkg-message.in b/net/bnbt/files/pkg-message.in index b13bde3da32c..5543af77c8df 100644 --- a/net/bnbt/files/pkg-message.in +++ b/net/bnbt/files/pkg-message.in @@ -1,12 +1,9 @@ ************************************************************ - Bnbt has been successfully installed. In order to run bnbt, add the following lines to /etc/rc.conf: bnbt_enable="YES" -Then start the server with - %%PREFIX%%/etc/rc.d/bnbt.sh start +Then start the server with %%PREFIX%%/etc/rc.d/bnbt.sh start or reboot. - ************************************************************ diff --git a/net/bnbt/pkg-plist b/net/bnbt/pkg-plist new file mode 100644 index 000000000000..2754d85dc396 --- /dev/null +++ b/net/bnbt/pkg-plist @@ -0,0 +1,3 @@ +bin/bnbt +@exec mkdir -p %D/etc/bnbt +@unexec rmdir %D/etc/bnbt 2>/dev/null || true