diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-11-04 08:41:29 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-11-04 08:41:29 +0000 |
commit | 8429b095ce5c550b903795486224af5ba0bb862d (patch) | |
tree | 6f6090cc30a6162ca5f1eda6d95d1d4d3c8932f4 | |
parent | - Update to 4.2.10 (diff) |
- Added OPTION for WANT_RESTRICT_STATS
PR: 140247
Submitted by: Chris Rees <chris@amnesiac.bayofrum.net> (maintainer)
Notes
Notes:
svn path=/head/; revision=243743
-rw-r--r-- | net/opentracker/Makefile | 23 |
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 \ |