Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= trans-proxy-tor |
8 |
PORTNAME= trans-proxy-tor |
9 |
PORTVERSION= 0.1.0 |
9 |
PORTVERSION= 0.1.0 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= security net |
11 |
CATEGORIES= security net |
11 |
MASTER_SITES= http://p56soo2ibjkx23xo.onion/ \ |
12 |
MASTER_SITES= http://p56soo2ibjkx23xo.onion/ \ |
12 |
http://www.fabiankeil.de/sourcecode/freebsd/ |
13 |
http://www.fabiankeil.de/sourcecode/freebsd/ |
Lines 14-22
Link Here
|
14 |
MAINTAINER= fk@fabiankeil.de |
15 |
MAINTAINER= fk@fabiankeil.de |
15 |
COMMENT= Transparent proxy used to redirect TCP connections into Tor |
16 |
COMMENT= Transparent proxy used to redirect TCP connections into Tor |
16 |
|
17 |
|
17 |
RUN_DEPENDS= ${LOCALBASE}/bin/dns-proxy-tor:${PORTSDIR}/security/dns-proxy-tor \ |
18 |
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Event/Lib.pm:${PORTSDIR}/devel/p5-Event-Lib |
18 |
${SITE_PERL}/${PERL_ARCH}/Event/Lib.pm:${PORTSDIR}/devel/p5-Event-Lib \ |
|
|
19 |
${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel |
20 |
|
19 |
|
21 |
USE_PERL5_RUN= yes |
20 |
USE_PERL5_RUN= yes |
22 |
USE_RC_SUBR= ${PORTNAME} |
21 |
USE_RC_SUBR= ${PORTNAME} |
Lines 24-30
Link Here
|
24 |
SUB_FILES= pkg-message |
23 |
SUB_FILES= pkg-message |
25 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} |
24 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} |
26 |
|
25 |
|
|
|
26 |
OPTIONS= DNS_PROXY_TOR "Depend on dns-proxy-tor" On \ |
27 |
TOR_DEVEL "Depend on tor-devel" Off \ |
28 |
TOR "Depend on tor" Off |
29 |
|
30 |
DEPRECATED= trans-proxy-tor is rendered obsolete by Tor's TransPort option\ |
31 |
(currently only available in tor-devel) |
32 |
|
33 |
HAVE_TOR_DEVEL!= if pkg_info -I tor-devel\* >/dev/null 2>&1 ; then ${ECHO} YES; fi |
34 |
.if (${HAVE_TOR_DEVEL} == "YES") |
35 |
OPTIONS= DNS_PROXY_TOR "Depend on dns-proxy-tor" On \ |
36 |
TOR_DEVEL "Depend on tor-devel (already installed)" Off |
37 |
.else |
38 |
HAVE_TOR_DEVEL!= if pkg_info -I tor-\* >/dev/null 2>&1 ; then ${ECHO} YES; fi |
39 |
.endif |
40 |
.if (defined(HAVE_TOR) && ${HAVE_TOR} == "YES") |
41 |
OPTIONS= DNS_PROXY_TOR "Depend on dns-proxy-tor" On \ |
42 |
TOR "Depend on tor (already installed)" Off |
43 |
.endif |
44 |
|
27 |
.include <bsd.port.pre.mk> |
45 |
.include <bsd.port.pre.mk> |
|
|
46 |
|
47 |
.if defined(WITH_DNS_PROXY_TOR) |
48 |
RUN_DEPENDS+= ${LOCALBASE}/bin/dns-proxy-tor:${PORTSDIR}/security/dns-proxy-tor |
49 |
.endif |
50 |
|
51 |
.if defined(WITH_TOR_DEVEL) |
52 |
.if defined(WITH_TOR) |
53 |
IGNORE= cannot depend on tor and tor-devel at the same time |
54 |
.endif |
55 |
RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel |
56 |
.elif defined(WITH_TOR) |
57 |
RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor |
58 |
.endif |
28 |
|
59 |
|
29 |
.if defined(NO_PF) |
60 |
.if defined(NO_PF) |
30 |
IGNORE= requires PF |
61 |
IGNORE= requires PF |