Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= tor |
8 |
PORTNAME= tor |
9 |
DISTVERSION= 0.2.0.21-rc |
9 |
DISTVERSION= 0.2.0.22-rc |
10 |
CATEGORIES= security net |
10 |
CATEGORIES= security net |
11 |
MASTER_SITES= http://www.torproject.org/dist/ \ |
11 |
MASTER_SITES= http://www.torproject.org/dist/ \ |
12 |
http://mirror.onionland.org/dist/ |
12 |
http://mirror.onionland.org/dist/ |
Lines 20-27
Link Here
|
20 |
|
20 |
|
21 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
22 |
USE_OPENSSL= yes |
22 |
USE_OPENSSL= yes |
|
|
23 |
CPPFLAGS+= -I${LOCALBASE}/include |
24 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" |
23 |
|
25 |
|
24 |
OPTIONS= CELLPOOL "memory pool allocator for cells" on \ |
26 |
OPTIONS= BUFFREELISTS "freelists for buffer RAM" on \ |
|
|
27 |
CELLPOOL "memory pool allocator for cells" on \ |
28 |
TCMALLOC "use the tcmalloc memory allocation library" off \ |
25 |
THREADS "multi-threading support" on \ |
29 |
THREADS "multi-threading support" on \ |
26 |
TRANSPARENT "transparent proxy support" on \ |
30 |
TRANSPARENT "transparent proxy support" on \ |
27 |
VIDALIA "Vidalia graphical Tor controller" off |
31 |
VIDALIA "Vidalia graphical Tor controller" off |
Lines 36-43
Link Here
|
36 |
|
40 |
|
37 |
.include <bsd.port.pre.mk> |
41 |
.include <bsd.port.pre.mk> |
38 |
|
42 |
|
39 |
CONFIGURE_ENV+= CPPFLAGS+=-I{LOCALBASE}/include \ |
43 |
.if defined(WITH_BUFFREELISTS) |
40 |
LDFLAGS+=-L{LOCALBASE}/lib |
44 |
CONFIGURE_ARGS+= --enable-buf-freelists |
|
|
45 |
.else |
46 |
CONFIGURE_ARGS+= --disable-buf-freelists |
47 |
.endif |
41 |
|
48 |
|
42 |
.if defined(WITH_CELLPOOL) |
49 |
.if defined(WITH_CELLPOOL) |
43 |
CONFIGURE_ARGS+= --enable-cell-pool |
50 |
CONFIGURE_ARGS+= --enable-cell-pool |
Lines 45-53
Link Here
|
45 |
CONFIGURE_ARGS+= --disable-cell-pool |
52 |
CONFIGURE_ARGS+= --disable-cell-pool |
46 |
.endif |
53 |
.endif |
47 |
|
54 |
|
|
|
55 |
.if defined(WITH_TCMALLOC) |
56 |
CONFIGURE_ARGS+= --with-tcmalloc |
57 |
LIB_DEPENDS+= tcmalloc:${PORTSDIR}/devel/google-perftools |
58 |
.endif |
59 |
|
48 |
.if defined(WITH_THREADS) |
60 |
.if defined(WITH_THREADS) |
49 |
CONFIGURE_ARGS+= --enable-threads |
61 |
CONFIGURE_ARGS+= --enable-threads |
50 |
CONFIGURE_ENV+= LDFLAGS+={PTHREAD_LIBS} |
62 |
CFLAGS+= ${PTHREAD_CFLAGS} |
51 |
.else |
63 |
.else |
52 |
CONFIGURE_ARGS+= --disable-threads |
64 |
CONFIGURE_ARGS+= --disable-threads |
53 |
.endif |
65 |
.endif |
Lines 67-79
Link Here
|
67 |
${WRKSRC}/contrib/tor-tsocks.conf.sample |
79 |
${WRKSRC}/contrib/tor-tsocks.conf.sample |
68 |
@${REINPLACE_CMD} -e "s|tor-tsocks.conf|tor-tsocks.conf.sample|g" \ |
80 |
@${REINPLACE_CMD} -e "s|tor-tsocks.conf|tor-tsocks.conf.sample|g" \ |
69 |
${WRKSRC}/contrib/Makefile.in |
81 |
${WRKSRC}/contrib/Makefile.in |
70 |
#fix typos in configure scripts, undesirable compiler flags, wrong location of in6.h |
|
|
71 |
@${FIND} ${WRKSRC} -type f | ${XARGS} \ |
82 |
@${FIND} ${WRKSRC} -type f | ${XARGS} \ |
72 |
-n 10 ${REINPLACE_CMD} -E \ |
83 |
-n 10 ${REINPLACE_CMD} -E \ |
73 |
-e 's|-g -O2||g' \ |
84 |
-e 's|-g -O2||g' \ |
74 |
-e 's|-O2||g' \ |
85 |
-e 's|-O2||g' \ |
75 |
-e 's|-g -O||g' \ |
86 |
-e 's|-g -O||g' \ |
76 |
-e 's|netintet|netinet|g' \ |
|
|
77 |
-e 's|netinet/in6|netinet6/in6|g' |
87 |
-e 's|netinet/in6|netinet6/in6|g' |
78 |
|
88 |
|
79 |
post-configure: |
89 |
post-configure: |