From nobody@FreeBSD.org  Tue Aug  5 07:00:46 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id ACBFB10656C9
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Aug 2008 07:00:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9B1F58FC22
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Aug 2008 07:00:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7570ktN035598
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 5 Aug 2008 07:00:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m7570kLK035597;
	Tue, 5 Aug 2008 07:00:46 GMT
	(envelope-from nobody)
Message-Id: <200808050700.m7570kLK035597@www.freebsd.org>
Date: Tue, 5 Aug 2008 07:00:46 GMT
From: bf <bf2006a@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH}security/tor: update to 0.2.0.30
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: nivo+kw+ports.bfa274@is-root.com

>Number:         126262
>Category:       ports
>Synopsis:       [PATCH}security/tor: update to 0.2.0.30
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 05 07:10:01 UTC 2008
>Closed-Date:    Wed Aug 20 08:03:27 UTC 2008
>Last-Modified:  Wed Aug 20 08:10:02 UTC 2008
>Originator:     bf
>Release:        7-STABLE i386
>Organization:
-
>Environment:
>Description:
0.2.0.30 has now been adopted as the new stable version; if this change is accepted, the CONFLICTS line in the port Makefile of security/tor-devel should be changed to 

CONFLICTS=	tor-0.2.0.[0-9]*

or the like.


>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN tor.orig/Makefile tor/Makefile
--- tor.orig/Makefile	2008-08-05 01:18:41.356172050 -0400
+++ tor/Makefile	2008-08-05 02:47:09.717768007 -0400
@@ -6,12 +6,13 @@
 #
 
 PORTNAME=	tor
-PORTVERSION=	0.1.2.19
-PORTREVISION=	1
+DISTVERSION=	0.2.0.30
 CATEGORIES=	security net
 MASTER_SITES=	http://www.torproject.org/dist/ \
-		http://mirror.onionland.org/dist/
-DISTNAME=	${PORTNAME}-${PORTVERSION}
+		http://tor.cypherpunks.at/dist/ \
+		http://tor.depthstrike.com/dist/ \
+		http://tor.boinc.ch/dist/ \
+		http://tor.anonymity.cn/dist/
 
 MAINTAINER=	nivo+kw+ports.bfa274@is-root.com
 COMMENT=	An anonymizing overlay network for TCP
@@ -21,8 +22,12 @@
 
 GNU_CONFIGURE=	yes
 USE_OPENSSL=	yes
+CPPFLAGS+=	-I${LOCALBASE}/include
+CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}"
 
-OPTIONS=	EVENTDNS "asynchronous DNS module" 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
@@ -30,25 +35,33 @@
 USE_RC_SUBR=	tor
 SUB_FILES=	pkg-message
 
-CONFLICTS=	tor-devel*
+CONFLICTS=	tor-devel-[0-9]*
 
 MANCOMPRESSED=	no
-MAN1=		tor.1 tor-resolve.1 torify.1
+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_EVENTDNS)
-CONFIGURE_ARGS+=	--enable-eventdns
+.if defined(WITH_CELLPOOL)
+CONFIGURE_ARGS+=	--enable-cell-pool
 .else
-CONFIGURE_ARGS+=	--disable-eventdns
+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
@@ -68,17 +81,16 @@
 		${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} \
+	@${FIND} -X ${WRKSRC} -type f | ${XARGS} \
 		-n 10 ${REINPLACE_CMD} -E \
-		-e 's!-g -O2!!' \
-		-e 's!-O2!!' \
-		-e 's|netintet|netinet|g' \
+		-e 's|-g -O2||g' \
+		-e 's|-O2||g' \
+		-e 's|-g -O||g' \
 		-e 's|netinet/in6|netinet6/in6|g'
 
 post-configure:
-	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
-		's|-lpthread|${PTHREAD_LIBS}|g'
+	@${FIND} -X ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
+		"s|-lpthread|${PTHREAD_LIBS}|g"
 
 pre-su-install:
 	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
@@ -93,4 +105,8 @@
 	${CHOWN} _tor:_tor /var/db/tor
 	${CAT} ${PKGMESSAGE}
 
+regression-test:
+	@( cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \
+	${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check )
+
 .include <bsd.port.post.mk>
diff -ruN tor.orig/distinfo tor/distinfo
--- tor.orig/distinfo	2008-08-05 01:18:41.356172050 -0400
+++ tor/distinfo	2008-08-05 02:47:09.737761330 -0400
@@ -1,3 +1,3 @@
-MD5 (tor-0.1.2.19.tar.gz) = 4b3f9963b843010af5aa3bd6266d11e0
-SHA256 (tor-0.1.2.19.tar.gz) = 7e57198a0858f5ba8651d75225248c85b619e905f0ff4dbb45fffa2d03a1aa61
-SIZE (tor-0.1.2.19.tar.gz) = 1264275
+MD5 (tor-0.2.0.30.tar.gz) = d37b582ee35b4f69564b0635a449b5f6
+SHA256 (tor-0.2.0.30.tar.gz) = bc9e8bf841ef64f8b06eef91eeab430f91147a3c4d7a6919826fa33b20453387
+SIZE (tor-0.2.0.30.tar.gz) = 2155463
diff -ruN tor.orig/pkg-plist tor/pkg-plist
--- tor.orig/pkg-plist	2008-08-05 01:18:41.356172050 -0400
+++ tor/pkg-plist	2008-08-05 02:47:09.747764836 -0400
@@ -1,6 +1,9 @@
 bin/tor
+bin/tor-gencert
 bin/tor-resolve
 bin/torify
 etc/tor/tor-tsocks.conf.sample
 etc/tor/torrc.sample
+share/tor/geoip
+@dirrm share/tor
 @dirrm etc/tor


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Aug 5 07:10:11 UTC 2008 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126262 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: nivo+kw+ports.bfa274@is-root.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/126262: [PATCH}security/tor: update to 0.2.0.30
Date: Tue, 5 Aug 2008 07:10:08 UT

 Maintainer of security/tor,
 
 Please note that PR ports/126262 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/126262
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Tue Aug 5 10:26:10 UTC 2008 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126262 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Wed Aug 20 07:21:41 UTC 2008 
State-Changed-Why:  
Maintainer was reset. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126262 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Wed Aug 20 08:03:26 UTC 2008 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126262 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/126262: commit references a PR
Date: Wed, 20 Aug 2008 08:01:30 +0000 (UTC)

 miwi        2008-08-20 08:01:17 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/tor         Makefile distinfo pkg-plist 
   Log:
   - Update to 0.2.0.30
   
   PR:             126262
   Submitted by:   bf <bf2006a@yahoo.com>
   
   Revision  Changes    Path
   1.40      +37 -21    ports/security/tor/Makefile
   1.24      +3 -3      ports/security/tor/distinfo
   1.9       +3 -0      ports/security/tor/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
