Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2012 12:10:09 +0300
From:      Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/171638: net/proxychains overwrites configuration during installation
Message-ID:  <20120914091009.GA98325@pm513-1.comsys.ntu-kpi.kiev.ua>
Resent-Message-ID: <201209140920.q8E9KAis018673@freefall.freebsd.org>

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

>Number:         171638
>Category:       ports
>Synopsis:       net/proxychains overwrites configuration during installation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 14 09:20:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Simonenko
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
>Description:

The net/proxychains port during installation overwrites configuration
in ${PREFIX}/etc/proxychains.conf.  The following change modifies
configuration file name to proxychains.conf.sample.

>How-To-Repeat:
>Fix:
diff -ruN proxychains.orig/Makefile proxychains/Makefile
--- proxychains.orig/Makefile	2009-08-27 14:49:35.000000000 +0300
+++ proxychains/Makefile	2012-09-14 11:39:04.000000000 +0300
@@ -5,6 +5,7 @@
 
 PORTNAME=	proxychains
 PORTVERSION=	3.1
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION}
 
@@ -23,5 +24,6 @@
 
 post-configure:
 	@${ECHO_CMD} '#define PREFIX "${PREFIX}"' >> ${WRKSRC}/config.h
+	@${MV} ${WRKSRC}/proxychains/proxychains.conf ${WRKSRC}/proxychains/proxychains.conf.sample
 
 .include <bsd.port.post.mk>
diff -ruN proxychains.orig/files/patch-proxychains-Makefile.in proxychains/files/patch-proxychains-Makefile.in
--- proxychains.orig/files/patch-proxychains-Makefile.in	2006-12-12 23:39:24.000000000 +0200
+++ proxychains/files/patch-proxychains-Makefile.in	2012-09-14 11:35:37.000000000 +0300
@@ -1,5 +1,14 @@
 --- proxychains/Makefile.in.old	Sat Dec  9 23:46:05 2006
 +++ proxychains/Makefile.in	Sat Dec  9 23:48:44 2006
+@@ -93,7 +93,7 @@
+ 
+ EXTRA_DIST = proxychains.conf core.c core.h libproxychains.c 
+ 
+-sysconf_DATA = $(srcdir)/proxychains.conf
++sysconf_DATA = $(srcdir)/proxychains.conf.sample
+ 
+ #bin_PROGRAMS = proxychains
+ 
 @@ -105,7 +105,7 @@
  #proxychains_LDFLAGS = $(all_libraries)
  lib_LTLIBRARIES = libproxychains.la
diff -ruN proxychains.orig/pkg-plist proxychains/pkg-plist
--- proxychains.orig/pkg-plist	2007-10-29 12:34:58.000000000 +0200
+++ proxychains/pkg-plist	2012-09-14 11:37:53.000000000 +0300
@@ -1,6 +1,6 @@
 bin/proxychains
 bin/proxyresolv
-etc/proxychains.conf
+etc/proxychains.conf.sample
 lib/libproxychains.so.3
 lib/libproxychains.so
 lib/libproxychains.la

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



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