Lines 5-29
Link Here
|
5 |
# $FreeBSD: ports/net/opentracker/Makefile,v 1.1 2009/07/29 13:17:33 miwi Exp $ |
5 |
# $FreeBSD: ports/net/opentracker/Makefile,v 1.1 2009/07/29 13:17:33 miwi Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= opentracker |
8 |
PORTNAME= opentracker |
9 |
PORTVERSION= 0.2009.06.27 |
9 |
PORTVERSION= 0.2009.06.27 |
10 |
CATEGORIES= net |
10 |
CATEGORIES= net |
11 |
MASTER_SITES= http://www.bayofrum.net/opentracker/ \ |
11 |
MASTER_SITES= http://www.bayofrum.net/dist/opentracker/ \ |
12 |
http://freebsd.dev-urandom.com/opentracker/ |
12 |
http://freebsd.dev-urandom.com/opentracker/ |
13 |
|
13 |
|
14 |
MAINTAINER= utisoft@gmail.com |
14 |
MAINTAINER= utisoft@gmail.com |
15 |
COMMENT= A free lightweight bittorrent tracker using libowfat |
15 |
COMMENT= A free lightweight bittorrent tracker using libowfat |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/devel/libowfat |
17 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/devel/libowfat |
18 |
|
18 |
|
19 |
USE_RC_SUBR= opentracker |
19 |
USE_RC_SUBR= opentracker |
20 |
|
20 |
|
21 |
OPTIONS=WANT_ACCESSLIST_BLACK "Enable client blacklisting" Off \ |
21 |
OPTIONS= WANT_ACCESSLIST_BLACK "Enable client blacklisting" Off \ |
22 |
WANT_ACCESSLIST_WHITE "Enable client whitelisting" Off \ |
22 |
WANT_ACCESSLIST_WHITE "Enable client whitelisting" Off \ |
23 |
WANT_COMPRESSION_GZIP "Deliver gzip compressed full scrapes" Off \ |
23 |
WANT_COMPRESSION_GZIP "Deliver gzip compressed full scrapes" Off \ |
24 |
DEBUG_HTTPERROR "Verbose HTTPERRORs" Off \ |
24 |
DEBUG_HTTPERROR "Verbose HTTPERRORs" Off \ |
25 |
WANT_FULLSCRAPE "Can query tracker for all torrents" On \ |
25 |
WANT_FULLSCRAPE "Can query tracker for all torrents" On \ |
26 |
WANT_V6 "IPv6-only" Off \ |
26 |
WANT_V6 "IPv6-only" Off \ |
|
|
27 |
WANT_RESTRICT_STATS "Limit stats access based on IP" On |
27 |
|
28 |
|
28 |
.include <bsd.port.options.mk> |
29 |
.include <bsd.port.options.mk> |
29 |
|
30 |
|
Lines 45-57
Link Here
|
45 |
.if defined(WITH_WANT_V6) |
46 |
.if defined(WITH_WANT_V6) |
46 |
FEATURES+=-DWANT_V6 |
47 |
FEATURES+=-DWANT_V6 |
47 |
.endif |
48 |
.endif |
|
|
49 |
.if defined(WITH_WANT_RESTRICT_STATS) |
50 |
FEATURES+=-DWANT_RESTRICT_STATS |
51 |
.endif |
48 |
|
52 |
|
49 |
MAKE_ENV+=FEATURES="${FEATURES}" |
53 |
MAKE_ENV+=FEATURES="${FEATURES}" |
50 |
|
54 |
|
51 |
do-install: |
55 |
do-install: |
52 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
56 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
53 |
${MKDIR} ${PREFIX}/etc/${PORTNAME} |
57 |
${MKDIR} ${PREFIX}/etc/${PORTNAME} |
54 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf.sample |
58 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample \ |
|
|
59 |
${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf.sample |
55 |
|
60 |
|
56 |
post-install: |
61 |
post-install: |
57 |
@if [ ! -f ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf ]; then \ |
62 |
@if [ ! -f ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf ]; then \ |