aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-03-21 04:03:32 +0800
committermiwi <miwi@FreeBSD.org>2008-03-21 04:03:32 +0800
commit6db7185fd660ef360f57fc27f917b8529470d0bb (patch)
treececddfa17add2c91e0012a7c08668c8c19f11328 /security
parent64495d4f7000965b95d92b9f7393ee3994199799 (diff)
downloadfreebsd-ports-gnome-6db7185fd660ef360f57fc27f917b8529470d0bb.tar.gz
freebsd-ports-gnome-6db7185fd660ef360f57fc27f917b8529470d0bb.tar.zst
freebsd-ports-gnome-6db7185fd660ef360f57fc27f917b8529470d0bb.zip
- Update to 0.2.0.22-rc
PR: 121881 Submitted by: bf <bf2006a@yahoo.com> Approved by: maintainer
Diffstat (limited to 'security')
-rw-r--r--security/tor-devel/Makefile24
-rw-r--r--security/tor-devel/distinfo6
2 files changed, 20 insertions, 10 deletions
diff --git a/security/tor-devel/Makefile b/security/tor-devel/Makefile
index 17a8013ac962..757a17e0195b 100644
--- a/security/tor-devel/Makefile
+++ b/security/tor-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= tor
-DISTVERSION= 0.2.0.21-rc
+DISTVERSION= 0.2.0.22-rc
CATEGORIES= security net
MASTER_SITES= http://www.torproject.org/dist/ \
http://mirror.onionland.org/dist/
@@ -20,8 +20,12 @@ LIB_DEPENDS= event-1.3e:${PORTSDIR}/devel/libevent
GNU_CONFIGURE= yes
USE_OPENSSL= yes
+CPPFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
-OPTIONS= CELLPOOL "memory pool allocator for cells" on \
+OPTIONS= BUFFREELISTS "freelists for buffer RAM" on \
+ CELLPOOL "memory pool allocator for cells" on \
+ TCMALLOC "use the tcmalloc memory allocation library" off \
THREADS "multi-threading support" on \
TRANSPARENT "transparent proxy support" on \
VIDALIA "Vidalia graphical Tor controller" off
@@ -36,8 +40,11 @@ MAN1= tor.1 tor-resolve.1 torify.1 tor-gencert.1
.include <bsd.port.pre.mk>
-CONFIGURE_ENV+= CPPFLAGS+=-I{LOCALBASE}/include \
- LDFLAGS+=-L{LOCALBASE}/lib
+.if defined(WITH_BUFFREELISTS)
+CONFIGURE_ARGS+= --enable-buf-freelists
+.else
+CONFIGURE_ARGS+= --disable-buf-freelists
+.endif
.if defined(WITH_CELLPOOL)
CONFIGURE_ARGS+= --enable-cell-pool
@@ -45,9 +52,14 @@ CONFIGURE_ARGS+= --enable-cell-pool
CONFIGURE_ARGS+= --disable-cell-pool
.endif
+.if defined(WITH_TCMALLOC)
+CONFIGURE_ARGS+= --with-tcmalloc
+LIB_DEPENDS+= tcmalloc:${PORTSDIR}/devel/google-perftools
+.endif
+
.if defined(WITH_THREADS)
CONFIGURE_ARGS+= --enable-threads
-CONFIGURE_ENV+= LDFLAGS+={PTHREAD_LIBS}
+CFLAGS+= ${PTHREAD_CFLAGS}
.else
CONFIGURE_ARGS+= --disable-threads
.endif
@@ -67,13 +79,11 @@ post-patch:
${WRKSRC}/contrib/tor-tsocks.conf.sample
@${REINPLACE_CMD} -e "s|tor-tsocks.conf|tor-tsocks.conf.sample|g" \
${WRKSRC}/contrib/Makefile.in
-#fix typos in configure scripts, undesirable compiler flags, wrong location of in6.h
@${FIND} ${WRKSRC} -type f | ${XARGS} \
-n 10 ${REINPLACE_CMD} -E \
-e 's|-g -O2||g' \
-e 's|-O2||g' \
-e 's|-g -O||g' \
- -e 's|netintet|netinet|g' \
-e 's|netinet/in6|netinet6/in6|g'
post-configure:
diff --git a/security/tor-devel/distinfo b/security/tor-devel/distinfo
index 8fbd5b403079..70b0869e7871 100644
--- a/security/tor-devel/distinfo
+++ b/security/tor-devel/distinfo
@@ -1,3 +1,3 @@
-MD5 (tor-0.2.0.21-rc.tar.gz) = cfedbbc30e687b427e0aa0d006fde0c6
-SHA256 (tor-0.2.0.21-rc.tar.gz) = 6b7b161be6c573b42caaab5e4201b7797264f0dc2d27119872587f00007a68ba
-SIZE (tor-0.2.0.21-rc.tar.gz) = 1540586
+MD5 (tor-0.2.0.22-rc.tar.gz) = 9404ea3f6e4b01af01a34e95cd937723
+SHA256 (tor-0.2.0.22-rc.tar.gz) = f2bed9305107d36828d4becd7e186c6aa514d713e456d4ecbc20782def55cfdd
+SIZE (tor-0.2.0.22-rc.tar.gz) = 1541300