diff options
author | Benda Xu <heroxbd@gmail.com> | 2017-01-21 17:44:00 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gmail.com> | 2017-01-21 17:44:00 +0900 |
commit | 05f135815944247427fee72a3cbe36fce6388d87 (patch) | |
tree | 9a7adec700241c87ee251e5342cf7ea545447fea | |
parent | track. (diff) | |
download | android-05f135815944247427fee72a3cbe36fce6388d87.tar.gz android-05f135815944247427fee72a3cbe36fce6388d87.tar.bz2 android-05f135815944247427fee72a3cbe36fce6388d87.zip |
net-proxy/tsocks: merged.
-rw-r--r-- | net-proxy/tsocks/ChangeLog | 185 | ||||
-rw-r--r-- | net-proxy/tsocks/Manifest | 7 | ||||
-rw-r--r-- | net-proxy/tsocks/files/tsocks-1.8_beta5-bsd.patch | 22 | ||||
-rw-r--r-- | net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo-r3.patch | 133 | ||||
-rw-r--r-- | net-proxy/tsocks/metadata.xml | 13 | ||||
-rw-r--r-- | net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild | 60 |
6 files changed, 0 insertions, 420 deletions
diff --git a/net-proxy/tsocks/ChangeLog b/net-proxy/tsocks/ChangeLog deleted file mode 100644 index 0835909..0000000 --- a/net-proxy/tsocks/ChangeLog +++ /dev/null @@ -1,185 +0,0 @@ -# ChangeLog for net-proxy/tsocks -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v 1.36 2010/06/06 14:40:38 armin76 Exp $ - - 06 Jun 2010; Raúl Porcel <armin76@gentoo.org> tsocks-1.8_beta5-r5.ebuild: - arm stable wrt #300830 - - 17 Apr 2010; Raúl Porcel <armin76@gentoo.org> tsocks-1.8_beta5-r3.ebuild, - tsocks-1.8_beta5-r4.ebuild, tsocks-1.8_beta5-r5.ebuild: - Add ~arm wrt #300830 - - 19 Jul 2009; nixnut <nixnut@gentoo.org> tsocks-1.8_beta5-r5.ebuild: - ppc stable #274790 - - 06 Jul 2009; Raúl Porcel <armin76@gentoo.org> tsocks-1.8_beta5-r5.ebuild: - sparc stable wrt #274790 - - 04 Jul 2009; Brent Baude <ranger@gentoo.org> tsocks-1.8_beta5-r5.ebuild: - stable ppc64, bug 274790 - - 28 Jun 2009; Tobias Klausmann <klausman@gentoo.org> - tsocks-1.8_beta5-r5.ebuild: - Stable on alpha, bug #274790 - - 28 Jun 2009; Markus Meier <maekke@gentoo.org> tsocks-1.8_beta5-r5.ebuild: - amd64/x86 stable, bug #274790 - -*tsocks-1.8_beta5-r5 (20 Jun 2009) - - 20 Jun 2009; Alin Năstac <mrness@gentoo.org> - +files/tsocks-1.8_beta5-gentoo-r3.patch, +tsocks-1.8_beta5-r5.ebuild: - Link tsocks-saveme dinamically (#273339). Migrate to EAPI 2. - -*tsocks-1.8_beta5-r4 (18 Feb 2009) - - 18 Feb 2009; Alin Năstac <mrness@gentoo.org> - -files/tsocks-1.8_beta5-gentoo.patch, - +files/tsocks-1.8_beta5-gentoo-r2.patch, -tsocks-1.8_beta5-r2.ebuild, - +tsocks-1.8_beta5-r4.ebuild: - Fix LD_PRELOAD setup, thanks to Yuval Hager <yuval at avramzon dot net> - (#255960). - - 22 Aug 2008; Markus Meier <maekke@gentoo.org> metadata.xml, - tsocks-1.8_beta5-r3.ebuild: - amd64 stable, bug #231690; add GLEP 56 USE flag desc from use.local.desc - - 21 Jul 2008; nixnut <nixnut@gentoo.org> tsocks-1.8_beta5-r3.ebuild: - Stable on ppc wrt bug 231690 - - 17 Jul 2008; Markus Rothe <corsair@gentoo.org> tsocks-1.8_beta5-r3.ebuild: - Stable on ppc64; bug #231690 - - 17 Jul 2008; Raúl Porcel <armin76@gentoo.org> tsocks-1.8_beta5-r3.ebuild: - alpha/x86 stable wrt #231690 - - 16 Jul 2008; Friedrich Oslage <bluebird@gentoo.org> - tsocks-1.8_beta5-r3.ebuild: - Stable on sparc, bug #231690 - -*tsocks-1.8_beta5-r3 (13 Feb 2008) - - 13 Feb 2008; Alin Năstac <mrness@gentoo.org> - +files/tsocks-1.8_beta5-gentoo-r1.patch, +tsocks-1.8_beta5-r3.ebuild: - Link programs using user selected LDFLAGS (#209703). Fix library path in - tsocks script. - - 17 Jun 2007; Alin Năstac <mrness@gentoo.org> -tsocks-1.8_beta5.ebuild, - -tsocks-1.8_beta5-r1.ebuild: - Remove old revisions. - - 22 Apr 2007; Bryan Østergaard <kloeri@gentoo.org> - tsocks-1.8_beta5-r2.ebuild: - Stable on Alpha, bug 174160. - - 11 Apr 2007; Alin Năstac <mrness@gentoo.org> tsocks-1.8_beta5-r2.ebuild: - Stable on amd64. - - 01 Apr 2007; Michael Hanselmann <hansmi@gentoo.org> - tsocks-1.8_beta5-r2.ebuild: - Stable on ppc. - - 03 Dec 2006; Markus Rothe <corsair@gentoo.org> tsocks-1.8_beta5-r2.ebuild: - Stable on ppc64 - - 07 Nov 2006; Gustavo Zacarias <gustavoz@gentoo.org> - tsocks-1.8_beta5-r2.ebuild: - Stable on sparc - - 01 Nov 2006; Alin Nastac <mrness@gentoo.org> tsocks-1.8_beta5-r2.ebuild: - Add SONAME to libtsocks. Stable on x86. - - 20 Oct 2006; Gustavo Zacarias <gustavoz@gentoo.org> - tsocks-1.8_beta5-r1.ebuild: - Stable on sparc - - 29 Sep 2006; Markus Rothe <corsair@gentoo.org> tsocks-1.8_beta5-r1.ebuild: - Stable on ppc64 - - 24 Sep 2006; Michael Hanselmann <hansmi@gentoo.org> - tsocks-1.8_beta5-r1.ebuild: - Stable on ppc. - -*tsocks-1.8_beta5-r2 (22 Sep 2006) - - 22 Sep 2006; Alin Nastac <mrness@gentoo.org> - +files/tsocks-1.8_beta5-gentoo.patch, +tsocks-1.8_beta5-r2.ebuild: - Rename saveme and validateconf executables. Add tordns patch & local USE - flag (#148550). - - 20 Sep 2006; Alin Nastac <mrness@gentoo.org> tsocks-1.8_beta5-r1.ebuild: - Stable on x86. - -*tsocks-1.8_beta5-r1 (16 Jul 2006) - - 16 Jul 2006; Diego Pettenò <flameeyes@gentoo.org> - +files/tsocks-1.8_beta5-bsd.patch, +tsocks-1.8_beta5-r1.ebuild: - Add tsocks with a little cleanup and patch for BSD compatibility (bug #140612). - - 04 Oct 2005; Alin Nastac <mrness@gentoo.org> -tsocks-1.8_beta4.ebuild, - tsocks-1.8_beta5.ebuild: - Remove obsolete version. Remove INSTALL from docs. - - 13 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> - tsocks-1.8_beta5.ebuild: - Stable on ppc. - - 02 Aug 2005; Gustavo Zacarias <gustavoz@gentoo.org> - tsocks-1.8_beta5.ebuild: - Stable on sparc - - 30 Jul 2005; Alin Nastac <mrness@gentoo.org> tsocks-1.8_beta5.ebuild: - Stable on x86. - - 20 Jul 2005; Herbie Hopkins <herbs@gentoo.org> tsocks-1.8_beta5.ebuild: - Stable on amd64. - - 18 May 2005; Markus Rothe <corsair@gentoo.org> tsocks-1.8_beta5.ebuild: - Stable on ppc64 - - 22 Apr 2005; Alin Nastac <mrness@gentoo.org> +metadata.xml: - Move net-misc/tsocks to net-proxy/tsocks. Add metadata. - - 29 Mar 2005; Markus Rothe <corsair@gentoo.org> tsocks-1.8_beta5.ebuild: - Added ~ppc64 to KEYWORDS; bug #86993 - - 22 Feb 2005; Jeremy Huddleston <eradicator@gentoo.org> - tsocks-1.8_beta5.ebuild: - Multilib cleanup. - - 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> : - Change encoding to UTF-8 for GLEP 31 compliance - - 08 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> tsocks-1.8_beta5.ebuild: - Stable on alpha. - -*tsocks-1.8_beta5 (22 Feb 2004) - - 22 Feb 2004; Mike Frysinger <vapier@gentoo.org> : - Version bump #42394 by Scott Jones. - - 07 Dec 2003; David Holm <dholm@gentoo.org> tsocks-1.8_beta4.ebuild: - Added to ~ppc. - - 21 Aug 2003; Will Woods <wwoods@gentoo.org> tsocks-1.8_beta4.ebuild: - Added ~alpha to KEYWORDS - - 12 Jun 2003; <msterret@gentoo.org> tsocks-1.8_beta4.ebuild: - add Header - - 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords - -*tsocks-1.8_beta4 (10 Jun 2002) - - 11 Jul 2002; lamer <lamer@gentoo.org> tsocks-1.8beta4.ebuild : - Added "dobin validateconf saveme inspectsocks" to src_install - - 09 Jul 2002; phoen][x <phoenix@gentoo.org> tsocks-1.8beta4.ebuild : - Added KEYWORDS, SLOT. - - 10 Jun 2002; Ben Lutgens <lamer@gentoo.org> tsocks-1.8_beta4: Ebuild for - tsocks submitted to bugs.gentoo.org by a gentoo user *THANKS* - bardur-gta@odense.kollegienet.dk. It should be noted that as per the - install docs, this stuff gets installed to /lib. Mainly due to the fact - that it's often needed before /usr gets mounted. So the old - /etc/ld.so.preload trick won't work! diff --git a/net-proxy/tsocks/Manifest b/net-proxy/tsocks/Manifest deleted file mode 100644 index 5b42cd4..0000000 --- a/net-proxy/tsocks/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -AUX tsocks-1.8_beta5-bsd.patch 932 RMD160 d17f6927c4e18b25505139a9893c59afc39775aa SHA1 98b77ce698a8a9ad072f1c7275a3aeb8e2177f86 SHA256 c49851ca7581684788945f0c5cca17536459975b966b65bccb4f0588fc85a42d -AUX tsocks-1.8_beta5-gentoo-r3.patch 5866 RMD160 2dffa4d10f82a2fd9adacebf987064d24f23aa42 SHA1 35ac9f759102cc7089b7b83757e2942e4d2d3c4a SHA256 5bc4ec52f9d473e50948a5136fd657a26906603e97f779786b76244f026d73ca -DIST tsocks-1.8b5-tordns1-gentoo-r1.patch.gz 20060 RMD160 5c77013987262331c9285e9d53738f9f7a3ecf45 SHA1 df0474aedd7ae9639053ec11968b10a68b4f82ed SHA256 d49f0eede6cf59a2e911ddf3ec14e880626369e94037c9ad853cf530ce5971dd -DIST tsocks-1.8beta5.tar.gz 83928 RMD160 12e3eeeafaf7f3be21dd8901da38d5890659b09e SHA1 489f88c5df999ba21b27cdaa7836d9426d062aec SHA256 849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347 -EBUILD tsocks-1.8_beta5-r5.ebuild 1832 RMD160 d00457395adf5b52806487ab3846ee1ada51c8fd SHA1 09faed4d5544bbcf5c03ca8b8a4ac76a2cfd847c SHA256 10af15f4b10069842baf08c7c5cb56e225d8652e60d4e6aaa46e1d0439f17b98 -MISC ChangeLog 6304 RMD160 f7fd57a56b7e13a551b38b2741a8343677a4b7f9 SHA1 c3a160953e630155a57910c34f9aa263f5049b72 SHA256 abbecfa1bec9353cbe24bce0d91bdca34f07cbf417959326b2f68c755dd9674f -MISC metadata.xml 593 RMD160 31a381655437e3f21b9d4bd0982356eac43b79bf SHA1 8bd4c29f69a1ca1456fbb99523e46356eca2454c SHA256 08fa435f16b6ec09e7cfb979843b309354230db8986894227436699eb588a2d0 diff --git a/net-proxy/tsocks/files/tsocks-1.8_beta5-bsd.patch b/net-proxy/tsocks/files/tsocks-1.8_beta5-bsd.patch deleted file mode 100644 index e003475..0000000 --- a/net-proxy/tsocks/files/tsocks-1.8_beta5-bsd.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: tsocks-1.8/configure.in -=================================================================== ---- tsocks-1.8.orig/configure.in -+++ tsocks-1.8/configure.in -@@ -122,7 +122,7 @@ LIBS= - - dnl Checks for libraries. - dnl Replace `main' with a function in -ldl: --AC_CHECK_LIB(dl, dlsym,,AC_MSG_ERROR("libdl is required")) -+AC_CHECK_FUNC([dlsym], [], [AC_CHECK_LIB(dl, dlsym,,AC_MSG_ERROR("libdl is required"))]) - - dnl If we're using gcc here define _GNU_SOURCE - AC_MSG_CHECKING("for RTLD_NEXT from dlfcn.h") -@@ -312,7 +312,7 @@ AC_DEFINE_UNQUOTED(CLOSE_SIGNATURE, [${P - dnl Find the correct poll prototype on this machine - AC_MSG_CHECKING(for correct poll prototype) - PROTO= --for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' -+for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' 'struct pollfd ufds[[]], nfds_t nfds, int timeout' - do - if test "${PROTO}" = ""; then - AC_TRY_COMPILE([ diff --git a/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo-r3.patch b/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo-r3.patch deleted file mode 100644 index 1c9dd18..0000000 --- a/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo-r3.patch +++ /dev/null @@ -1,133 +0,0 @@ -diff -Nru tsocks-1.8.orig/Makefile.in tsocks-1.8/Makefile.in ---- tsocks-1.8.orig/Makefile.in 2002-03-16 11:12:40.000000000 +0100 -+++ tsocks-1.8/Makefile.in 2009-06-20 13:56:56.000000000 +0200 -@@ -28,6 +28,7 @@ - INSTALL = @INSTALL@ - INSTALL_DATA = @INSTALL_DATA@ - CFLAGS = @CFLAGS@ -+LDFLAGS = @LDFLAGS@ - INCLUDES = -I. - LIBS = @LIBS@ - SPECIALLIBS = @SPECIALLIBS@ -@@ -41,16 +42,16 @@ - all: ${TARGETS} - - ${VALIDATECONF}: ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o -- ${SHCC} ${CFLAGS} ${INCLUDES} -o ${VALIDATECONF} ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o ${LIBS} -+ ${SHCC} ${LDFLAGS} ${INCLUDES} -o ${VALIDATECONF} ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o ${LIBS} - - ${INSPECT}: ${INSPECT}.c ${COMMON}.o -- ${SHCC} ${CFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS} -+ ${SHCC} ${LDFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS} - - ${SAVE}: ${SAVE}.c -- ${SHCC} ${CFLAGS} ${INCLUDES} -static -o ${SAVE} ${SAVE}.c -+ ${SHCC} ${LDFLAGS} ${INCLUDES} -o ${SAVE} ${SAVE}.c - - ${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o -- ${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS} -+ ${SHCC} ${LDFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS} - ln -sf ${SHLIB} ${LIB_NAME}.so - - %.so: %.c -diff -Nru tsocks-1.8.orig/tsocks tsocks-1.8/tsocks ---- tsocks-1.8.orig/tsocks 2002-03-16 11:27:18.000000000 +0100 -+++ tsocks-1.8/tsocks 2009-06-20 13:56:38.000000000 +0200 -@@ -46,14 +46,14 @@ - on) - if [ -z "$LD_PRELOAD" ] - then -- export LD_PRELOAD="/usr/lib/libtsocks.so" -+ export LD_PRELOAD="/lib/libtsocks.so" - else -- echo $LD_PRELOAD | grep -q "/usr/lib/libtsocks\.so" || \ -- export LD_PRELOAD="/usr/lib/libtsocks.so $LD_PRELOAD" -+ echo $LD_PRELOAD | grep -q "/lib/libtsocks\.so" || \ -+ export LD_PRELOAD="/lib/libtsocks.so $LD_PRELOAD" - fi - ;; - off) -- export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib\/libtsocks.so \?//'` -+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/lib\/libtsocks.so \?//'` - if [ -z "$LD_PRELOAD" ] - then - unset LD_PRELOAD -@@ -68,10 +68,10 @@ - *) - if [ -z "$LD_PRELOAD" ] - then -- export LD_PRELOAD="/usr/lib/libtsocks.so" -+ export LD_PRELOAD="/lib/libtsocks.so" - else -- echo $LD_PRELOAD | grep -q "/usr/lib/libtsocks\.so" || \ -- export LD_PRELOAD="/usr/lib/libtsocks.so $LD_PRELOAD" -+ echo $LD_PRELOAD | grep -q "/lib/libtsocks\.so" || \ -+ export LD_PRELOAD="/lib/libtsocks.so $LD_PRELOAD" - fi - - if [ $# = 0 ] -diff -Nru tsocks-1.8.orig/tsocks.8 tsocks-1.8/tsocks.8 ---- tsocks-1.8.orig/tsocks.8 2002-03-16 11:20:51.000000000 +0100 -+++ tsocks-1.8/tsocks.8 2009-06-20 13:56:38.000000000 +0200 -@@ -127,8 +127,8 @@ - libtsocks in /etc/ld.so.preload. Please make sure you correctly enter the - full path to the library in this file if you do this. If you get it wrong, - you will be UNABLE TO DO ANYTHING with the machine and will have to boot --it with a rescue disk and remove the file (or try the saveme program, see --the INSTALL file for more info). THIS IS A ***WARNING***, please be -+it with a rescue disk and remove the file (or try the tsocks-saveme program, -+simply unlinks /etc/ld.so.preload ). THIS IS A ***WARNING***, please be - careful. Also be sure the library is in the root filesystem as all hell - will break loose if the directory it is in is not available at boot time. - -diff -Nru tsocks-1.8.orig/tsocks.conf.5 tsocks-1.8/tsocks.conf.5 ---- tsocks-1.8.orig/tsocks.conf.5 2002-05-18 04:13:08.000000000 +0200 -+++ tsocks-1.8/tsocks.conf.5 2009-06-20 13:56:38.000000000 +0200 -@@ -139,21 +139,20 @@ - the version that server supports. - - .TP --validateconf --validateconf can be used to verify the configuration file. It checks the format --of the file and also the contents for errors. Having read the file it dumps --the configuration to the screen in a formatted, readable manner. This can be --extremely useful in debugging problems. -- --validateconf can read a configuration file from a location other than the --location specified at compile time with the -f <filename> command line --option. -- --Normally validateconf simply dumps the configuration read to the screen (in --a nicely readable format), however it also has a useful 'test' mode. When --passed a hostname/ip on the command line like -t <hostname/ip>, validateconf --determines which of the SOCKS servers specified in the configuration file --would be used by tsocks to access the specified host. -+tsocks-validateconf -+tsocks-validateconf can be used to verify the configuration file. It checks -+the format of the file and also the contents for errors. Having read the file -+it dumps the configuration to the screen in a formatted, readable manner. -+This can be extremely useful in debugging problems. -+ -+tsocks-validateconf can read a configuration file from a location other than the -+location specified at compile time with the -f <filename> command line option. -+ -+Normally tsocks-validateconf simply dumps the configuration read to the screen -+(in a nicely readable format), however it also has a useful 'test' mode. When -+passed a hostname/ip on the command line like -t <hostname/ip>, -+tsocks-validateconf determines which of the SOCKS servers specified in the -+configuration file would be used by tsocks to access the specified host. - - .SH SEE ALSO - tsocks(8) -diff -Nru tsocks-1.8.orig/validateconf.c tsocks-1.8/validateconf.c ---- tsocks-1.8.orig/validateconf.c 2002-02-07 11:49:59.000000000 +0100 -+++ tsocks-1.8/validateconf.c 2009-06-20 13:56:38.000000000 +0200 -@@ -23,7 +23,7 @@ - */ - - /* Global configuration variables */ --char *progname = "validateconf"; /* Name for error msgs */ -+char *progname = "tsocks-validateconf"; /* Name for error msgs */ - - /* Header Files */ - #include <config.h> diff --git a/net-proxy/tsocks/metadata.xml b/net-proxy/tsocks/metadata.xml deleted file mode 100644 index f70a637..0000000 --- a/net-proxy/tsocks/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>net-proxy</herd> -<longdescription>tsocks' role is to allow non SOCKS aware applications (e.g telnet, ssh, ftp etc) to use SOCKS -without any modification. It does this by intercepting the calls that applications make to establish network connections -and negotating them through a SOCKS server as necessary.</longdescription> -<use> - <flag name='tordns'> - Apply tordns patch which allows transparent TORification of the DNS queries - </flag> -</use> -</pkgmetadata> diff --git a/net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild b/net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild deleted file mode 100644 index c8f5a2c..0000000 --- a/net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild,v 1.8 2010/06/06 14:40:38 armin76 Exp $ - -EAPI="2" - -inherit multilib eutils autotools toolchain-funcs - -DESCRIPTION="Transparent SOCKS v4 proxying library" -HOMEPAGE="http://tsocks.sourceforge.net/" -SRC_URI="mirror://sourceforge/tsocks/${PN}-${PV/_}.tar.gz - tordns? ( mirror://gentoo/${PN}-${PV/_beta/b}-tordns1-gentoo-r1.patch.gz )" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86-linux" -IUSE="tordns" - -S="${WORKDIR}/${P%%_*}" - -src_prepare() { - epatch "${FILESDIR}/${P}-gentoo-r3.patch" - epatch "${FILESDIR}/${P}-bsd.patch" - use tordns && epatch "../${PN}-${PV/_beta/b}-tordns1-gentoo-r1.patch" - eautoreconf -} - -src_configure() { - tc-export CC - - # NOTE: the docs say to install it into /lib. If you put it into - # /usr/lib and add it to /etc/ld.so.preload on many systems /usr isn't - # mounted in time :-( (Ben Lutgens) <lamer@gentoo.org> - econf \ - --with-conf=${EROOT}/etc/socks/tsocks.conf \ - --libdir=${EROOT}/$(get_libdir) || die "configure failed" -} - -src_compile() { - # Fix QA notice lack of SONAME - emake DYNLIB_FLAGS=-Wl,--soname,libtsocks.so.${PV/_beta*} || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - newbin validateconf tsocks-validateconf - newbin saveme tsocks-saveme - dobin inspectsocks - insinto ${ER}/etc/socks - doins tsocks.conf.*.example - dodoc FAQ - use tordns && dodoc README* -} - -pkg_postinst() { - einfo "Make sure you create ${ER}/etc/socks/tsocks.conf from one of the examples in that directory" - einfo "The following executables have been renamed:" - einfo " ${ER}/usr/bin/saveme renamed to tsocks-saveme" - einfo " ${ER}/usr/bin/validateconf renamed to tsocks-validateconf" -} |