1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

- update to 0.2.3.3-alpha

- allow WITH_BUFFEREVENTS again, after upstream changes
- use gcc hardening on versions of the OS that support PIE
- fix linking in the WITH_TCMALLOC case without
changing the default search path for all libraries,
to try to prevent any additional problems
This commit is contained in:
Brendan Fabeny 2011-09-09 19:26:41 +00:00
parent 1ad1b85b62
commit a508d90c31
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281532
2 changed files with 11 additions and 6 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= tor
DISTVERSION= 0.2.3.2-alpha
PORTREVISION= 1
DISTVERSION= 0.2.3.3-alpha
CATEGORIES= security net ipv6
MASTER_SITES= https://www.torproject.org/dist/ \
ftp://ftp.bit.nl/mirror/tor/ \
@ -72,6 +71,12 @@ MAN1= tor.1 tor-resolve.1 torify.1 tor-gencert.1
.include <bsd.port.pre.mk>
.if ( (${OSVERSION} >= 703100 && ${OSVERSION} < 800000) || \
(${OSVERSION} >= 800500 && ${OSVERSION} < 900000) || \
(${OSVERSION} >= 900003) ) && !defined(USE_GCC)
CONFIGURE_ARGS+= --enable-gcc-hardening
.endif
.if ( ${OSVERSION} < 704000 || \
(${OSVERSION} >= 800000 && ${OSVERSION} < 802000) || \
(${OSVERSION} >= 900000 && ${OSVERSION} < 900027) )
@ -80,7 +85,6 @@ WITH_OPENSSL_PORT= yes
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
.if defined(WITH_BUFFEREVENTS)
BROKEN = there are unresolved problems with BUFFEREVENTS; please disable this option
CONFIGURE_ARGS+= --enable-bufferevents
.else
CONFIGURE_ARGS+= --disable-bufferevents
@ -117,7 +121,6 @@ TOR_LIBEVENT_LIBS:= -levent_openssl-2.0 ${TOR_LIBEVENT_LIBS}
.if defined(WITH_TCMALLOC)
CONFIGURE_ARGS+= --with-tcmalloc
LDFLAGS+= -L${LOCALBASE}/lib
.if defined(WITH_STATIC_TOR)
BUILD_DEPENDS += ${LOCALBASE}/lib/libtcmalloc.so:${PORTSDIR}/devel/google-perftools
.else
@ -145,6 +148,8 @@ post-patch:
${WRKSRC}/contrib/Makefile.in
@${REINPLACE_CMD} -e '\|^install-data-am:|s|install-docDATA||' \
${WRKSRC}/doc/Makefile.in
@${REINPLACE_CMD} -e "s|-ltcmalloc|${LOCALBASE}/lib/libtcmalloc.so|" \
${WRKSRC}/configure
post-configure:
@${FIND} -X ${WRKSRC} -type f -name Makefile | ${XARGS} ${REINPLACE_CMD} -e \

View File

@ -1,2 +1,2 @@
SHA256 (tor-0.2.3.2-alpha.tar.gz) = 8f423af73c8d8477752858cfcc0c15860f487a0f9a390e791eaea22f4b467edd
SIZE (tor-0.2.3.2-alpha.tar.gz) = 2755750
SHA256 (tor-0.2.3.3-alpha.tar.gz) = 10293bc387769e47dcef308ff1cdeb1fea1b5ad316ff7b82069c43b51da0f129
SIZE (tor-0.2.3.3-alpha.tar.gz) = 2813912