Lines 26-67
Link Here
|
26 |
MAN5= torksocks.conf.5 |
26 |
MAN5= torksocks.conf.5 |
27 |
MAN8= torksocks.8 |
27 |
MAN8= torksocks.8 |
28 |
|
28 |
|
29 |
HAVE_TOR!= if pkg_info -I tor-\* >/dev/null 2>&1 ; then ${ECHO} YES; fi |
29 |
OPTIONS_DEFINE= PRIVOXY MIXMINION |
30 |
|
30 |
|
31 |
.if (${HAVE_TOR} == "YES") |
31 |
PRIVOXY_DESC= Install privoxy |
32 |
HAVE_TOR_DEVEL!= if pkg_info -I tor-devel\* >/dev/null 2>&1 ; then ${ECHO} YES; fi |
32 |
MIXMINION_DESC= Install mixminion |
33 |
|
33 |
|
34 |
.if (${HAVE_TOR_DEVEL} == "YES") |
34 |
OPTIONS_SINGLE= TOR |
35 |
OPTIONS= TOR_DEVEL "Depend on tor-devel (already installed)" On |
35 |
OPTIONS_SINGLE_TOR= TOR_STD TOR_DEVEL |
36 |
.else |
|
|
37 |
OPTIONS= TOR "Depend on tor (already installed)" On |
38 |
.endif |
39 |
|
36 |
|
40 |
.else |
37 |
TOR_STD_DESC= Use stable security/tor port |
41 |
OPTIONS= TOR_DEVEL "Depend on tor-devel" On \ |
38 |
TOR_DEVEL_DESC= Use development security/tor-devel port |
42 |
TOR "Depend on tor" Off |
|
|
43 |
.endif |
44 |
|
39 |
|
45 |
OPTIONS+= PRIVOXY "Install privoxy" On \ |
40 |
OPTIONS_DEFAULT= TOR_STD PRIVOXY |
46 |
MIXMINION "Install mixminion" Off |
|
|
47 |
|
41 |
|
48 |
.include <bsd.port.pre.mk> |
42 |
.include <bsd.port.options.mk> |
49 |
|
43 |
|
50 |
.if defined(WITH_TOR_DEVEL) |
44 |
.if ${PORT_OPTIONS:MTOR_STD} |
51 |
.if defined(WITH_TOR) |
45 |
RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor |
52 |
IGNORE= cannot depend on tor and tor-devel at the same time |
46 |
.else |
53 |
.endif |
|
|
54 |
RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel |
47 |
RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel |
55 |
.elif defined(WITH_TOR) |
|
|
56 |
RUN_DEPENDS+= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor |
57 |
.endif |
48 |
.endif |
58 |
|
49 |
|
59 |
.if defined(WITH_PRIVOXY) |
50 |
.if ${PORT_OPTIONS:MPRIVOXY} |
60 |
RUN_DEPENDS+= ${LOCALBASE}/sbin/privoxy:${PORTSDIR}/www/privoxy |
51 |
RUN_DEPENDS+= ${LOCALBASE}/sbin/privoxy:${PORTSDIR}/www/privoxy |
61 |
.endif |
52 |
.endif |
62 |
|
53 |
|
63 |
.if defined(WITH_MIXMINION) |
54 |
.if ${PORT_OPTIONS:MMIXMINION} |
64 |
RUN_DEPENDS+= ${LOCALBASE}/bin/mixminion:${PORTSDIR}/mail/mixminion |
55 |
RUN_DEPENDS+= ${LOCALBASE}/bin/mixminion:${PORTSDIR}/mail/mixminion |
65 |
.endif |
56 |
.endif |
66 |
|
57 |
|
67 |
.include <bsd.port.post.mk> |
58 |
.include <bsd.port.mk> |