Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 2008 04:39:44 GMT
From:      bf <bf2006a@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/124812: [PATCH]security/tor-devel: instrumented downloads option, regression-test target
Message-ID:  <200806210439.m5L4ditC037173@www.freebsd.org>
Resent-Message-ID: <200806210440.m5L4e2Z0027870@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124812
>Category:       ports
>Synopsis:       [PATCH]security/tor-devel: instrumented downloads option, regression-test target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 21 04:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        7-STABLE i386
>Organization:
-
>Environment:
>Description:
Allow for instrumented downloads option ( usage: http://archives.seul.org/or/dev/Jun-2008/msg00024.html ); change the name of the "check" target to "regression-test", following other recent changes in ports.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN tor-devel.orig/Makefile tor-devel/Makefile
--- tor-devel.orig/Makefile	2008-06-20 19:54:03.000000000 -0400
+++ tor-devel/Makefile	2008-06-21 00:29:25.257430875 -0400
@@ -7,6 +7,7 @@
 
 PORTNAME=	tor
 DISTVERSION=	0.2.1.1-alpha
+PORTREVISION=	1
 CATEGORIES=	security net
 MASTER_SITES=	http://www.torproject.org/dist/ \
 		http://tor.cypherpunks.at/dist/ \
@@ -29,6 +30,7 @@
 OPTIONS=	BUFFREELISTS "freelists for buffer RAM" on \
 		CELLPOOL "memory pool allocator for cells" on \
 		GEOIP "track country data" off \
+		INSTR_DOWNLOADS "instrument downloads for analysis" off \
 		TCMALLOC "use the tcmalloc memory allocation library" off \
 		THREADS "multi-threading support" on \
 		TRANSPARENT "transparent proxy support" on \
@@ -62,6 +64,12 @@
 CONFIGURE_ARGS+=	--disable-geoip-stats
 .endif
 
+.if defined(WITH_INSTR_DOWNLOADS)
+CONFIGURE_ARGS+=	--enable-instrument-downloads
+.else
+CONFIGURE_ARGS+=	--disable-instrument-downloads
+.endif
+
 .if defined(WITH_TCMALLOC)
 CONFIGURE_ARGS+=	--with-tcmalloc
 LIB_DEPENDS+=		tcmalloc:${PORTSDIR}/devel/google-perftools
@@ -113,7 +121,7 @@
 	${CHOWN} _tor:_tor /var/db/tor
 	${CAT} ${PKGMESSAGE}
 
-check:
+regression-test:
 	@( cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \
 	${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check )
 


>Release-Note:
>Audit-Trail:
>Unformatted:



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