View | Details | Raw Unified | Return to bug 121881
Collapse All | Expand All

(-)tor-devel/Makefile (-7 / +17 lines)
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:
(-)tor-devel/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (tor-0.2.0.21-rc.tar.gz) = cfedbbc30e687b427e0aa0d006fde0c6
1
MD5 (tor-0.2.0.22-rc.tar.gz) = 9404ea3f6e4b01af01a34e95cd937723
2
SHA256 (tor-0.2.0.21-rc.tar.gz) = 6b7b161be6c573b42caaab5e4201b7797264f0dc2d27119872587f00007a68ba
2
SHA256 (tor-0.2.0.22-rc.tar.gz) = f2bed9305107d36828d4becd7e186c6aa514d713e456d4ecbc20782def55cfdd
3
SIZE (tor-0.2.0.21-rc.tar.gz) = 1540586
3
SIZE (tor-0.2.0.22-rc.tar.gz) = 1541300

Return to bug 121881