aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlippe <lippe@FreeBSD.org>2013-06-27 04:52:19 +0800
committerlippe <lippe@FreeBSD.org>2013-06-27 04:52:19 +0800
commitfee47ffa8b3bb6e9d4ea4adf47e0013a302a560f (patch)
treedbdf00c217aa1b6421e7c8b3d2f613ab6febc0bd
parent6fc3f2a45d73ab43ad1d62a4b15df425da9b5779 (diff)
downloadfreebsd-ports-gnome-fee47ffa8b3bb6e9d4ea4adf47e0013a302a560f.tar.gz
freebsd-ports-gnome-fee47ffa8b3bb6e9d4ea4adf47e0013a302a560f.tar.zst
freebsd-ports-gnome-fee47ffa8b3bb6e9d4ea4adf47e0013a302a560f.zip
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 <nemysis@gmx.ch>
-rw-r--r--net/Makefile1
-rw-r--r--net/proxychains-ng/Makefile51
-rw-r--r--net/proxychains-ng/distinfo2
-rw-r--r--net/proxychains-ng/pkg-descr5
-rw-r--r--net/proxychains-ng/pkg-plist6
5 files changed, 65 insertions, 0 deletions
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 <bsd.port.options.mk>
+
+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 <bsd.port.mk>
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