|
Lines 15-21
Link Here
|
| 15 |
|
15 |
|
| 16 |
BROKEN_powerpc64= Does not build |
16 |
BROKEN_powerpc64= Does not build |
| 17 |
|
17 |
|
| 18 |
USES= cpe gmake |
18 |
USES= cpe gmake ssl |
| 19 |
CPE_VENDOR= torproject |
19 |
CPE_VENDOR= torproject |
| 20 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
| 21 |
CONFIGURE_ARGS= --with-openssl-dir="${OPENSSLBASE}" --disable-asciidoc |
21 |
CONFIGURE_ARGS= --with-openssl-dir="${OPENSSLBASE}" --disable-asciidoc |
|
Lines 27-33
Link Here
|
| 27 |
|
27 |
|
| 28 |
STATIC_TOR_DESC= Build a static tor |
28 |
STATIC_TOR_DESC= Build a static tor |
| 29 |
TCMALLOC_DESC= Use the tcmalloc memory allocation library |
29 |
TCMALLOC_DESC= Use the tcmalloc memory allocation library |
| 30 |
TOR2WEB_DESC= Faster but non-anonymous hidden services |
30 |
TOR2WEB_DESC= (EXPERT OPTION) Faster but non-anonymous hidden services |
| 31 |
TRANSPARENT_DESC= Transparent proxy support |
31 |
TRANSPARENT_DESC= Transparent proxy support |
| 32 |
|
32 |
|
| 33 |
OPTIONS_DEFAULT= TRANSPARENT |
33 |
OPTIONS_DEFAULT= TRANSPARENT |
|
Lines 34-39
Link Here
|
| 34 |
|
34 |
|
| 35 |
USE_RC_SUBR= tor |
35 |
USE_RC_SUBR= tor |
| 36 |
SUB_FILES= pkg-message |
36 |
SUB_FILES= pkg-message |
|
|
37 |
SUB_LIST= USER="${USERS}" GROUP="${GROUPS}" |
| 37 |
|
38 |
|
| 38 |
GROUPS= _tor |
39 |
GROUPS= _tor |
| 39 |
USERS= _tor |
40 |
USERS= _tor |
|
Lines 40-48
Link Here
|
| 40 |
|
41 |
|
| 41 |
CONFLICTS= tor-devel-[0-9]* |
42 |
CONFLICTS= tor-devel-[0-9]* |
| 42 |
|
43 |
|
| 43 |
STATIC_TOR_USES= ssl:build |
|
|
| 44 |
STATIC_TOR_USES_OFF= ssl |
| 45 |
|
| 46 |
.include <bsd.port.options.mk> |
44 |
.include <bsd.port.options.mk> |
| 47 |
|
45 |
|
| 48 |
.if ${OSVERSION} < 1000000 |
46 |
.if ${OSVERSION} < 1000000 |
|
Lines 86-91
Link Here
|
| 86 |
CONFIGURE_ARGS+= --disable-transparent |
84 |
CONFIGURE_ARGS+= --disable-transparent |
| 87 |
.endif |
85 |
.endif |
| 88 |
|
86 |
|
|
|
87 |
pre-everything:: |
| 88 |
.if ${PORT_OPTIONS:MTOR2WEB} |
| 89 |
@${ECHO_MSG} |
| 90 |
@${ECHO_MSG} "Warning: An expert option 'tor2web' is chosen." |
| 91 |
@${ECHO_MSG} " With this option tor cannot be used for regular traffic," |
| 92 |
@${ECHO_MSG} " only for non-anonymous hidden service traffic." |
| 93 |
@${ECHO_MSG} " Please make sure you understand this option." |
| 94 |
@${ECHO_MSG} |
| 95 |
.endif |
| 96 |
|
| 89 |
post-patch: |
97 |
post-patch: |
| 90 |
@${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \ |
98 |
@${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \ |
| 91 |
${WRKSRC}/configure |
99 |
${WRKSRC}/configure |