diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-09-22 12:25:03 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-09-22 12:25:03 +0000 |
commit | 166b63121c419a903ca567051ba8242878746b52 (patch) | |
tree | 583f9b05230b6db994a354b4d7d4cc06066ea86a /net-proxy/tsocks | |
parent | add net-proxy/tsocks:tordns (diff) | |
download | gentoo-2-166b63121c419a903ca567051ba8242878746b52.tar.gz gentoo-2-166b63121c419a903ca567051ba8242878746b52.tar.bz2 gentoo-2-166b63121c419a903ca567051ba8242878746b52.zip |
Rename saveme and validateconf executables. Add tordns patch & local USE flag (#148550).
(Portage version: 2.1.1)
Diffstat (limited to 'net-proxy/tsocks')
-rw-r--r-- | net-proxy/tsocks/ChangeLog | 9 | ||||
-rw-r--r-- | net-proxy/tsocks/files/digest-tsocks-1.8_beta5-r2 | 6 | ||||
-rw-r--r-- | net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo.patch | 65 | ||||
-rw-r--r-- | net-proxy/tsocks/tsocks-1.8_beta5-r2.ebuild | 60 |
4 files changed, 139 insertions, 1 deletions
diff --git a/net-proxy/tsocks/ChangeLog b/net-proxy/tsocks/ChangeLog index 4f9af2a33152..f209423c0097 100644 --- a/net-proxy/tsocks/ChangeLog +++ b/net-proxy/tsocks/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-proxy/tsocks # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v 1.10 2006/09/20 18:18:39 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v 1.11 2006/09/22 12:25:03 mrness Exp $ + +*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. diff --git a/net-proxy/tsocks/files/digest-tsocks-1.8_beta5-r2 b/net-proxy/tsocks/files/digest-tsocks-1.8_beta5-r2 new file mode 100644 index 000000000000..23ace769555a --- /dev/null +++ b/net-proxy/tsocks/files/digest-tsocks-1.8_beta5-r2 @@ -0,0 +1,6 @@ +MD5 0fad226bf82cf0074babb153c25a8e0f tsocks-1.8b5-tordns1-gentoo.patch.gz 21543 +RMD160 cb584dfcc0fc0fdf382a641689a9ddf25dc184fc tsocks-1.8b5-tordns1-gentoo.patch.gz 21543 +SHA256 7b222a5edb1d68c0046e9f1e8bef06a4508fe1bec35f846f97f4af51db67b916 tsocks-1.8b5-tordns1-gentoo.patch.gz 21543 +MD5 51caefd77e5d440d0bbd6443db4fc0f8 tsocks-1.8beta5.tar.gz 83928 +RMD160 12e3eeeafaf7f3be21dd8901da38d5890659b09e tsocks-1.8beta5.tar.gz 83928 +SHA256 849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347 tsocks-1.8beta5.tar.gz 83928 diff --git a/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo.patch b/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo.patch new file mode 100644 index 000000000000..aee2d06fdb75 --- /dev/null +++ b/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo.patch @@ -0,0 +1,65 @@ +diff -Nru tsocks-1.8.orig/tsocks.8 tsocks-1.8/tsocks.8 +--- tsocks-1.8.orig/tsocks.8 2002-03-16 12:20:51.000000000 +0200 ++++ tsocks-1.8/tsocks.8 2006-09-22 15:01:13.005417500 +0300 +@@ -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 05:13:08.000000000 +0300 ++++ tsocks-1.8/tsocks.conf.5 2006-09-22 15:03:49.063170500 +0300 +@@ -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 12:49:59.000000000 +0200 ++++ tsocks-1.8/validateconf.c 2006-09-22 15:04:10.368502000 +0300 +@@ -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/tsocks-1.8_beta5-r2.ebuild b/net-proxy/tsocks/tsocks-1.8_beta5-r2.ebuild new file mode 100644 index 000000000000..b36252f8e877 --- /dev/null +++ b/net-proxy/tsocks/tsocks-1.8_beta5-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2006 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-r2.ebuild,v 1.1 2006/09/22 12:25:03 mrness Exp $ + +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.patch.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="tordns" + +S="${WORKDIR}/${P%%_*}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-gentoo.patch" + epatch "${FILESDIR}/${P}-bsd.patch" + use tordns && epatch "../${PN}-${PV/_beta/b}-tordns1-gentoo.patch" + eautoconf +} + +src_compile() { + 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=/etc/socks/tsocks.conf \ + --libdir=/$(get_libdir) || die "configure failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + newbin validateconf tsocks-validateconf + newbin saveme tsocks-saveme + dobin inspectsocks + insinto /etc/socks + doins tsocks.conf.*.example + dodoc FAQ + use tordns && dodoc README* + # tsocks script is buggy so we need this symlink + dodir /usr/$(get_libdir) + dosym /$(get_libdir)/libtsocks.so /usr/$(get_libdir)/libtsocks.so +} + +pkg_postinst() { + einfo "Make sure you create /etc/socks/tsocks.conf from one of the examples in that directory" + einfo "The following executables have been renamed:" + einfo " /usr/bin/saveme renamed to tsocks-saveme" + einfo " /usr/bin/validateconf renamed to tsocks-validateconf" +} |