aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@we.make.ritual.n0.is>2016-10-26 21:00:54 +0000
committerng0 <ng0@we.make.ritual.n0.is>2016-10-26 21:00:54 +0000
commitc5ce4e648389df0a9218641c511a168162dcf379 (patch)
treee7c0f26d091460900afab01195eba7381121a4cc
parent21548d19789722958d7674089f23086642cd4b2d (diff)
parent02bb5bc1038375c664e2bd9f7b535bcbbb82978e (diff)
downloadyoubroketheinternet-overlay-c5ce4e648389df0a9218641c511a168162dcf379.tar.gz
youbroketheinternet-overlay-c5ce4e648389df0a9218641c511a168162dcf379.zip
Merge branch 'master' of gnunet.org:youbroketheinternet-overlay
-rw-r--r--net-proxy/torsocks/Manifest3
-rw-r--r--net-proxy/torsocks/files/fix-docdir.patch24
-rw-r--r--net-proxy/torsocks/files/suppress-warning-msgs.patch15
-rw-r--r--net-proxy/torsocks/files/torsocks-2.1.0-musl.patch121
-rw-r--r--net-proxy/torsocks/metadata.xml12
-rw-r--r--net-proxy/torsocks/torsocks-1.2-r2.ebuild41
-rw-r--r--net-proxy/torsocks/torsocks-2.1.0-r1.ebuild49
-rw-r--r--net-proxy/torsocks/torsocks-2.2.0.ebuild44
8 files changed, 309 insertions, 0 deletions
diff --git a/net-proxy/torsocks/Manifest b/net-proxy/torsocks/Manifest
new file mode 100644
index 0000000..5a0b5b3
--- /dev/null
+++ b/net-proxy/torsocks/Manifest
@@ -0,0 +1,3 @@
1DIST torsocks-1.2.tar.gz 456453 SHA256 bea57d3624d723724fd1e260f0e6b2a354c0da742c023aa994c7692270d111d4 SHA512 c48cf466c1d4f6204c90ccb5f741d14304b24651d18d080a73952b9a06bbe146e3f6e6c4343ed06ed7a73714d86561cde3eba369e17fc4e155f3553a8d0f3890 WHIRLPOOL af892c2a6f8070308f6867154c50ee8ce6fd20c761dbd6466ea1ae3b46730452ce0757e9de8bf698f8bd455649f3f76a4e9a0bd883408f464c619c1d41e937cf
2DIST torsocks-2.1.0.tar.gz 106339 SHA256 a72c3ea757f5fe81d1ab91e0d5f0d83f195e235aae66d4df2f88a20db7028104 SHA512 5bdec6fd6c2d99effb73e418acd37ee135b3c912fad7811bfc8c724282370beea23149c6e94b995cfed0e61be43e63ac11d8c6ef420ba0137a19b96d8ac370e5 WHIRLPOOL 4511c9bff51ec25efb9b6f211d4b37931ba9c23ad89b1b272adf6b60351308e59a5e3d5157ba4adfab9e085deba435a9a1a8b4c69ec98514069c42561799c25c
3DIST torsocks-2.2.0.tar.gz 115269 SHA256 36216a1e30f47fa0e5be84761e0d72133196c8a042716017da56e9439338c87d SHA512 903d11d58ece76eaf75ff8fc11a27e4a29f94be530f2d77d1a6f0982d556a4b9c78677a43eed88f2451054d0e985672900ecf73b360fa09e80195c3b9006622b WHIRLPOOL 3ce3ec9807a9b0bb55572f71541b0ba918223e3037914ed070cd97927446bd0b8666a70b568ebd5d7a5d310cd3c6fd4103f1ae8e616cc35e8a6a92d4a6b9051e
diff --git a/net-proxy/torsocks/files/fix-docdir.patch b/net-proxy/torsocks/files/fix-docdir.patch
new file mode 100644
index 0000000..899c15b
--- /dev/null
+++ b/net-proxy/torsocks/files/fix-docdir.patch
@@ -0,0 +1,24 @@
1diff -Naur torsocks-1.2.orig/doc/Makefile.am torsocks-1.2/doc/Makefile.am
2--- torsocks-1.2.orig/doc/Makefile.am 2011-10-26 14:30:26.000000000 -0400
3+++ torsocks-1.2/doc/Makefile.am 2011-12-26 20:05:40.000000000 -0500
4@@ -7,8 +7,6 @@
5 # Install man pages
6 dist_man_MANS = torsocks.1 torsocks.8 usewithtor.1 torsocks.conf.5
7
8-dist_data_DATA = socks/SOCKS5 socks/SOCKS4.protocol socks/socks-extensions.txt \
9- patches/compilewarnings.patch patches/conffile.patch patches/getaddrbyhost.patch \
10- patches/getpeername.patch patches/infiniteloop.patch patches/localaddresses.patch \
11- patches/README patches/README.TORDNS patches/tordns.patch notes/DEBUG
12+dist_doc_DATA = socks/SOCKS5 socks/SOCKS4.protocol socks/socks-extensions.txt \
13+ notes/DEBUG
14
15diff -Naur torsocks-1.2.orig/test/Makefile.am torsocks-1.2/test/Makefile.am
16--- torsocks-1.2.orig/test/Makefile.am 2011-10-26 14:21:57.000000000 -0400
17+++ torsocks-1.2/test/Makefile.am 2011-12-26 20:04:34.000000000 -0500
18@@ -4,4 +4,4 @@
19 test_torsocks_LDFLAGS= $(TESTLDFLAGS)
20 CLEANFILES= test_torsocks
21
22-dist_data_DATA = run_tests.sh expectedresults.txt
23\ No newline at end of file
24+dist_doc_DATA = run_tests.sh expectedresults.txt
diff --git a/net-proxy/torsocks/files/suppress-warning-msgs.patch b/net-proxy/torsocks/files/suppress-warning-msgs.patch
new file mode 100644
index 0000000..7470b9f
--- /dev/null
+++ b/net-proxy/torsocks/files/suppress-warning-msgs.patch
@@ -0,0 +1,15 @@
1--- torsocks-1.2.orig/src/torsocks.c 2011-10-25 17:49:50.000000000 -0400
2+++ torsocks-1.2/src/torsocks.c 2012-02-21 11:09:20.000000000 -0500
3@@ -124,9 +124,9 @@
4 #define LOAD_ERROR(s,l) { \
5 const char *error; \
6 error = dlerror(); \
7- show_msg(l, "The symbol %s() was not found in any shared " \
8- "library. The error reported was: %s!\n", s, \
9- (error)?error:"not found"); \
10+ if (error) \
11+ show_msg(l, "The symbol %s() was not found in any shared " \
12+ "library. The error reported was: %s!\n", s, error); \
13 dlerror(); \
14 }
15 pthread_mutex_lock(&torsocks_init_mutex);
diff --git a/net-proxy/torsocks/files/torsocks-2.1.0-musl.patch b/net-proxy/torsocks/files/torsocks-2.1.0-musl.patch
new file mode 100644
index 0000000..c11cf69
--- /dev/null
+++ b/net-proxy/torsocks/files/torsocks-2.1.0-musl.patch
@@ -0,0 +1,121 @@
1From 3e793e9eac05ad926cc016da5129e95986d105f2 Mon Sep 17 00:00:00 2001
2From: David Goulet <dgoulet@ev0ke.net>
3Date: Mon, 13 Jun 2016 14:39:53 -0400
4Subject: [PATCH] Add support for musl-libc
5
6Musl library does not have a specific define so use __linux__ instead.
7
8Signed-off-by: David Goulet <dgoulet@ev0ke.net>
9---
10 src/common/compat.c | 5 +++--
11 src/common/compat.h | 5 +++--
12 src/common/ref.h | 5 +++--
13 src/lib/torsocks.h | 9 +++++----
14 4 files changed, 14 insertions(+), 10 deletions(-)
15
16diff --git a/src/common/compat.c b/src/common/compat.c
17index a861b3d..323f2ed 100644
18--- a/src/common/compat.c
19+++ b/src/common/compat.c
20@@ -19,7 +19,8 @@
21
22 #include "compat.h"
23
24-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
25+#if (defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__) || \
26+ defined(__darwin__) || defined(__NetBSD__))
27
28 /*
29 * Initialize a pthread mutex. This never fails.
30@@ -96,4 +97,4 @@ void tsocks_once(tsocks_once_t *o, void (*init_routine)(void))
31 tsocks_mutex_unlock(&o->mutex);
32 }
33
34-#endif /* __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
35+#endif /* __linux__, __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
36diff --git a/src/common/compat.h b/src/common/compat.h
37index ce47129..6c8ce32 100644
38--- a/src/common/compat.h
39+++ b/src/common/compat.h
40@@ -22,7 +22,8 @@
41 #define __darwin__ 1
42 #endif
43
44-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
45+#if (defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__) || \
46+ defined(__darwin__) || defined(__NetBSD__))
47
48 #define RTLD_NEXT ((void *) -1)
49
50@@ -55,7 +56,7 @@ void tsocks_once(tsocks_once_t *o, void (*init_routine)(void));
51
52 #else
53 #error "OS not supported."
54-#endif /* __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
55+#endif /* __linux__, __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
56
57 #if defined(__linux__)
58 #include <unistd.h>
59diff --git a/src/common/ref.h b/src/common/ref.h
60index 88aec2e..d9b9df8 100644
61--- a/src/common/ref.h
62+++ b/src/common/ref.h
63@@ -26,7 +26,8 @@ struct ref {
64 long count;
65 };
66
67-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
68+#if (defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__) || \
69+ defined(__darwin__) || defined(__NetBSD__))
70
71 /*
72 * Get a reference by incrementing the refcount.
73@@ -57,6 +58,6 @@ static inline void ref_put(struct ref *r,
74
75 #else
76 #error "OS not supported"
77-#endif /* __GLIBC__, __FreeBSD__, __darwin__ */
78+#endif /* __linux__, __GLIBC__, __FreeBSD__, __darwin__, __NetBSD__ */
79
80 #endif /* TORSOCKS_REF_H */
81diff --git a/src/lib/torsocks.h b/src/lib/torsocks.h
82index 076f3a5..0eeef2a 100644
83--- a/src/lib/torsocks.h
84+++ b/src/lib/torsocks.h
85@@ -33,7 +33,8 @@
86 #define TSOCKS_DECL(name, type, sig) \
87 extern type tsocks_##name(sig);
88
89-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
90+#if (defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__) || \
91+ defined(__darwin__) || defined(__NetBSD__))
92
93 /* connect(2) */
94 #include <sys/types.h>
95@@ -207,7 +208,7 @@ struct hostent **result, int *h_errnop
96
97 #else
98 #error "OS not supported."
99-#endif /* __GLIBC__ , __FreeBSD__, __darwin__, __NetBSD__ */
100+#endif /* __linux__, __GLIBC__ , __FreeBSD__, __darwin__, __NetBSD__ */
101
102 #if (defined(__linux__))
103
104@@ -241,7 +242,7 @@ struct hostent **result, int *h_errnop
105
106 #endif /* __FreeBSD__, __darwin__, __NetBSD__ */
107
108-#if defined(__GLIBC__) && defined(__FreeBSD_kernel__)
109+#if (defined(__linux__) || defined(__GLIBC__)) && defined(__FreeBSD_kernel__)
110
111 /* syscall(2) */
112 #define LIBC_SYSCALL_NAME syscall
113@@ -250,7 +251,7 @@ struct hostent **result, int *h_errnop
114 #define LIBC_SYSCALL_SIG long int number, ...
115 #define LIBC_SYSCALL_ARGS number
116
117-#endif /* __GLIBC__ && __FreeBSD_kernel__ */
118+#endif /* (__linux__ || __GLIBC__) && __FreeBSD_kernel__ */
119
120 /* __syscall(2) */
121 #if defined(__FreeBSD__)
diff --git a/net-proxy/torsocks/metadata.xml b/net-proxy/torsocks/metadata.xml
new file mode 100644
index 0000000..a68cbcd
--- /dev/null
+++ b/net-proxy/torsocks/metadata.xml
@@ -0,0 +1,12 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3<pkgmetadata>
4 <maintainer type="person">
5 <email>blueness@gentoo.org</email>
6 <name>Anthony G. Basile</name>
7 </maintainer>
8 <upstream>
9 <remote-id type="google-code">torsocks</remote-id>
10 <remote-id type="github">dgoulet/torsocks</remote-id>
11 </upstream>
12</pkgmetadata>
diff --git a/net-proxy/torsocks/torsocks-1.2-r2.ebuild b/net-proxy/torsocks/torsocks-1.2-r2.ebuild
new file mode 100644
index 0000000..e506014
--- /dev/null
+++ b/net-proxy/torsocks/torsocks-1.2-r2.ebuild
@@ -0,0 +1,41 @@
1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Id$
4
5EAPI="4"
6
7inherit autotools eutils multilib
8
9DESCRIPTION="Use most socks-friendly applications with Tor"
10HOMEPAGE="https://code.google.com/p/torsocks"
11SRC_URI="https://${PN}.googlecode.com/files/${PN}-1.2.tar.gz"
12
13LICENSE="GPL-2"
14SLOT="0"
15KEYWORDS="amd64 x86"
16IUSE="static-libs"
17
18# We do not depend on tor which might be running on a different box
19DEPEND=""
20RDEPEND="${DEPEND}"
21
22src_prepare() {
23 epatch "${FILESDIR}"/suppress-warning-msgs.patch
24 epatch "${FILESDIR}"/fix-docdir.patch
25 eautoreconf
26}
27
28src_configure() {
29 econf --docdir=/usr/share/doc/${PF} \
30 $(use_enable static-libs static)
31}
32
33src_install() {
34 emake DESTDIR="${D}" install
35
36 dodoc README TODO INSTALL ChangeLog
37
38 #Remove libtool .la files
39 cd "${D}"/usr/$(get_libdir)/torsocks
40 rm -f *.la
41}
diff --git a/net-proxy/torsocks/torsocks-2.1.0-r1.ebuild b/net-proxy/torsocks/torsocks-2.1.0-r1.ebuild
new file mode 100644
index 0000000..b389659
--- /dev/null
+++ b/net-proxy/torsocks/torsocks-2.1.0-r1.ebuild
@@ -0,0 +1,49 @@
1# Copyright 1999-2016 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Id$
4
5EAPI=6
6
7inherit autotools versionator
8
9MY_PV="$(replace_version_separator 3 -)"
10MY_PF="${PN}-${MY_PV}"
11S=${WORKDIR}/${MY_PF}
12
13DESCRIPTION="Use most socks-friendly applications with Tor"
14HOMEPAGE="https://github.com/dgoulet/torsocks"
15SRC_URI="https://github.com/dgoulet/torsocks/archive/v${MY_PV}.tar.gz -> ${MY_PF}.tar.gz"
16
17LICENSE="GPL-2"
18SLOT="0"
19KEYWORDS="~amd64 ~arm ~x86"
20IUSE="static-libs"
21
22# We do not depend on tor which might be running on a different box
23DEPEND=""
24RDEPEND="${DEPEND}"
25
26PATCHES=( "${FILESDIR}"/${P}-musl.patch )
27DOCS=( ChangeLog README.md TODO doc/notes/DEBUG doc/socks/{SOCKS5,socks-extensions.txt} )
28
29src_prepare() {
30 sed -i -e "/dist_doc_DATA/s/^/#/" Makefile.am doc/Makefile.am || die
31
32 # Disable tests requiring network access.
33 sed -i -e '/^\.\/test_dns$/d' tests/test_list || \
34 die "failed to disable network tests"
35
36 default
37 eautoreconf
38}
39
40src_configure() {
41 econf $(use_enable static-libs static)
42}
43
44src_install() {
45 default
46
47 # Remove libtool .la files
48 find "${D}" -name '*.la' -delete || die
49}
diff --git a/net-proxy/torsocks/torsocks-2.2.0.ebuild b/net-proxy/torsocks/torsocks-2.2.0.ebuild
new file mode 100644
index 0000000..1f850ec
--- /dev/null
+++ b/net-proxy/torsocks/torsocks-2.2.0.ebuild
@@ -0,0 +1,44 @@
1# Copyright 1999-2016 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Id$
4
5EAPI=6
6
7inherit autotools versionator
8
9MY_PV="$(replace_version_separator 3 -)"
10MY_PF="${PN}-${MY_PV}"
11S=${WORKDIR}/${MY_PF}
12
13DESCRIPTION="Use most socks-friendly applications with Tor"
14HOMEPAGE="https://github.com/dgoulet/torsocks"
15SRC_URI="https://github.com/dgoulet/torsocks/archive/v${MY_PV}.tar.gz -> ${MY_PF}.tar.gz"
16
17LICENSE="GPL-2"
18SLOT="0"
19KEYWORDS="~amd64 ~arm ~x86"
20IUSE="static-libs"
21
22# We do not depend on tor which might be running on a different box
23DEPEND=""
24RDEPEND="${DEPEND}"
25
26DOCS=( ChangeLog README.md doc/notes/DEBUG doc/socks/{SOCKS5,socks-extensions.txt} )
27
28src_prepare() {
29 sed -i -e "/dist_doc_DATA/s/^/#/" Makefile.am doc/Makefile.am || die
30
31 default
32 eautoreconf
33}
34
35src_configure() {
36 econf $(use_enable static-libs static)
37}
38
39src_install() {
40 default
41
42 # Remove libtool .la files
43 find "${D}" -name '*.la' -delete || die
44}