1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

- Update to 0.2.0.22-rc

PR:		121881
Submitted by:	bf <bf2006a@yahoo.com>
Approved by:	maintainer
This commit is contained in:
Martin Wilke 2008-03-20 20:03:32 +00:00
parent 41b6c4c733
commit ce261f2f09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209477
2 changed files with 20 additions and 10 deletions

View File

@ -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:

View File

@ -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