parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 58e10a403bea6cff975a697af51e63a11894457a
parent f8bd6812303873bd215b448ffbe432d6b7f3d344
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 12 Nov 2016 23:40:33 +0100

net-proxy/torsocks: Add 2.2.0

Diffstat:
Anet-proxy/torsocks/Manifest | 1+
Dnet-proxy/torsocks/files/musl-fix.patch | 44--------------------------------------------
Anet-proxy/torsocks/torsocks-2.2.0.ebuild | 44++++++++++++++++++++++++++++++++++++++++++++
Mnet-proxy/torsocks/torsocks-9999.ebuild | 2+-
4 files changed, 46 insertions(+), 45 deletions(-)

diff --git a/net-proxy/torsocks/Manifest b/net-proxy/torsocks/Manifest @@ -0,0 +1 @@ +DIST torsocks-2.2.0.tar.gz 115269 SHA256 36216a1e30f47fa0e5be84761e0d72133196c8a042716017da56e9439338c87d SHA512 903d11d58ece76eaf75ff8fc11a27e4a29f94be530f2d77d1a6f0982d556a4b9c78677a43eed88f2451054d0e985672900ecf73b360fa09e80195c3b9006622b WHIRLPOOL 3ce3ec9807a9b0bb55572f71541b0ba918223e3037914ed070cd97927446bd0b8666a70b568ebd5d7a5d310cd3c6fd4103f1ae8e616cc35e8a6a92d4a6b9051e diff --git a/net-proxy/torsocks/files/musl-fix.patch b/net-proxy/torsocks/files/musl-fix.patch @@ -1,44 +0,0 @@ -diff --git a/src/lib/syscall.c b/src/lib/syscall.c -index 9495a64..95525e2 100644 ---- a/src/lib/syscall.c -+++ b/src/lib/syscall.c -@@ -15,13 +15,14 @@ - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -+#include "torsocks.h" -+ - #include <assert.h> - #include <stdarg.h> - #include <sys/mman.h> - - #include <common/log.h> - --#include "torsocks.h" - - /* syscall(2) */ - TSOCKS_LIBC_DECL(syscall, LIBC_SYSCALL_RET_TYPE, LIBC_SYSCALL_SIG) -diff --git a/src/lib/torsocks.h b/src/lib/torsocks.h -index bcaf92b..490fce4 100644 ---- a/src/lib/torsocks.h -+++ b/src/lib/torsocks.h -@@ -20,6 +20,10 @@ - #ifndef TORSOCKS_H - #define TORSOCKS_H - -+#if (defined(__linux__)) -+#define _GNU_SOURCE 1 -+#endif -+ - #include <common/compat.h> - #include <common/config-file.h> - -@@ -233,7 +237,7 @@ struct hostent **result, int *h_errnop - - #if (defined(__linux__)) - --#define _GNU_SOURCE -+/* #define _GNU_SOURCE */ - - /* syscall(2) */ - #define LIBC_SYSCALL_NAME syscall diff --git a/net-proxy/torsocks/torsocks-2.2.0.ebuild b/net-proxy/torsocks/torsocks-2.2.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools versionator + +MY_PV="$(replace_version_separator 3 -)" +MY_PF="${PN}-${MY_PV}" +S=${WORKDIR}/${MY_PF} + +DESCRIPTION="Use most socks-friendly applications with Tor" +HOMEPAGE="https://github.com/dgoulet/torsocks" +SRC_URI="https://github.com/dgoulet/torsocks/archive/v${MY_PV}.tar.gz -> ${MY_PF}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="static-libs" + +# We do not depend on tor which might be running on a different box +DEPEND="" +RDEPEND="${DEPEND}" + +DOCS=( ChangeLog README.md doc/notes/DEBUG doc/socks/{SOCKS5,socks-extensions.txt} ) + +src_prepare() { + sed -i -e "/dist_doc_DATA/s/^/#/" Makefile.am doc/Makefile.am || die + + default + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + + # Remove libtool .la files + find "${D}" -name '*.la' -delete || die +} diff --git a/net-proxy/torsocks/torsocks-9999.ebuild b/net-proxy/torsocks/torsocks-9999.ebuild @@ -16,7 +16,7 @@ EGIT_REPO_URI="https://git.torproject.org/torsocks.git" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" +KEYWORDS="" IUSE="static-libs" # We do not depend on tor which might be running on a different box