aboutsummaryrefslogtreecommitdiff
path: root/net/bnbt
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-12-28 02:31:37 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-12-28 02:31:37 +0000
commitdd3458f5e040683d82f2482da43b3599b3518890 (patch)
treec0589a43875747e6277640f388114761261a0144 /net/bnbt
parent60c0fdbc6dbaf1fd0c4b1db75c0210eabd970327 (diff)
downloadports-dd3458f5e040683d82f2482da43b3599b3518890.tar.gz
ports-dd3458f5e040683d82f2482da43b3599b3518890.zip
Notes
Diffstat (limited to 'net/bnbt')
-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
4 files changed, 7 insertions, 12 deletions
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