From f408b0051670f3f23dc1cb9aa6ecbf6556bbf8f3 Mon Sep 17 00:00:00 2001 From: Felippe de Meirelles Motta Date: Wed, 26 Jun 2013 20:52:19 +0000 Subject: [PATCH] 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. WWW: http://sourceforge.net/projects/proxychains-ng/ PR: ports/175068 Submitted by: nemysis --- net/Makefile | 1 + net/proxychains-ng/Makefile | 51 ++++++++++++++++++++++++++++++++++++ net/proxychains-ng/distinfo | 2 ++ net/proxychains-ng/pkg-descr | 5 ++++ net/proxychains-ng/pkg-plist | 6 +++++ 5 files changed, 65 insertions(+) create mode 100644 net/proxychains-ng/Makefile create mode 100644 net/proxychains-ng/distinfo create mode 100644 net/proxychains-ng/pkg-descr create mode 100644 net/proxychains-ng/pkg-plist diff --git a/net/Makefile b/net/Makefile index 94df2bc0ff96..4e39f8b4a3e2 100644 --- a/net/Makefile +++ b/net/Makefile @@ -891,6 +891,7 @@ SUBDIR += proxy-connect SUBDIR += proxy-suite SUBDIR += proxychains + SUBDIR += proxychains-ng SUBDIR += prtunnel SUBDIR += ptpd SUBDIR += ptpd2 diff --git a/net/proxychains-ng/Makefile b/net/proxychains-ng/Makefile new file mode 100644 index 000000000000..55588501aeb5 --- /dev/null +++ b/net/proxychains-ng/Makefile @@ -0,0 +1,51 @@ +# Created by: nemysis@gmx.ch +# $FreeBSD$ + +PORTNAME= proxychains-ng +PORTVERSION= 4.5 +CATEGORIES= net security +MASTER_SITES= SF/${PORTNAME} +DISTNAME= ${PORTNAME:S/-ng//}-${PORTVERSION} + +MAINTAINER= nemysis@gmx.ch +COMMENT= Redirect connection through proxy servers + +LICENSE= GPLv2 + +USE_BZIP2= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --prefix=${PREFIX} +USE_GMAKE= yes +ALL_TARGET= all +INSTALL_TARGET= install install-config +USE_LDCONFIG= yes + +CONFLICTS= proxychains-[0-9]* + +PORTDOCS= AUTHORS ChangeLog README TODO + +.include + +post-configure: + @${ECHO_CMD} "PXCHAINS=proxychains" >> ${WRKSRC}/config.mak + @${ECHO_CMD} "LDSO_PATHNAME=libproxychains-4.so" >> ${WRKSRC}/config.mak + +post-patch: + @${REINPLACE_CMD} \ + -e 's|$$(DESTDIR)/$$(sysconfdir)/|$$(DESTDIR)/$$(sysconfdir)/proxychains.conf.sample|' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} \ + -e 's|libproxychains4.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 diff --git a/net/proxychains-ng/distinfo b/net/proxychains-ng/distinfo new file mode 100644 index 000000000000..44033176fefa --- /dev/null +++ b/net/proxychains-ng/distinfo @@ -0,0 +1,2 @@ +SHA256 (proxychains-4.5.tar.bz2) = 61bf79c8107de320facdc44f7811b298b640dd549152ce25b467cb14ae60aece +SIZE (proxychains-4.5.tar.bz2) = 27292 diff --git a/net/proxychains-ng/pkg-descr b/net/proxychains-ng/pkg-descr new file mode 100644 index 000000000000..f41629047fe5 --- /dev/null +++ b/net/proxychains-ng/pkg-descr @@ -0,0 +1,5 @@ +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. + +WWW: http://sourceforge.net/projects/proxychains-ng/ diff --git a/net/proxychains-ng/pkg-plist b/net/proxychains-ng/pkg-plist new file mode 100644 index 000000000000..d04191553e66 --- /dev/null +++ b/net/proxychains-ng/pkg-plist @@ -0,0 +1,6 @@ +bin/proxychains +bin/proxyresolv +@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-4.so