aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-11-04 16:41:29 +0800
committermiwi <miwi@FreeBSD.org>2009-11-04 16:41:29 +0800
commit98ce195aab1b4f15c52bb2331511cf36940e3339 (patch)
tree1ad2e5b0173f454f590c20cce36d0f7b3fad8075 /net
parent4c4af439594e954caf6ba759939ccf7050788c18 (diff)
downloadfreebsd-ports-gnome-98ce195aab1b4f15c52bb2331511cf36940e3339.tar.gz
freebsd-ports-gnome-98ce195aab1b4f15c52bb2331511cf36940e3339.tar.zst
freebsd-ports-gnome-98ce195aab1b4f15c52bb2331511cf36940e3339.zip
- Added OPTION for WANT_RESTRICT_STATS
PR: 140247 Submitted by: Chris Rees <chris@amnesiac.bayofrum.net> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/opentracker/Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/net/opentracker/Makefile b/net/opentracker/Makefile
index f4da092bff00..acc4b2ec9747 100644
--- a/net/opentracker/Makefile
+++ b/net/opentracker/Makefile
@@ -7,8 +7,8 @@
PORTNAME= opentracker
PORTVERSION= 0.2009.06.27
-CATEGORIES= net
-MASTER_SITES= http://www.bayofrum.net/opentracker/ \
+CATEGORIES= net
+MASTER_SITES= http://www.bayofrum.net/dist/opentracker/ \
http://freebsd.dev-urandom.com/opentracker/
MAINTAINER= utisoft@gmail.com
@@ -18,12 +18,13 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/devel/libowfat
USE_RC_SUBR= opentracker
-OPTIONS=WANT_ACCESSLIST_BLACK "Enable client blacklisting" Off \
- WANT_ACCESSLIST_WHITE "Enable client whitelisting" Off \
- WANT_COMPRESSION_GZIP "Deliver gzip compressed full scrapes" Off \
- DEBUG_HTTPERROR "Verbose HTTPERRORs" Off \
- WANT_FULLSCRAPE "Can query tracker for all torrents" On \
- WANT_V6 "IPv6-only" Off \
+OPTIONS= WANT_ACCESSLIST_BLACK "Enable client blacklisting" Off \
+ WANT_ACCESSLIST_WHITE "Enable client whitelisting" Off \
+ WANT_COMPRESSION_GZIP "Deliver gzip compressed full scrapes" Off \
+ DEBUG_HTTPERROR "Verbose HTTPERRORs" Off \
+ WANT_FULLSCRAPE "Can query tracker for all torrents" On \
+ WANT_V6 "IPv6-only" Off \
+ WANT_RESTRICT_STATS "Limit stats access based on IP" On
.include <bsd.port.options.mk>
@@ -45,13 +46,17 @@ FEATURES+=-DWANT_FULLSCRAPE
.if defined(WITH_WANT_V6)
FEATURES+=-DWANT_V6
.endif
+.if defined(WITH_WANT_RESTRICT_STATS)
+FEATURES+=-DWANT_RESTRICT_STATS
+.endif
MAKE_ENV+=FEATURES="${FEATURES}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${PREFIX}/etc/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample \
+ ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf.sample
post-install:
@if [ ! -f ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf ]; then \