summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-01-14 16:07:54 -0600
committerTim Harder <radhermit@gentoo.org>2017-01-14 16:22:10 -0600
commit0d1eca2754c7c5fd91662efd1fbc1ec1c8ad666b (patch)
tree95dffdd09ac183ebf7ed86db5792ff554526a483 /net-misc/proxychains
parentgnustep-base/gnustep-make: fix documentation installation, bug #585796 (diff)
downloadgentoo-0d1eca2754c7c5fd91662efd1fbc1ec1c8ad666b.tar.gz
gentoo-0d1eca2754c7c5fd91662efd1fbc1ec1c8ad666b.tar.bz2
gentoo-0d1eca2754c7c5fd91662efd1fbc1ec1c8ad666b.zip
net-misc/proxychains: version bump to 4.12
Diffstat (limited to 'net-misc/proxychains')
-rw-r--r--net-misc/proxychains/Manifest1
-rw-r--r--net-misc/proxychains/files/proxychains-4.12-makefile.patch43
-rw-r--r--net-misc/proxychains/proxychains-4.12.ebuild49
3 files changed, 93 insertions, 0 deletions
diff --git a/net-misc/proxychains/Manifest b/net-misc/proxychains/Manifest
index 0698b3187301..62f59403a571 100644
--- a/net-misc/proxychains/Manifest
+++ b/net-misc/proxychains/Manifest
@@ -1 +1,2 @@
DIST proxychains-ng-4.11.tar.bz2 31856 SHA256 dcc4149808cd1fb5d9663cc09791f478805816b1f017381f424414c47f6376b6 SHA512 241365e8a8bbcead22c7844a2970f59bfc1ee9ef9a42a3f800823e70008bd976835d705a8b9894980c46307dce3a886514051023bafef113845531cb5d928e1c WHIRLPOOL 3e74678745ba09c7484f111f0ced0dd030efe0c3cd9ae427d996ca8240101ea0746e152dee84c5b0023305087e4bc0ed72e0b6589ec9b4ceba93549e3282ecc8
+DIST proxychains-ng-4.12.tar.xz 31816 SHA256 482a549935060417b629f32ddadd14f9c04df8249d9588f7f78a3303e3d03a4e SHA512 c1319065b2885fb16f1cd10092a25f49c20ace82dc67edcb2e8845fe79274fe63f5214d117eef3bfdffdc6aa8bf6904ea216047bd626043c5ecb36cd15d5560a WHIRLPOOL c24fef1501f08bf39e1d6c8a27d1d842c7036f3293d43b58c129b5eed49cf8e38c2909863ece08690d9b8c854a1e5e7339d027fe77034493f2d4fe25172a7853
diff --git a/net-misc/proxychains/files/proxychains-4.12-makefile.patch b/net-misc/proxychains/files/proxychains-4.12-makefile.patch
new file mode 100644
index 000000000000..4b3fe530e34f
--- /dev/null
+++ b/net-misc/proxychains/files/proxychains-4.12-makefile.patch
@@ -0,0 +1,43 @@
+--- proxychains-ng-4.12/Makefile
++++ proxychains-ng-4.12/Makefile
+@@ -22,10 +22,8 @@
+
+ GENH = src/version.h
+
+-CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
+-NO_AS_NEEDED = -Wl,--no-as-needed
+-LIBDL = -ldl
+-LDFLAGS = -fPIC $(NO_AS_NEEDED) $(LIBDL) -lpthread
++CFLAGS = -Wall -std=c99 -D_GNU_SOURCE
++LIBS = -ldl -lpthread
+ INC =
+ PIC = -fPIC
+ AR = $(CROSS_COMPILE)ar
+@@ -35,11 +33,11 @@
+ LD_SET_SONAME = -Wl,-soname=
+ INSTALL = ./tools/install.sh
+
+-LDSO_PATHNAME = libproxychains4.$(LDSO_SUFFIX)
++LDSO_PATHNAME = libproxychains.$(LDSO_SUFFIX)
+
+ SHARED_LIBS = $(LDSO_PATHNAME)
+ ALL_LIBS = $(SHARED_LIBS)
+-PXCHAINS = proxychains4
++PXCHAINS = proxychains
+ ALL_TOOLS = $(PXCHAINS)
+ ALL_CONFIGS = src/proxychains.conf
+
+@@ -81,11 +79,10 @@
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<
+
+ $(LDSO_PATHNAME): $(LOBJS)
+- $(CC) $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) $(USER_LDFLAGS) \
+- -shared -o $@ $(LOBJS)
++ $(CC) $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) -shared $(PIC) -o $@ $(LOBJS)
+
+ $(ALL_TOOLS): $(OBJS)
+- $(CC) src/main.o src/common.o $(USER_LDFLAGS) -o $(PXCHAINS)
++ $(CC) $(LDFLAGS) src/main.o src/common.o -o $(PXCHAINS)
+
+
+ .PHONY: all clean install install-config install-libs install-tools
diff --git a/net-misc/proxychains/proxychains-4.12.ebuild b/net-misc/proxychains/proxychains-4.12.ebuild
new file mode 100644
index 000000000000..642d8ebef4d3
--- /dev/null
+++ b/net-misc/proxychains/proxychains-4.12.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs multilib
+
+MY_PN=${PN}-ng
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="force any tcp connections to flow through a proxy (or proxy chain)"
+HOMEPAGE="https://github.com/rofl0r/proxychains-ng/"
+SRC_URI="https://github.com/rofl0r/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_prepare() {
+ default
+ sed -i "s/^\(LDSO_SUFFIX\).*/\1 = so.${PV}/" Makefile || die
+ tc-export CC
+}
+
+src_configure() {
+ # not autotools
+ ./configure \
+ --prefix="${EPREFIX}"/usr \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --sysconfdir="${EPREFIX}"/etc \
+ || die
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc AUTHORS README TODO
+
+ dolib.so lib${PN}.so.${PV}
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1}
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so
+
+ insinto /etc
+ doins src/${PN}.conf
+}