From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 9 11:30:10 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA77C1065674 for ; Wed, 9 Nov 2011 11:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B782E8FC18 for ; Wed, 9 Nov 2011 11:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pA9BUAjd034490 for ; Wed, 9 Nov 2011 11:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pA9BUADT034489; Wed, 9 Nov 2011 11:30:10 GMT (envelope-from gnats) Resent-Date: Wed, 9 Nov 2011 11:30:10 GMT Resent-Message-Id: <201111091130.pA9BUADT034489@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrei Lavreniyuk Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0ECB106564A for ; Wed, 9 Nov 2011 11:26:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 90B2D8FC17 for ; Wed, 9 Nov 2011 11:26:23 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pA9BQNT8057066 for ; Wed, 9 Nov 2011 11:26:23 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pA9BQNj4057065; Wed, 9 Nov 2011 11:26:23 GMT (envelope-from nobody) Message-Id: <201111091126.pA9BQNj4057065@red.freebsd.org> Date: Wed, 9 Nov 2011 11:26:23 GMT From: Andrei Lavreniyuk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/162400: [MAINTAINER] net/torsocks: Update to 1.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 11:30:10 -0000 >Number: 162400 >Category: ports >Synopsis: [MAINTAINER] net/torsocks: Update to 1.2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Nov 09 11:30:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Andrei Lavreniyuk >Release: FreeBSD 8.2-STABLE >Organization: Technica-03, Inc. >Environment: FreeBSD datacenter.technica-03.local 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Nov 7 13:46:11 EET 2011 root@datacenter.technica-03.local:/usr/obj/usr/src/sys/SMP64 amd64 >Description: - Update net/torsocks to 1.2 >How-To-Repeat: - Use attached diff >Fix: Patch attached with submission follows: diff -ruN torsocks.bak/Makefile torsocks/Makefile --- torsocks.bak/Makefile 2011-01-14 13:18:39.000000000 +0200 +++ torsocks/Makefile 2011-11-09 13:14:35.000000000 +0200 @@ -5,8 +5,7 @@ # $FreeBSD: ports/net/torsocks/Makefile,v 1.10 2011/01/14 09:26:13 arved Exp $ PORTNAME= torsocks -PORTVERSION= 1.1 -PORTREVISION= 1 +PORTVERSION= 1.2 CATEGORIES= net security MASTER_SITES= GOOGLE_CODE \ http://tor.reactor-xg.kiev.ua/files/ @@ -30,7 +29,7 @@ OPTIONS= SOCKSDNS "Use socks server for DNS lookups" off \ OLDMETHOD "Do not use RTLD_NEXT parameter to dlsym" off \ NODEBUG "Disable output of error messages" off \ - HOSTNAMES "Disable DNS lookups of socks server" off + HOSTNAMES "Enable DNS lookups of socks server" off .include @@ -50,8 +49,8 @@ CONFIGURE_ARGS+= --enable-hostnames .endif -.if defined(WITH_SOCKSDNS) && !defined(WITH_HOSTNAMES) -BROKEN= HOSTNAMES option is necessary if SOCKSDNS option is enabled +.if defined(WITH_SOCKSDNS) && defined(WITH_HOSTNAMES) +BROKEN= HOSTNAMES option is not allowed when SOCKSDNS option is enabled .endif pre-everything:: @@ -87,9 +86,9 @@ .if !defined(WITH_HOSTNAMES) @${ECHO_MSG} @${ECHO_MSG} "You can use the HOSTNAMES option." - @${ECHO_MSG} "This disables DNS lookups on names" + @${ECHO_MSG} "This enables DNS lookups on names" @${ECHO_MSG} "provided as socks servers in the config" - @${ECHO_MSG} "file. This option is necessary" + @${ECHO_MSG} "file. This option is not allowed" @${ECHO_MSG} "if socks dns is enabled since torsocks" @${ECHO_MSG} "can't send a socks dns request to resolve" @${ECHO_MSG} "the location of the socks server." @@ -99,12 +98,13 @@ post-patch: @${REINPLACE_CMD} -e 's|@prefix@|${PREFIX}|' ${WRKSRC}/src/torsocks.in @${REINPLACE_CMD} -e 's|MAP_ANONYMOUS|MAP_ANON|' ${WRKSRC}/src/dead_pool.c - @${MV} ${WRKSRC}/src/torsocks.conf ${WRKSRC}/src/torsocks.conf.sample + @${CP} ${WRKSRC}/doc/torsocks.conf ${WRKSRC}/doc/torsocks.conf.sample post-install: .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/src/*.example ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.sample ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.sample ${PREFIX}/etc .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff -ruN torsocks.bak/distinfo torsocks/distinfo --- torsocks.bak/distinfo 2010-12-27 10:40:15.000000000 +0200 +++ torsocks/distinfo 2011-11-09 12:33:43.000000000 +0200 @@ -1,2 +1,2 @@ -SHA256 (torsocks-1.1.tar.gz) = 09dac54c2bb4e57cfdc449dc45b97be832910a4d81d5a2931543b469d97fdf01 -SIZE (torsocks-1.1.tar.gz) = 674386 +SHA256 (torsocks-1.2.tar.gz) = bea57d3624d723724fd1e260f0e6b2a354c0da742c023aa994c7692270d111d4 +SIZE (torsocks-1.2.tar.gz) = 456453 diff -ruN torsocks.bak/files/patch-Makefile.am torsocks/files/patch-Makefile.am --- torsocks.bak/files/patch-Makefile.am 2009-03-08 15:57:27.000000000 +0200 +++ torsocks/files/patch-Makefile.am 2011-11-09 12:39:20.000000000 +0200 @@ -1,21 +1,10 @@ ---- src/Makefile.am.orig 2009-02-07 11:48:12.000000000 +0100 -+++ src/Makefile.am 2009-02-18 17:29:26.000000000 +0100 -@@ -1,7 +1,7 @@ +--- src/Makefile.am.orig 2011-10-24 22:26:34.000000000 +0300 ++++ src/Makefile.am 2011-11-09 12:36:55.697224889 +0200 +@@ -1,6 +1,6 @@ # Makefile used by configure to create real Makefile --LIBS = -ldl -lc -lresolv --libdir = @prefix@/lib/torsocks -+LIBS = -lc +-libdir = @libdir@/torsocks +libdir = @prefix@/lib - # Install helper programs - #bin_PROGRAMS = validateconf inspectsocks saveme -@@ -16,7 +16,7 @@ - - # Install configuration file - usewithtorconfdir = $(CONFDIR)/ --usewithtorconf_DATA = torsocks.conf -+usewithtorconf_DATA = torsocks.conf.sample - # Install invocation scripts bin_SCRIPTS = torsocks usewithtor diff -ruN torsocks.bak/files/patch-Makefile.in torsocks/files/patch-Makefile.in --- torsocks.bak/files/patch-Makefile.in 2010-10-06 10:20:47.000000000 +0300 +++ torsocks/files/patch-Makefile.in 2011-11-09 12:42:39.000000000 +0200 @@ -1,17 +1,11 @@ ---- src/Makefile.in.orig 2009-11-08 06:39:45.000000000 -0600 -+++ src/Makefile.in 2010-10-02 15:56:22.000000000 -0500 -@@ -145,3 +145,3 @@ - LIBOBJS = @LIBOBJS@ --LIBS = -ldl -lc -lresolv -+LIBS = -lc - LIBTOOL = @LIBTOOL@ -@@ -207,3 +207,3 @@ +--- src/Makefile.in.orig 2011-10-24 23:23:39.000000000 +0300 ++++ src/Makefile.in 2011-11-09 12:41:22.805940562 +0200 +@@ -196,7 +196,7 @@ + includedir = @includedir@ + infodir = @infodir@ install_sh = @install_sh@ --libdir = @prefix@/lib/torsocks +-libdir = @libdir@/torsocks +libdir = @prefix@/lib libexecdir = @libexecdir@ -@@ -241,3 +241,3 @@ - usewithtorconfdir = $(CONFDIR)/ --usewithtorconf_DATA = torsocks.conf -+usewithtorconf_DATA = torsocks.conf.sample - + localedir = @localedir@ + localstatedir = @localstatedir@ diff -ruN torsocks.bak/files/patch-configure.in torsocks/files/patch-configure.in --- torsocks.bak/files/patch-configure.in 2010-12-27 11:46:52.000000000 +0200 +++ torsocks/files/patch-configure.in 1970-01-01 03:00:00.000000000 +0300 @@ -1,17 +0,0 @@ ---- configure.in.orig 2009-11-08 14:35:11.000000000 +0200 -+++ configure.in 2009-11-13 16:49:06.984178608 +0200 -@@ -123,11 +123,9 @@ - dnl Checks for libraries. - dnl Replace `main' with a function in -ldl: - --AC_CHECK_LIB(dl, dlsym, [ tempdso="yes" ],tempdso="no") --if test "$tempdso" = "no"; then -- AC_CHECK_LIB(c, dlsym,,AC_MSG_ERROR("dlsym() not found in libc or libdl." \ -- "Check your system for libc.so and/or libdl.so.")) --fi -+dnl Checks for libraries. -+AC_CHECK_LIB(c, dlsym,,AC_MSG_ERROR(""dlsym() not found in libc." \ -+ "Check your system for libc.so.")) - - AC_CHECK_LIB(resolv, res_query, [ tempres="no" ],tempres="yes") - if test "$tempres" = "no"; then diff -ruN torsocks.bak/files/patch-tsocks.c torsocks/files/patch-tsocks.c --- torsocks.bak/files/patch-tsocks.c 2010-12-27 10:54:56.000000000 +0200 +++ torsocks/files/patch-tsocks.c 1970-01-01 03:00:00.000000000 +0300 @@ -1,25 +0,0 @@ ---- src/tsocks.c.orig 2009-11-08 14:35:11.000000000 +0200 -+++ src/tsocks.c 2009-11-13 17:00:10.412574127 +0200 -@@ -54,6 +54,13 @@ - #define _GNU_SOURCE - #endif - -+/* Required by some BSDs */ -+#ifndef MAP_ANONYMOUS -+#ifdef MAP_ANON -+#define MAP_ANONYMOUS MAP_ANON -+#endif -+#endif -+ - /* Global configuration variables */ - const char *progname = "libtorsocks"; /* Name used in err msgs */ - -@@ -163,7 +169,7 @@ - void tsocks_init(void) { - - #define LOAD_ERROR(s,l) { \ -- char *error; \ -+ const char *error; \ - error = dlerror(); \ - show_msg(l, "The symbol %s() was not found in any shared " \ - "library. The error reported was: %s!\n", s, \ diff -ruN torsocks.bak/pkg-plist torsocks/pkg-plist --- torsocks.bak/pkg-plist 2009-03-08 15:57:27.000000000 +0200 +++ torsocks/pkg-plist 2011-11-09 13:07:42.000000000 +0200 @@ -5,8 +5,7 @@ lib/libtorsocks.la lib/libtorsocks.so lib/libtorsocks.so.1 -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsocks.conf.complex.example -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsocks.conf.simple.example +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/torsocks.conf.sample %%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% >Release-Note: >Audit-Trail: >Unformatted: