Date: Sun, 06 Jan 2013 19:40:00 +0100 From: nemysis <nemysis@gmx.ch> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/175068: [PATCH] net/proxychains: update to 4.4, take maintainership Message-ID: <20130106184009.897BA419@hub.freebsd.org> Resent-Message-ID: <201301061850.r06Io07O012548@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 175068 >Category: ports >Synopsis: [PATCH] net/proxychains: update to 4.4, take maintainership >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jan 06 18:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: nemysis >Release: FreeBSD 9.0-RELEASE amd64 >Organization: >Environment: System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC >Description: - Update to 4.4 - Take maintainership Removed file(s): - files/patch-proxychains-libproxychains.c Makefile changed: +CATEGORIES= net security +MASTER_SITES= SF/${PORTNAME}-ng/ +LICENSE= GPLv2 +USE_BZIP2= yes +ALL_TARGET= all install-config +PORTDOCS= +.include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MDOCS} Changed and refined: post-configure: post-patch: post-install: pkg-descr pkg-plist Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: update, diff: ports) >How-To-Repeat: portlint -A WARN: Makefile: [34]: use ${VARIABLE}, instead of $(VARIABLE). WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy. 0 fatal errors and 2 warnings found. WARN: Makefile: [34]: because is used + -e 's|$$(DESTDIR)/$$(sysconfdir)/|$$(DESTDIR)/$$(sysconfdir)/proxychains.conf.sample|' \ port test: clean Works much better and secure as version 3.1, because this Priority: high >Fix: --- proxychains-4.4.patch begins here --- diff -ruN --exclude=CVS /usr/ports/net/proxychains/Makefile ./Makefile --- /usr/ports/net/proxychains/Makefile 2012-12-05 00:41:54.000000000 +0100 +++ ./Makefile 2013-01-06 19:31:08.000000000 +0100 @@ -2,30 +2,49 @@ # $FreeBSD: head/net/proxychains/Makefile 306081 2012-10-18 19:13:07Z ak $ PORTNAME= proxychains -PORTVERSION= 3.1 -PORTREVISION= 1 -CATEGORIES= net -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION} +PORTVERSION= 4.4 +CATEGORIES= net security +MASTER_SITES= SF/${PORTNAME}-ng/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= nemysis@gmx.ch COMMENT= Redirect connection through proxy servers +LICENSE= GPLv2 + +USE_BZIP2= yes GNU_CONFIGURE= yes USE_GMAKE= yes +ALL_TARGET= all install-config USE_LDCONFIG= yes -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 +PORTDOCS= AUTHORS ChangeLog README TODO + +.include <bsd.port.options.mk> post-configure: - @${ECHO_CMD} '#define PREFIX "${PREFIX}"' >> ${WRKSRC}/config.h + @${ECHO_CMD} 'INSTALL_FLAGS=-m' >> ${WRKSRC}/config.mak + +post-patch: + @${REINPLACE_CMD} \ + -e 's|/usr/local|${PREFIX}|g' \ + -e 's|libproxychains4|libproxychains-4|' \ + -e 's|proxychains4|proxychains|' \ + -e 's|^CFLAGS +=.*|CFLAGS += -Wall|' \ + -e 's|$$(DESTDIR)/$$(sysconfdir)/|$$(DESTDIR)/$$(sysconfdir)/proxychains.conf.sample|' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} \ + -e 's|4.2.2.2|8.8.8.8|' \ + -e 's|libproxychains.so|libproxychains-4.so|' \ + ${WRKSRC}/src/proxyresolv post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/src/proxyresolv ${PREFIX}/bin @[ -f ${PREFIX}/etc/proxychains.conf ] || ${CP} ${PREFIX}/etc/proxychains.conf.sample \ ${PREFIX}/etc/proxychains.conf +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif + .include <bsd.port.mk> diff -ruN --exclude=CVS /usr/ports/net/proxychains/distinfo ./distinfo --- /usr/ports/net/proxychains/distinfo 2012-12-05 00:41:54.000000000 +0100 +++ ./distinfo 2013-01-06 18:37:43.000000000 +0100 @@ -1,2 +1,2 @@ -SHA256 (proxychains-3.1.tar.gz) = 9a27657fe9f6e17de9e402ba5c60f9954e7e79fb270c1ef242770f3c01d8515a -SIZE (proxychains-3.1.tar.gz) = 327057 +SHA256 (proxychains-4.4.tar.bz2) = 930269f52795e4803b7b1f3b0be6d2eb333b58c757623205364dad741f7d26fc +SIZE (proxychains-4.4.tar.bz2) = 26786 diff -ruN --exclude=CVS /usr/ports/net/proxychains/files/patch-proxychains-libproxychains.c ./files/patch-proxychains-libproxychains.c --- /usr/ports/net/proxychains/files/patch-proxychains-libproxychains.c 2012-12-05 00:41:54.000000000 +0100 +++ ./files/patch-proxychains-libproxychains.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ ---- proxychains/libproxychains.c.orig Wed Mar 15 18:16:59 2006 -+++ proxychains/libproxychains.c Sun Dec 10 01:16:37 2006 -@@ -160,7 +160,7 @@ - - if(!(file=fopen("./proxychains.conf","r"))) - if(!(file=fopen(buff,"r"))) -- if(!(file=fopen("/etc/proxychains.conf","r"))) -+ if(!(file=fopen(PREFIX "/etc/proxychains.conf","r"))) - { - perror("Can't locate proxychains.conf"); - exit(1); -@@ -290,8 +290,8 @@ - - int getnameinfo (const struct sockaddr * sa, - socklen_t salen, char * host, -- socklen_t hostlen, char * serv, -- socklen_t servlen, unsigned int flags) -+ size_t hostlen, char * serv, -+ size_t servlen, int flags) - { - int ret = 0; - if(!init_l) diff -ruN --exclude=CVS /usr/ports/net/proxychains/pkg-descr ./pkg-descr --- /usr/ports/net/proxychains/pkg-descr 2012-12-05 00:41:54.000000000 +0100 +++ ./pkg-descr 2013-01-06 19:30:53.000000000 +0100 @@ -1,7 +1,5 @@ -ProxyChains +ProxyChains is a UNIX program, that hooks network-related libc functions +in dynamically linked programs via a preloaded DLL and redirects the +connections through SOCKS4a/5 or HTTP proxies. -This program forces any tcp connection made by any given tcp client -to follow through proxy (or proxy chain). It is a kind of proxifier. -It acts like sockscap / permeo / eborder driver (intercepts TCP calls). - -WWW: http://proxychains.sourceforge.net/ +WWW: http://sourceforge.net/projects/proxychains-ng/ diff -ruN --exclude=CVS /usr/ports/net/proxychains/pkg-plist ./pkg-plist --- /usr/ports/net/proxychains/pkg-plist 2012-12-05 00:41:54.000000000 +0100 +++ ./pkg-plist 2013-01-06 19:06:31.000000000 +0100 @@ -3,7 +3,4 @@ @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 -lib/libproxychains.a +lib/libproxychains-4.so --- proxychains-4.4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130106184009.897BA419>