diff options
author | crees <crees@FreeBSD.org> | 2012-05-31 03:24:01 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2012-05-31 03:24:01 +0800 |
commit | d585dc861c128b55a1f814c78c2f8d70204bd14d (patch) | |
tree | f51af16e718cda3b314c37ca3a107c62e6e90ac8 /net/opentracker | |
parent | 1fbc22e1266a595f6c8167b0ec8eff37fa61b492 (diff) | |
download | freebsd-ports-gnome-d585dc861c128b55a1f814c78c2f8d70204bd14d.tar.gz freebsd-ports-gnome-d585dc861c128b55a1f814c78c2f8d70204bd14d.tar.zst freebsd-ports-gnome-d585dc861c128b55a1f814c78c2f8d70204bd14d.zip |
OPTIONSngify
Notice that the ability to specify 0 or 1 from a list is achieved
in opentracker by adding a third option, ACCESSLIST_OPEN which effectively
does nothing
(for openradius, use bsd.port.options.mk)
Diffstat (limited to 'net/opentracker')
-rw-r--r-- | net/opentracker/Makefile | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/net/opentracker/Makefile b/net/opentracker/Makefile index 7f5046fcb3cf..39516f366e79 100644 --- a/net/opentracker/Makefile +++ b/net/opentracker/Makefile @@ -20,42 +20,53 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/devel/libowfat USE_BZIP2= yes USE_RC_SUBR= ${PORTNAME} -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 +OPTIONS_DEFINE= COMPRESSION_GZIP DEBUG_HTTPERROR FULLSCRAPE RESTRICT_STATS IPV6 +OPTIONS_SINGLE= accesslist +OPTIONS_SINGLE_accesslist= ACCESSLIST_OPEN ACCESSLIST_BLACK \ + ACCESSLIST_WHITE + +OPTIONS_DEFAULT= FULLSCRAPE RESTRICT_STATS ACCESSLIST_OPEN + +ACCESSLIST_OPEN_DESC= Disable black/whitelisting +ACCESSLIST_BLACK_DESC= Enable client blacklisting +ACCESSLIST_WHITE_DESC= Enable client whitelisting +COMPRESSION_GZIP_DESC= Deliver gzip compressed full scrapes +DEBUG_HTTPERROR_DESC= Verbose HTTPERRORs +FULLSCRAPE_DESC= Can query tracker for all torrents +RESTRICT_STATS_DESC= Limit stats access based on IP .include <bsd.port.options.mk> -.if defined(WITH_WANT_ACCESSLIST_BLACK) +.if ${PORT_OPTIONS:MACCESSLIST_BLACK} FEATURES+=-DWANT_ACCESSLIST_BLACK -.endif -.if defined(WITH_WANT_ACCESSLIST_WHITE) +.elif ${PORT_OPTIONS:MACCESSLIST_WHITE} FEATURES+=-DWANT_ACCESSLIST_WHITE .endif -.if defined(WITH_WANT_COMPRESSION_GZIP) + +.if ${PORT_OPTIONS:MCOMPRESSION_GZIP} FEATURES+=-DWANT_COMPRESSION_GZIP .endif -.if defined(WITH_DEBUG_HTTPERROR) + +.if ${PORT_OPTIONS:MDEBUG_HTTPERROR} FEATURES+=-D_DEBUG_HTTPERROR .endif -.if defined(WITH_WANT_FULLSCRAPE) + +.if ${PORT_OPTIONS:MFULLSCRAPE} FEATURES+=-DWANT_FULLSCRAPE .endif -.if defined(WITH_WANT_V6) + +.if ${PORT_OPTIONS:MIPV6} FEATURES+=-DWANT_V6 .endif -.if defined(WITH_WANT_RESTRICT_STATS) + +.if ${PORT_OPTIONS:MRESTRICT_STATS} FEATURES+=-DWANT_RESTRICT_STATS .endif MAKE_ENV+=FEATURES="${FEATURES}" post-patch: - @${FIND} ${WRKSRC} -name "*.orig" -a -exec ${RM} -f {} \; + @${FIND} ${WRKSRC} -name "*.orig" -delete do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |