Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2016 17:31:56 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424187 - in head/security: tor tor-devel tor/files
Message-ID:  <201610181731.u9IHVu91098315@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Tue Oct 18 17:31:55 2016
New Revision: 424187
URL: https://svnweb.freebsd.org/changeset/ports/424187

Log:
  Update security/tor to 0.2.8.9
  Update security/tor-devel to 0.2.9.4-alpha
  
  For security/tor:
  - fix directory permissions
  - mark the TOR2WEB option as "expert"
  
  PR:		212952
  Submitted by:	Neel Chauhan <neel@neelc.org>
  Approved by:	maintainer <yuri@rawbw.com>
  MFH:		2016Q4
  Security:	c1dc55dc-9556-11e6-b154-3065ec8fd3ec

Modified:
  head/security/tor-devel/Makefile
  head/security/tor-devel/distinfo
  head/security/tor/Makefile
  head/security/tor/distinfo
  head/security/tor/files/tor.in
  head/security/tor/pkg-plist

Modified: head/security/tor-devel/Makefile
==============================================================================
--- head/security/tor-devel/Makefile	Tue Oct 18 17:29:44 2016	(r424186)
+++ head/security/tor-devel/Makefile	Tue Oct 18 17:31:55 2016	(r424187)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	tor
-DISTVERSION=	0.2.9.2-alpha
-PORTREVISION=	1
+DISTVERSION=	0.2.9.4-alpha
 CATEGORIES=	security net ipv6
 MASTER_SITES=	TOR
 PKGNAMESUFFIX=	-devel

Modified: head/security/tor-devel/distinfo
==============================================================================
--- head/security/tor-devel/distinfo	Tue Oct 18 17:29:44 2016	(r424186)
+++ head/security/tor-devel/distinfo	Tue Oct 18 17:31:55 2016	(r424187)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1472083233
-SHA256 (tor-0.2.9.2-alpha.tar.gz) = dd93cf6b8531acf68152adbfa2f693cebd1b3254bc6190c920a99cc587944922
-SIZE (tor-0.2.9.2-alpha.tar.gz) = 5294923
+TIMESTAMP = 1476741065
+SHA256 (tor-0.2.9.4-alpha.tar.gz) = fc5664fff4c86d3644043a068f11b17c57f9a295c37b7186bf90bb237913e400
+SIZE (tor-0.2.9.4-alpha.tar.gz) = 5481286

Modified: head/security/tor/Makefile
==============================================================================
--- head/security/tor/Makefile	Tue Oct 18 17:29:44 2016	(r424186)
+++ head/security/tor/Makefile	Tue Oct 18 17:31:55 2016	(r424187)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	tor
-PORTVERSION=	0.2.8.7
-PORTREVISION=	1
+PORTVERSION=	0.2.8.9
 CATEGORIES=	security net ipv6
 MASTER_SITES=	TOR
 
@@ -29,13 +28,15 @@ OPTIONS_DEFINE=	STATIC_TOR TCMALLOC TOR2
 
 STATIC_TOR_DESC=	Build a static tor
 TCMALLOC_DESC=		Use the tcmalloc memory allocation library
-TOR2WEB_DESC=		Faster but non-anonymous hidden services
+TOR2WEB_DESC=		(EXPERT OPTION) Faster but non-anonymous hidden services
 TRANSPARENT_DESC=	Transparent proxy support
 
 OPTIONS_DEFAULT=	TRANSPARENT
 
 USE_RC_SUBR=	tor
 SUB_FILES=	pkg-message
+SUB_LIST=	USER="${USERS}" GROUP="${GROUPS}"
+PLIST_SUB=	USER="${USERS}" GROUP="${GROUPS}"
 
 GROUPS=		_tor
 USERS=		_tor
@@ -88,6 +89,16 @@ CONFIGURE_ARGS+=	--enable-transparent
 CONFIGURE_ARGS+=	--disable-transparent
 .endif
 
+pre-everything::
+.if ${PORT_OPTIONS:MTOR2WEB}
+	@${ECHO_MSG}
+	@${ECHO_MSG} "Warning: The expert option 'tor2web' is chosen."
+	@${ECHO_MSG} "         With this option tor cannot be used for regular traffic,"
+	@${ECHO_MSG} "         only for non-anonymous hidden service traffic."
+	@${ECHO_MSG} "         Please make sure you understand this option."
+	@${ECHO_MSG}
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \
 		${WRKSRC}/configure
@@ -109,7 +120,7 @@ post-configure:
 		${WRKSRC}/Makefile
 
 post-install:
-	@${MKDIR} ${STAGEDIR}/var/log/tor ${STAGEDIR}/var/run/tor
+	@${MKDIR} ${STAGEDIR}/var/log/tor ${STAGEDIR}/var/run/tor ${STAGEDIR}/var/db/tor
 
 .if ! ${PORT_OPTIONS:MTOR2WEB}
 check regression-test test: build

Modified: head/security/tor/distinfo
==============================================================================
--- head/security/tor/distinfo	Tue Oct 18 17:29:44 2016	(r424186)
+++ head/security/tor/distinfo	Tue Oct 18 17:31:55 2016	(r424187)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1472080840
-SHA256 (tor-0.2.8.7.tar.gz) = ae44e2b699e82db7ff318432fd558dfa941ad154e4055f16d208514951742fc6
-SIZE (tor-0.2.8.7.tar.gz) = 5179093
+TIMESTAMP = 1476740628
+SHA256 (tor-0.2.8.9.tar.gz) = 3f5c273bb887be4aff11f4d99b9e2e52d293b81ff4f6302b730161ff16dc5316
+SIZE (tor-0.2.8.9.tar.gz) = 5306773

Modified: head/security/tor/files/tor.in
==============================================================================
--- head/security/tor/files/tor.in	Tue Oct 18 17:29:44 2016	(r424186)
+++ head/security/tor/files/tor.in	Tue Oct 18 17:31:55 2016	(r424187)
@@ -26,7 +26,7 @@ load_rc_config ${name}
 
 : ${tor_enable="NO"}
 : ${tor_conf="%%PREFIX%%/etc/tor/torrc"}
-: ${tor_user="_tor"}
+: ${tor_user="%%USER%%"}
 : ${tor_pidfile="/var/run/tor/tor.pid"}
 : ${tor_datadir="/var/db/tor"}
 

Modified: head/security/tor/pkg-plist
==============================================================================
--- head/security/tor/pkg-plist	Tue Oct 18 17:29:44 2016	(r424186)
+++ head/security/tor/pkg-plist	Tue Oct 18 17:31:55 2016	(r424187)
@@ -9,5 +9,6 @@ man/man1/tor.1.gz
 man/man1/torify.1.gz
 %%DATADIR%%/geoip
 %%DATADIR%%/geoip6
-@dir(_tor,_tor,750) /var/run/tor
-@dir(_tor,_tor,750) /var/log/tor
+@dir(%%USER%%,%%GROUP%%,700) /var/run/tor
+@dir(%%USER%%,%%GROUP%%,700) /var/log/tor
+@dir(%%USER%%,%%GROUP%%,700) /var/db/tor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610181731.u9IHVu91098315>