2004-02-01 15:26:54 +01:00
|
|
|
# New ports collection makefile for: bnbt
|
|
|
|
# Date created: Jan 31 2004
|
|
|
|
# Whom: Florent Thoumie <flz@xbsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bnbt
|
2004-10-27 23:43:46 +02:00
|
|
|
PORTVERSION= 8.1b3
|
2004-12-28 03:31:37 +01:00
|
|
|
PORTREVISION= 1
|
2006-01-30 22:36:28 +01:00
|
|
|
CATEGORIES= net-p2p
|
2005-08-01 10:46:24 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= bnbt
|
|
|
|
DISTNAME= bnbt81b-3-sf
|
2004-02-01 15:26:54 +01:00
|
|
|
|
2005-03-01 13:28:00 +01:00
|
|
|
MAINTAINER= flz@FreeBSD.org
|
2004-02-01 15:26:54 +01:00
|
|
|
COMMENT= A C++ BitTorrent Tracker
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2004-10-27 23:43:46 +02:00
|
|
|
|
2005-06-19 19:33:12 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
USE_RC_SUBR= bnbt.sh
|
2004-02-01 15:26:54 +01:00
|
|
|
|
2004-05-23 14:05:45 +02:00
|
|
|
PORTDOCS= footer.html header.html lesser.txt readme.txt users.txt
|
|
|
|
|
2004-10-27 23:43:46 +02:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
ALL_TARGET= bnbtmysql
|
|
|
|
PKGNAMESUFFIX= -mysql
|
|
|
|
USE_MYSQL= yes
|
|
|
|
.else
|
|
|
|
ALL_TARGET= bnbt
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-01 15:26:54 +01:00
|
|
|
post-patch:
|
2004-10-27 23:43:46 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-O2|${CFLAGS} -I${PREFIX}/include| ; \
|
|
|
|
s|LFLAGS =|LFLAGS = -L${PREFIX}/lib/mysql|' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|\([a-z]*\.bnbt\)|${PREFIX}/etc/${PORTNAME}/\1|' \
|
|
|
|
${WRKSRC}/config.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's|bnbt.cfg|${PREFIX}/etc/${PORTNAME}/bnbt.cfg|' \
|
|
|
|
${WRKSRC}/config.h ${WRKSRC}/config.cpp ${WRKSRC}/tracker.cpp
|
|
|
|
|
2004-02-01 15:26:54 +01:00
|
|
|
do-install:
|
2004-10-27 23:43:46 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${ALL_TARGET} ${PREFIX}/bin/bnbt
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
2004-05-23 14:05:45 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/$i ${DOCSDIR}
|
2004-05-02 12:42:13 +02:00
|
|
|
.endfor
|
2004-02-01 15:26:54 +01:00
|
|
|
|
2004-10-27 23:43:46 +02:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} /var/log/${PORTNAME}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|