aboutsummaryrefslogtreecommitdiff
path: root/security/tor-devel
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2017-08-17 17:12:10 +0000
committerSteve Wills <swills@FreeBSD.org>2017-08-17 17:12:10 +0000
commitb595ea2b723715c97ffc4fc15deb0ef838837b4c (patch)
tree7c4aae5cc73ac10c17443b4de200b2d80cd660b4 /security/tor-devel
parent9310a03b31ea968ebb9e08648f2f91c8d136c1ee (diff)
downloadports-b595ea2b723715c97ffc4fc15deb0ef838837b4c.tar.gz
ports-b595ea2b723715c97ffc4fc15deb0ef838837b4c.zip
Notes
Diffstat (limited to 'security/tor-devel')
-rw-r--r--security/tor-devel/Makefile29
-rw-r--r--security/tor-devel/distinfo6
2 files changed, 22 insertions, 13 deletions
diff --git a/security/tor-devel/Makefile b/security/tor-devel/Makefile
index af5a7d704bac..d85f7d003453 100644
--- a/security/tor-devel/Makefile
+++ b/security/tor-devel/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= tor
-DISTVERSION= 0.3.1.4-alpha
+DISTVERSION= 0.3.1.5-alpha
CATEGORIES= security net ipv6
MASTER_SITES= TOR
PKGNAMESUFFIX= -devel
@@ -20,20 +20,20 @@ BROKEN_sparc64= does not build: error: Need a uint128_t implementation!
USES= cpe gmake pkgconfig
CPE_VENDOR= torproject
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-openssl-dir="${OPENSSLBASE}" \
- --disable-lzma \
- --disable-zstd
+CONFIGURE_ARGS= --with-openssl-dir="${OPENSSLBASE}"
CONFIGURE_ENV= TOR_CPPFLAGS_libevent="-I${LOCALBASE}/include" \
TOR_LDFLAGS_libevent="-L${LOCALBASE}/lib/" \
TOR_LIBEVENT_LIBS="${TOR_LIBEVENT_LIBS}"
OPTIONS_DEFINE= MANPAGES DOCS STATIC_TOR TCMALLOC TOR2WEB
-OPTIONS_DEFAULT=MANPAGES
+OPTIONS_GROUP= COMPRESSION
+OPTIONS_GROUP_COMPRESSION=ZSTD LZMA
+OPTIONS_DEFAULT=MANPAGES ZSTD LZMA
OPTIONS_SUB= yes
-
STATIC_TOR_DESC= Build a static tor
TCMALLOC_DESC= Use the tcmalloc memory allocation library
TOR2WEB_DESC= (EXPERT OPTION) Faster but non-anonymous hidden services
+COMPRESSION_DESC= Supported compression libraries
USE_RC_SUBR= tor
SUB_FILES= pkg-message
@@ -48,6 +48,11 @@ CONFLICTS= tor-[0-9]*
STATIC_TOR_USES= ssl:build
STATIC_TOR_USES_OFF= ssl
+TOR2WEB_CONFIGURE_ENABLE= tor2web-mode
+ZSTD_CONFIGURE_ENABLE= zstd
+ZSTD_CONFIGURE_ENV=TOR_ZSTD_LIBS="${TOR_ZSTD_LIBS}"
+LZMA_CONFIGURE_ENABLE= lzma
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
@@ -68,10 +73,18 @@ BUILD_DEPENDS += ${LOCALBASE}/lib/libevent.a:devel/libevent
CONFIGURE_ARGS+= --enable-static-tor \
--with-zlib-dir=/usr/lib --disable-linker-hardening
TOR_LIBEVENT_LIBS= ${LOCALBASE}/lib/libevent.a
+. if ${PORT_OPTIONS:MZSTD}
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libzstd.a:archivers/zstd
+TOR_ZSTD_LIBS= ${LOCALBASE}/lib/libzstd.a
+. endif
.else
CONFIGURE_ARGS+= --enable-linker-hardening
LIB_DEPENDS+= libevent.so:devel/libevent
TOR_LIBEVENT_LIBS= -levent
+. if ${PORT_OPTIONS:MZSTD}
+LIB_DEPENDS+= libzstd.so:archivers/zstd
+TOR_ZSTD_LIBS= -lzstd
+. endif
.endif
.if ${PORT_OPTIONS:MTCMALLOC}
@@ -83,10 +96,6 @@ LIB_DEPENDS+= libtcmalloc.so:devel/google-perftools
.endif
.endif
-.if ${PORT_OPTIONS:MTOR2WEB}
-CONFIGURE_ARGS+= --enable-tor2web-mode
-.endif
-
pre-everything::
.if ${PORT_OPTIONS:MTOR2WEB}
@${ECHO_MSG}
diff --git a/security/tor-devel/distinfo b/security/tor-devel/distinfo
index 7f85ce903cf3..3c157a1546b6 100644
--- a/security/tor-devel/distinfo
+++ b/security/tor-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1498778819
-SHA256 (tor-0.3.1.4-alpha.tar.gz) = 36ba88bd62f6f630bdba02c6bc348e8176224cec44281f6dacd86c46426c79d1
-SIZE (tor-0.3.1.4-alpha.tar.gz) = 5964177
+TIMESTAMP = 1502515690
+SHA256 (tor-0.3.1.5-alpha.tar.gz) = 04281b87e8b97517ba52232cd58de06a816f5a136b9b7a7316be878b36df8313
+SIZE (tor-0.3.1.5-alpha.tar.gz) = 5997514