- Take care of leftover directory

- Use SUB_FILES

PR:		ports/75522
Submitted by:	Florent Thoumie <flz@xbsd.org> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-12-28 02:31:37 +00:00
parent 60c0fdbc6d
commit dd3458f5e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125303
8 changed files with 14 additions and 24 deletions

View file

@ -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}

View file

@ -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.
************************************************************

3
net-p2p/bnbt/pkg-plist Normal file
View file

@ -0,0 +1,3 @@
bin/bnbt
@exec mkdir -p %D/etc/bnbt
@unexec rmdir %D/etc/bnbt 2>/dev/null || true

View file

@ -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}

View file

@ -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.
************************************************************

3
net/bnbt/pkg-plist Normal file
View file

@ -0,0 +1,3 @@
bin/bnbt
@exec mkdir -p %D/etc/bnbt
@unexec rmdir %D/etc/bnbt 2>/dev/null || true