FreeBSD Bugzilla – Attachment 127783 Details for
Bug 171638
net/proxychains overwrites configuration during installation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch.txt
patch.txt (text/plain; charset=us-ascii), 2.79 KB, created by
Alex Kozlov
on 2012-09-27 22:48:50 UTC
(
hide
)
Description:
patch.txt
Filename:
MIME Type:
Creator:
Alex Kozlov
Created:
2012-09-27 22:48:50 UTC
Size:
2.79 KB
patch
obsolete
>Index: ports/net/proxychains/Makefile >@@ -1,27 +1,31 @@ >-# New ports collection makefile for: proxychains >-# Date created: 14 jui 2003 >-# Whom: Patrick MARIE <mycroft@virgaria.org> >+# Created by: Patrick MARIE <mycroft@virgaria.org> > # $FreeBSD: ports/net/proxychains/Makefile,v 1.7 2009/08/22 00:31:39 amdmi3 Exp $ > > PORTNAME= proxychains > PORTVERSION= 3.1 >+PORTREVISION= 1 > CATEGORIES= net > MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION} > >-MAINTAINER= mycroft@virgaria.org >+MAINTAINER= ports@FreeBSD.org > COMMENT= Redirect connection through proxy servers > > GNU_CONFIGURE= yes > USE_GMAKE= yes > USE_LDCONFIG= yes > >-.include <bsd.port.pre.mk> >- >-.if ${OSVERSION} < 700017 >-EXTRA_PATCHES= ${PATCHDIR}/gethostbyaddr-proto-int >-.endif >+post-patch: >+ @${REINPLACE_CMD} -e 's!$$(srcdir)/proxychains.conf!$$(srcdir)/proxychains.conf.sample!' \ >+ -e 's!libproxychains_la_LIBADD = -ldl!libproxychains_la_LIBADD =!' \ >+ ${WRKSRC}/proxychains/Makefile.in >+ @${MV} ${WRKSRC}/proxychains/proxychains.conf \ >+ ${WRKSRC}/proxychains/proxychains.conf.sample > > post-configure: > @${ECHO_CMD} '#define PREFIX "${PREFIX}"' >> ${WRKSRC}/config.h > >-.include <bsd.port.post.mk> >+post-install: >+ @[ -f ${PREFIX}/etc/proxychains.conf ] || ${CP} ${PREFIX}/etc/proxychains.conf.sample \ >+ ${PREFIX}/etc/proxychains.conf >+ >+.include <bsd.port.mk> >Index: ports/net/proxychains/files/gethostbyaddr-proto-int >@@ -1,12 +0,0 @@ >---- proxychains/libproxychains.c Wed Mar 15 18:16:59 2006 >-+++ proxychains/libproxychains.c Thu Dec 7 15:34:57 2006 >-@@ -308,8 +308,7 @@ >- PDEBUG("getnameinfo: %s %s\n", host, serv); >- return ret; >- } >--struct hostent *gethostbyaddr (const void *addr, socklen_t len, >-- int type) >-+struct hostent *gethostbyaddr (const void *addr, int len, int type) >- { >- PDEBUG("TODO: gethostbyaddr hook\n"); >- if(!init_l) >Index: ports/net/proxychains/files/patch-proxychains-Makefile.in >@@ -1,11 +0,0 @@ >---- proxychains/Makefile.in.old Sat Dec 9 23:46:05 2006 >-+++ proxychains/Makefile.in Sat Dec 9 23:48:44 2006 >-@@ -105,7 +105,7 @@ >- #proxychains_LDFLAGS = $(all_libraries) >- lib_LTLIBRARIES = libproxychains.la >- libproxychains_la_LDFLAGS = -version-info 3:0:0 $(all_libraries) >--libproxychains_la_LIBADD = -ldl >-+libproxychains_la_LIBADD = >- noinst_HEADERS = core.h >- libproxychains_la_SOURCES = libproxychains.c core.c >- libproxychains_la_METASOURCES = USE_AUTOMOC >Index: ports/net/proxychains/pkg-plist >@@ -1,6 +1,8 @@ > bin/proxychains > bin/proxyresolv >-etc/proxychains.conf >+@unexec if cmp -s %D/etc/proxychains.conf %D/etc/proxychains.conf.sample; then rm -f %D/etc/proxychains.conf; fi >+etc/proxychains.conf.sample >+@exec [ -f %D/etc/proxychains.conf ] || cp %D/etc/proxychains.conf.sample %D/etc/proxychains.conf > lib/libproxychains.so.3 > lib/libproxychains.so > lib/libproxychains.la
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 171638
:
127781
|
127782
| 127783