aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-12-28 10:31:37 +0800
committerpav <pav@FreeBSD.org>2004-12-28 10:31:37 +0800
commitdec379151a79e061ee8e7eb6bc485a593546ac99 (patch)
tree5a7310101dffcf1f7fe3b35b1ae4f2767cc4d6f8
parent12221882120e97f4f287c54aa2cc98086b371d8e (diff)
downloadfreebsd-ports-gnome-dec379151a79e061ee8e7eb6bc485a593546ac99.tar.gz
freebsd-ports-gnome-dec379151a79e061ee8e7eb6bc485a593546ac99.tar.zst
freebsd-ports-gnome-dec379151a79e061ee8e7eb6bc485a593546ac99.zip
- Take care of leftover directory
- Use SUB_FILES PR: ports/75522 Submitted by: Florent Thoumie <flz@xbsd.org> (maintainer)
-rw-r--r--net-p2p/bnbt/Makefile11
-rw-r--r--net-p2p/bnbt/files/bnbt.sh.in (renamed from net-p2p/bnbt/files/bnbt.sh)0
-rw-r--r--net-p2p/bnbt/files/pkg-message.in5
-rw-r--r--net-p2p/bnbt/pkg-plist3
-rw-r--r--net/bnbt/Makefile11
-rw-r--r--net/bnbt/files/bnbt.sh.in (renamed from net/bnbt/files/bnbt.sh)0
-rw-r--r--net/bnbt/files/pkg-message.in5
-rw-r--r--net/bnbt/pkg-plist3
8 files changed, 14 insertions, 24 deletions
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
index d9f67bb8fee6..d9f67bb8fee6 100644
--- a/net-p2p/bnbt/files/bnbt.sh
+++ b/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
index d9f67bb8fee6..d9f67bb8fee6 100644
--- a/net/bnbt/files/bnbt.sh
+++ b/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