Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/proxychains/files/, net-misc/proxychains/
Date: Mon, 18 Nov 2019 05:27:54
Message-Id: 1574054220.ff77ff68c1c0e2c62fa02d95886c703eb401adab.radhermit@gentoo
1 commit: ff77ff68c1c0e2c62fa02d95886c703eb401adab
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 18 05:17:00 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 18 05:17:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff77ff68
7
8 net-misc/proxychains: version bump to 4.14
9
10 Closes: https://bugs.gentoo.org/675676
11
12 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
13
14 net-misc/proxychains/Manifest | 1 +
15 .../files/proxychains-4.14-makefile.patch | 43 +++++++++++++++++++
16 net-misc/proxychains/proxychains-4.14.ebuild | 48 ++++++++++++++++++++++
17 3 files changed, 92 insertions(+)
18
19 diff --git a/net-misc/proxychains/Manifest b/net-misc/proxychains/Manifest
20 index 3be42d78392..d7cd993d897 100644
21 --- a/net-misc/proxychains/Manifest
22 +++ b/net-misc/proxychains/Manifest
23 @@ -1 +1,2 @@
24 DIST proxychains-ng-4.12.tar.xz 31816 BLAKE2B 1267cd67ca3a21737abe9e510103c35e409a4afebf30c8917b7be8a84f1bb4edc55b6ec633eb5e63682ed2f6c277a464e16adaa52c70c8bac2588cfe7b36f1a6 SHA512 c1319065b2885fb16f1cd10092a25f49c20ace82dc67edcb2e8845fe79274fe63f5214d117eef3bfdffdc6aa8bf6904ea216047bd626043c5ecb36cd15d5560a
25 +DIST proxychains-ng-4.14.tar.xz 33844 BLAKE2B 598dd7973fd341a9916ece55ee18aeb0e0654d01659ffd3f5b7b9437fbb3660376aca77cd1326553a1beffd1ea4f95c6eb3da9c0f6ce43f3d72b1a16cf2bab4e SHA512 75a1a4629d2b7ebac9b909a694b395339cf669fa4e23bfcc57938e46377b5619f31c9651d2bc457d1ad10ec1be7747981106392bf8bf65999cb7bb9c748d7e95
26
27 diff --git a/net-misc/proxychains/files/proxychains-4.14-makefile.patch b/net-misc/proxychains/files/proxychains-4.14-makefile.patch
28 new file mode 100644
29 index 00000000000..3724ec6a5a2
30 --- /dev/null
31 +++ b/net-misc/proxychains/files/proxychains-4.14-makefile.patch
32 @@ -0,0 +1,43 @@
33 +--- proxychains-ng-4.14/Makefile
34 ++++ proxychains-ng-4.14/Makefile
35 +@@ -22,10 +22,8 @@
36 +
37 + GENH = src/version.h
38 +
39 +-CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
40 +-NO_AS_NEEDED = -Wl,--no-as-needed
41 +-LIBDL = -ldl
42 +-LDFLAGS = -fPIC $(NO_AS_NEEDED) $(LIBDL) -lpthread
43 ++CFLAGS = -Wall -std=c99 -D_GNU_SOURCE
44 ++LIBS = -ldl -lpthread
45 + INC =
46 + PIC = -fPIC
47 + AR = $(CROSS_COMPILE)ar
48 +@@ -36,11 +34,11 @@
49 + LD_SET_SONAME = -Wl,-soname=
50 + INSTALL = ./tools/install.sh
51 +
52 +-LDSO_PATHNAME = libproxychains4.$(LDSO_SUFFIX)
53 ++LDSO_PATHNAME = libproxychains.$(LDSO_SUFFIX)
54 +
55 + SHARED_LIBS = $(LDSO_PATHNAME)
56 + ALL_LIBS = $(SHARED_LIBS)
57 +-PXCHAINS = proxychains4
58 ++PXCHAINS = proxychains
59 + ALL_TOOLS = $(PXCHAINS)
60 + ALL_CONFIGS = src/proxychains.conf
61 +
62 +@@ -82,11 +80,10 @@
63 + $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<
64 +
65 + $(LDSO_PATHNAME): $(LOBJS)
66 +- $(CC) $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) $(USER_LDFLAGS) \
67 +- -shared -o $@ $(LOBJS) $(SOCKET_LIBS)
68 ++ $(CC) $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) -shared $(PIC) -o $@ $(LOBJS) $(LIBS) $(SOCKET_LIBS)
69 +
70 + $(ALL_TOOLS): $(OBJS)
71 +- $(CC) src/main.o src/common.o $(USER_LDFLAGS) -o $(PXCHAINS)
72 ++ $(CC) $(LDFLAGS) src/main.o src/common.o -o $(PXCHAINS)
73 +
74 +
75 + .PHONY: all clean install install-config install-libs install-tools
76
77 diff --git a/net-misc/proxychains/proxychains-4.14.ebuild b/net-misc/proxychains/proxychains-4.14.ebuild
78 new file mode 100644
79 index 00000000000..9897fb23beb
80 --- /dev/null
81 +++ b/net-misc/proxychains/proxychains-4.14.ebuild
82 @@ -0,0 +1,48 @@
83 +# Copyright 1999-2019 Gentoo Authors
84 +# Distributed under the terms of the GNU General Public License v2
85 +
86 +EAPI=7
87 +
88 +inherit toolchain-funcs multilib
89 +
90 +MY_PN=${PN}-ng
91 +MY_P=${MY_PN}-${PV}
92 +
93 +DESCRIPTION="force any tcp connections to flow through a proxy (or proxy chain)"
94 +HOMEPAGE="https://github.com/rofl0r/proxychains-ng/"
95 +SRC_URI="http://ftp.barfooze.de/pub/sabotage/tarballs/${MY_P}.tar.xz"
96 +
97 +LICENSE="GPL-2"
98 +SLOT="0"
99 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
100 +
101 +S=${WORKDIR}/${MY_P}
102 +
103 +PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
104 +
105 +src_prepare() {
106 + default
107 + sed -i "s/^\(LDSO_SUFFIX\).*/\1 = so.${PV}/" Makefile || die
108 + tc-export CC
109 +}
110 +
111 +src_configure() {
112 + # not autotools
113 + ./configure \
114 + --prefix="${EPREFIX}"/usr \
115 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
116 + --sysconfdir="${EPREFIX}"/etc \
117 + || die
118 +}
119 +
120 +src_install() {
121 + dobin ${PN}
122 + dodoc AUTHORS README TODO
123 +
124 + dolib.so lib${PN}.so.${PV}
125 + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1}
126 + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so
127 +
128 + insinto /etc
129 + doins src/${PN}.conf
130 +}