diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-proxy/torsocks | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-proxy/torsocks')
-rw-r--r-- | net-proxy/torsocks/Manifest | 2 | ||||
-rw-r--r-- | net-proxy/torsocks/files/avoid-pie-static.patch | 67 | ||||
-rw-r--r-- | net-proxy/torsocks/files/fix-docdir-r2.patch | 21 | ||||
-rw-r--r-- | net-proxy/torsocks/files/fix-docdir.patch | 24 | ||||
-rw-r--r-- | net-proxy/torsocks/files/fix-find-libc.so.patch | 12 | ||||
-rw-r--r-- | net-proxy/torsocks/files/suppress-warning-msgs.patch | 15 | ||||
-rw-r--r-- | net-proxy/torsocks/metadata.xml | 12 | ||||
-rw-r--r-- | net-proxy/torsocks/torsocks-1.2-r2.ebuild | 41 | ||||
-rw-r--r-- | net-proxy/torsocks/torsocks-1.2.ebuild | 32 | ||||
-rw-r--r-- | net-proxy/torsocks/torsocks-2.0.0-r1.ebuild | 51 |
10 files changed, 277 insertions, 0 deletions
diff --git a/net-proxy/torsocks/Manifest b/net-proxy/torsocks/Manifest new file mode 100644 index 000000000000..2d5c11425c2c --- /dev/null +++ b/net-proxy/torsocks/Manifest @@ -0,0 +1,2 @@ +DIST torsocks-1.2.tar.gz 456453 SHA256 bea57d3624d723724fd1e260f0e6b2a354c0da742c023aa994c7692270d111d4 SHA512 c48cf466c1d4f6204c90ccb5f741d14304b24651d18d080a73952b9a06bbe146e3f6e6c4343ed06ed7a73714d86561cde3eba369e17fc4e155f3553a8d0f3890 WHIRLPOOL af892c2a6f8070308f6867154c50ee8ce6fd20c761dbd6466ea1ae3b46730452ce0757e9de8bf698f8bd455649f3f76a4e9a0bd883408f464c619c1d41e937cf +DIST torsocks-2.0.0.tar.gz 96281 SHA256 a01f9e5ccc8a6e1d4e13704581ec9675129c147d10d08f86635f7bceb8001f48 SHA512 fa30244a5a06c6371a86090088b3abe9f4513eefce90580e7c7899843887b8a1eac641500dee81e576f27fa0f1b447b34f7b8300a889bcda2119779deb69d77d WHIRLPOOL 41ea31225866c50153dd0d46bc0659311835c5617f42a3c8275d5046cc0019fc4caa0ab9ef06d1b3552c1f082cb01a2036fc14c61a061378d01f988ff586a9c5 diff --git a/net-proxy/torsocks/files/avoid-pie-static.patch b/net-proxy/torsocks/files/avoid-pie-static.patch new file mode 100644 index 000000000000..75565569b6e9 --- /dev/null +++ b/net-proxy/torsocks/files/avoid-pie-static.patch @@ -0,0 +1,67 @@ +We need to avoid tests which have -static and -pie together. + +See https://bugs.gentoo.org/show_bug.cgi?id=533862 + +diff -Naur torsocks-2.0.0.orig/configure.ac torsocks-2.0.0/configure.ac +--- torsocks-2.0.0.orig/configure.ac 2014-08-11 12:44:46.000000000 -0400 ++++ torsocks-2.0.0/configure.ac 2015-01-11 12:00:21.174826622 -0500 +@@ -144,24 +144,6 @@ + # Version information for libtorsocks + TORSOCKSLDFLAGS="$LDFLAGS -version-info 1:0:0" + +-# Check for the gcc hardening flags. +-AX_CHECK_COMPILE_FLAG([-fPIE],[CFLAGS="$CFLAGS -fPIE"],[],[]) +-AX_CHECK_COMPILE_FLAG([-fwrapv],[CFLAGS="$CFLAGS -fwrapv"],[],[]) +-AX_CHECK_COMPILE_FLAG([--param ssp-buffer-size=1], +- [CFLAGS="$CFLAGS --param ssp-buffer-size=1"],[],[]) +-AX_CHECK_COMPILE_FLAG([-fstack-protector-all], +- [CFLAGS="$CFLAGS -fstack-protector-all"],[],[] +-) +-AX_CHECK_COMPILE_FLAG([-fno-strict-overflow], +- [CFLAGS="$CFLAGS -fno-strict-overflow"],[],[] +-) +- +-dnl Add hardening linker flags +-AX_CHECK_LINK_FLAG([-pie],[LDFLAGS="$LDFLAGS -pie"],[],[]) +-AX_CHECK_LINK_FLAG([-z relro],[LDFLAGS="$LDFLAGS -z relro"],[],[]) +-AX_CHECK_LINK_FLAG([-z now],[LDFLAGS="$LDFLAGS -z now"],[],[]) +-LDFLAGS="$LDFLAGS -D_FORTIFY_SOURCE=2" +- + dnl Linker checks for Mac OSX, which uses DYLD_INSERT_LIBRARIES + dnl instead of LD_PRELOAD + case "$host_os" in +@@ -255,6 +237,34 @@ + DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir) -I\$(top_builddir)/src -I\$(top_builddir)/include -include config.h" + AC_SUBST(DEFAULT_INCLUDES) + ++############################################################################## ++# 9. Test and add hardening flags ++############################################################################## ++ ++# Check for the gcc hardening flags. ++AX_CHECK_COMPILE_FLAG([-fPIE],[CFLAGS="$CFLAGS -fPIE"],[],[]) ++AX_CHECK_COMPILE_FLAG([-fwrapv],[CFLAGS="$CFLAGS -fwrapv"],[],[]) ++AX_CHECK_COMPILE_FLAG([--param ssp-buffer-size=1], ++ [CFLAGS="$CFLAGS --param ssp-buffer-size=1"],[],[]) ++AX_CHECK_COMPILE_FLAG([-fstack-protector-all], ++ [CFLAGS="$CFLAGS -fstack-protector-all"],[],[] ++) ++AX_CHECK_COMPILE_FLAG([-fno-strict-overflow], ++ [CFLAGS="$CFLAGS -fno-strict-overflow"],[],[] ++) ++ ++dnl Add hardening linker flags ++AX_CHECK_LINK_FLAG([-pie],[LDFLAGS="$LDFLAGS -pie"],[],[]) ++AX_CHECK_LINK_FLAG([-z relro],[LDFLAGS="$LDFLAGS -z relro"],[],[]) ++AX_CHECK_LINK_FLAG([-z now],[LDFLAGS="$LDFLAGS -z now"],[],[]) ++ ++dnl Add glibc hardening ++CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" ++ ++############################################################################## ++# 10. Finish up ++############################################################################## ++ + AC_CONFIG_FILES([ + Makefile + extras/Makefile diff --git a/net-proxy/torsocks/files/fix-docdir-r2.patch b/net-proxy/torsocks/files/fix-docdir-r2.patch new file mode 100644 index 000000000000..05986ece2d0f --- /dev/null +++ b/net-proxy/torsocks/files/fix-docdir-r2.patch @@ -0,0 +1,21 @@ +diff -Naur torsocks-2.0.0-rc2.orig/doc/Makefile.am torsocks-2.0.0-rc2/doc/Makefile.am +--- torsocks-2.0.0-rc2.orig/doc/Makefile.am 2013-09-02 14:06:44.000000000 -0400 ++++ torsocks-2.0.0-rc2/doc/Makefile.am 2013-09-17 14:19:37.769272561 -0400 +@@ -6,5 +6,5 @@ + dist_man5_MANS = torsocks.conf.5 + dist_man8_MANS = torsocks.8 + +-dist_data_DATA = socks/SOCKS5 socks/socks-extensions.txt notes/DEBUG ++#dist_data_DATA = socks/SOCKS5 socks/socks-extensions.txt notes/DEBUG + +diff -Naur torsocks-2.0.0-rc2.orig/Makefile.am torsocks-2.0.0-rc2/Makefile.am +--- torsocks-2.0.0-rc2.orig/Makefile.am 2013-09-02 14:06:44.000000000 -0400 ++++ torsocks-2.0.0-rc2/Makefile.am 2013-09-17 14:20:07.945273935 -0400 +@@ -2,6 +2,6 @@ + + SUBDIRS = src doc tests + +-dist_doc_DATA = ChangeLog ++#dist_doc_DATA = ChangeLog + + EXTRA_DIST = gpl-2.0.txt diff --git a/net-proxy/torsocks/files/fix-docdir.patch b/net-proxy/torsocks/files/fix-docdir.patch new file mode 100644 index 000000000000..899c15b16721 --- /dev/null +++ b/net-proxy/torsocks/files/fix-docdir.patch @@ -0,0 +1,24 @@ +diff -Naur torsocks-1.2.orig/doc/Makefile.am torsocks-1.2/doc/Makefile.am +--- torsocks-1.2.orig/doc/Makefile.am 2011-10-26 14:30:26.000000000 -0400 ++++ torsocks-1.2/doc/Makefile.am 2011-12-26 20:05:40.000000000 -0500 +@@ -7,8 +7,6 @@ + # Install man pages + dist_man_MANS = torsocks.1 torsocks.8 usewithtor.1 torsocks.conf.5 + +-dist_data_DATA = socks/SOCKS5 socks/SOCKS4.protocol socks/socks-extensions.txt \ +- patches/compilewarnings.patch patches/conffile.patch patches/getaddrbyhost.patch \ +- patches/getpeername.patch patches/infiniteloop.patch patches/localaddresses.patch \ +- patches/README patches/README.TORDNS patches/tordns.patch notes/DEBUG ++dist_doc_DATA = socks/SOCKS5 socks/SOCKS4.protocol socks/socks-extensions.txt \ ++ notes/DEBUG + +diff -Naur torsocks-1.2.orig/test/Makefile.am torsocks-1.2/test/Makefile.am +--- torsocks-1.2.orig/test/Makefile.am 2011-10-26 14:21:57.000000000 -0400 ++++ torsocks-1.2/test/Makefile.am 2011-12-26 20:04:34.000000000 -0500 +@@ -4,4 +4,4 @@ + test_torsocks_LDFLAGS= $(TESTLDFLAGS) + CLEANFILES= test_torsocks + +-dist_data_DATA = run_tests.sh expectedresults.txt +\ No newline at end of file ++dist_doc_DATA = run_tests.sh expectedresults.txt diff --git a/net-proxy/torsocks/files/fix-find-libc.so.patch b/net-proxy/torsocks/files/fix-find-libc.so.patch new file mode 100644 index 000000000000..0fb1949116e1 --- /dev/null +++ b/net-proxy/torsocks/files/fix-find-libc.so.patch @@ -0,0 +1,12 @@ +diff -Nuar torsocks-2.0.0-rc3.orig/configure.ac torsocks-2.0.0-rc3/configure.ac +--- torsocks-2.0.0-rc3.orig/configure.ac 2013-11-03 13:24:51.000000000 -0500 ++++ torsocks-2.0.0-rc3/configure.ac 2014-01-26 12:49:55.157606016 -0500 +@@ -132,7 +132,7 @@ + dnl Get libc full system path. Use prefix or some hardcoded standard + dnl location on Unixish system. + AC_MSG_CHECKING(location of libc.so) +-for DIR in "$prefix/lib" "$prefix/usr/lib" '/lib' '/usr/lib'; do ++for DIR in "$prefix/lib*" "$prefix/usr/lib*" '/lib*' '/usr/lib*'; do + if test "${LIBC_PATH}" = ""; then + LIBC_PATH=`$FIND $DIR -name "libc.so.?" 2>/dev/null | $TAIL -1` + fi 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 000000000000..7470b9fa7f4b --- /dev/null +++ b/net-proxy/torsocks/files/suppress-warning-msgs.patch @@ -0,0 +1,15 @@ +--- torsocks-1.2.orig/src/torsocks.c 2011-10-25 17:49:50.000000000 -0400 ++++ torsocks-1.2/src/torsocks.c 2012-02-21 11:09:20.000000000 -0500 +@@ -124,9 +124,9 @@ + #define LOAD_ERROR(s,l) { \ + const char *error; \ + error = dlerror(); \ +- show_msg(l, "The symbol %s() was not found in any shared " \ +- "library. The error reported was: %s!\n", s, \ +- (error)?error:"not found"); \ ++ if (error) \ ++ show_msg(l, "The symbol %s() was not found in any shared " \ ++ "library. The error reported was: %s!\n", s, error); \ + dlerror(); \ + } + pthread_mutex_lock(&torsocks_init_mutex); diff --git a/net-proxy/torsocks/metadata.xml b/net-proxy/torsocks/metadata.xml new file mode 100644 index 000000000000..0cc1d997959b --- /dev/null +++ b/net-proxy/torsocks/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <upstream> + <remote-id type="google-code">torsocks</remote-id> + <remote-id type="github">dgoulet/torsocks</remote-id> + </upstream> +</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 000000000000..9540b8e18cf3 --- /dev/null +++ b/net-proxy/torsocks/torsocks-1.2-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit autotools eutils multilib + +DESCRIPTION="Use most socks-friendly applications with Tor" +HOMEPAGE="http://code.google.com/p/torsocks" +SRC_URI="http://${PN}.googlecode.com/files/${PN}-1.2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="static-libs" + +# We do not depend on tor which might be running on a different box +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/suppress-warning-msgs.patch + epatch "${FILESDIR}"/fix-docdir.patch + eautoreconf +} + +src_configure() { + econf --docdir=/usr/share/doc/${PF} \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc README TODO INSTALL ChangeLog + + #Remove libtool .la files + cd "${D}"/usr/$(get_libdir)/torsocks + rm -f *.la +} diff --git a/net-proxy/torsocks/torsocks-1.2.ebuild b/net-proxy/torsocks/torsocks-1.2.ebuild new file mode 100644 index 000000000000..3558eca822bf --- /dev/null +++ b/net-proxy/torsocks/torsocks-1.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit multilib + +DESCRIPTION="Use most socks-friendly applications with Tor" +HOMEPAGE="http://code.google.com/p/torsocks" +SRC_URI="http://${PN}.googlecode.com/files/${PN}-1.2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="static-libs" + +# We do not depend on tor which might be running on a different box +DEPEND="" +RDEPEND="${DEPEND}" + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install + + #Remove libtool .la files + cd "${D}"/usr/$(get_libdir)/torsocks + rm -f *.la +} diff --git a/net-proxy/torsocks/torsocks-2.0.0-r1.ebuild b/net-proxy/torsocks/torsocks-2.0.0-r1.ebuild new file mode 100644 index 000000000000..fd649a2a70de --- /dev/null +++ b/net-proxy/torsocks/torsocks-2.0.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils multilib 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="http://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}" + +src_prepare() { + sed -i -e "/dist_doc_DATA/s/^/#/" Makefile.am doc/Makefile.am || die + + # Disable tests requiring network access. + sed -i -e '/^\.\/test_dns$/d' tests/test_list || \ + die "failed to disable network tests" + + # Bug #533862 + epatch "${FILESDIR}"/avoid-pie-static.patch + + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + + dodoc ChangeLog README.md TODO doc/notes/DEBUG doc/socks/{SOCKS5,socks-extensions.txt} + + #Remove libtool .la files + cd "${D}"/usr/$(get_libdir)/torsocks + rm -f *.la +} |