diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-07-16 17:51:21 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-07-16 17:51:21 +0000 |
commit | a044c7e62c7e0a30870e6ead0ac56b9334261374 (patch) | |
tree | 720815aa1ad230059cb8b25ee251ea33bfb677e6 /net-proxy | |
parent | ppc stable, bug #115045 (diff) | |
download | historical-a044c7e62c7e0a30870e6ead0ac56b9334261374.tar.gz historical-a044c7e62c7e0a30870e6ead0ac56b9334261374.tar.bz2 historical-a044c7e62c7e0a30870e6ead0ac56b9334261374.zip |
Add tsocks with a little cleanup and patch for BSD compatibility (bug #140612).
Package-Manager: portage-2.1.1_pre3
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/tsocks/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/tsocks/Manifest | 37 | ||||
-rw-r--r-- | net-proxy/tsocks/files/digest-tsocks-1.8_beta5 | 2 | ||||
-rw-r--r-- | net-proxy/tsocks/files/digest-tsocks-1.8_beta5-r1 | 3 | ||||
-rw-r--r-- | net-proxy/tsocks/files/tsocks-1.8_beta5-bsd.patch | 22 | ||||
-rw-r--r-- | net-proxy/tsocks/tsocks-1.8_beta5-r1.ebuild | 51 |
6 files changed, 116 insertions, 9 deletions
diff --git a/net-proxy/tsocks/ChangeLog b/net-proxy/tsocks/ChangeLog index ff46ce74e39d..e485c8f21436 100644 --- a/net-proxy/tsocks/ChangeLog +++ b/net-proxy/tsocks/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/tsocks -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v 1.8 2005/10/04 21:29:51 mrness Exp $ +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v 1.9 2006/07/16 17:51:21 flameeyes Exp $ + +*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: diff --git a/net-proxy/tsocks/Manifest b/net-proxy/tsocks/Manifest index 2962e4c54afe..1f0592a8562a 100644 --- a/net-proxy/tsocks/Manifest +++ b/net-proxy/tsocks/Manifest @@ -1,14 +1,37 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 a76189d4dfa9fdc2f0c534c1a1fd8b9d ChangeLog 2489 -MD5 d90e48e1c5e026d671a6b0bc9aa09574 files/digest-tsocks-1.8_beta5 66 -MD5 dcd6e2fd781d4984dfd0a5c89343847b metadata.xml 471 +AUX tsocks-1.8_beta5-bsd.patch 932 RMD160 d17f6927c4e18b25505139a9893c59afc39775aa SHA1 98b77ce698a8a9ad072f1c7275a3aeb8e2177f86 SHA256 c49851ca7581684788945f0c5cca17536459975b966b65bccb4f0588fc85a42d +MD5 3dac1b67ca2cbbf1a9685b34de5162f2 files/tsocks-1.8_beta5-bsd.patch 932 +RMD160 d17f6927c4e18b25505139a9893c59afc39775aa files/tsocks-1.8_beta5-bsd.patch 932 +SHA256 c49851ca7581684788945f0c5cca17536459975b966b65bccb4f0588fc85a42d files/tsocks-1.8_beta5-bsd.patch 932 +DIST tsocks-1.8beta5.tar.gz 83928 RMD160 12e3eeeafaf7f3be21dd8901da38d5890659b09e SHA1 489f88c5df999ba21b27cdaa7836d9426d062aec SHA256 849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347 +EBUILD tsocks-1.8_beta5-r1.ebuild 1407 RMD160 b2b9960b4f93160d23cbb434c7e918e8a8201ce1 SHA1 dd1e6b43a96eb2126aedea443760e378fd1a3112 SHA256 002089b88e2f4829b4172dcf8e1dbd4cbef0d8afa792d132d5c36c3ad87609ee +MD5 420e822f3ff7db81e2005be94abeb726 tsocks-1.8_beta5-r1.ebuild 1407 +RMD160 b2b9960b4f93160d23cbb434c7e918e8a8201ce1 tsocks-1.8_beta5-r1.ebuild 1407 +SHA256 002089b88e2f4829b4172dcf8e1dbd4cbef0d8afa792d132d5c36c3ad87609ee tsocks-1.8_beta5-r1.ebuild 1407 +EBUILD tsocks-1.8_beta5.ebuild 1319 RMD160 825543015817c82a1264e33e38e3c6e00fdbe77a SHA1 f73f24d2e76f99eb7fa96141716da70ff00f168e SHA256 426bac9c14a223a4e286dbb8721dddb8d51ac7bd31e2c1acbc636a33bea07426 MD5 02e0def565a3cfb7d388dacac30279a1 tsocks-1.8_beta5.ebuild 1319 +RMD160 825543015817c82a1264e33e38e3c6e00fdbe77a tsocks-1.8_beta5.ebuild 1319 +SHA256 426bac9c14a223a4e286dbb8721dddb8d51ac7bd31e2c1acbc636a33bea07426 tsocks-1.8_beta5.ebuild 1319 +MISC ChangeLog 2730 RMD160 b1ab882458ce87b530f34d913922e8eeca990174 SHA1 5569d1bd294295c3b068d4c4022d3c67c1e6f342 SHA256 e15e9ac6395794422648fecb1724367e6564317e872fd616c1be3e75e8e12430 +MD5 e2a5eb8ae4c33b6020cdfa13f052cca4 ChangeLog 2730 +RMD160 b1ab882458ce87b530f34d913922e8eeca990174 ChangeLog 2730 +SHA256 e15e9ac6395794422648fecb1724367e6564317e872fd616c1be3e75e8e12430 ChangeLog 2730 +MISC metadata.xml 471 RMD160 dee402e8fb1b0a17d03af1f2589e924ac4c73380 SHA1 75450d9c85ab5ac179ce651eb077ea46ef4e21b6 SHA256 c40bbba952834ddbeeda24dfee44d7b115e05a70ac381daad972df60d9ce96bd +MD5 dcd6e2fd781d4984dfd0a5c89343847b metadata.xml 471 +RMD160 dee402e8fb1b0a17d03af1f2589e924ac4c73380 metadata.xml 471 +SHA256 c40bbba952834ddbeeda24dfee44d7b115e05a70ac381daad972df60d9ce96bd metadata.xml 471 +MD5 a96b628504b49e1497c63410757e8266 files/digest-tsocks-1.8_beta5 244 +RMD160 ab4d2d9705d59fc772a5090f6a4de69666e373c5 files/digest-tsocks-1.8_beta5 244 +SHA256 21922518e4e035dfdb3d4df376b2cd6fed1e6d42bcd187c297b7e63e7ed8094c files/digest-tsocks-1.8_beta5 244 +MD5 a96b628504b49e1497c63410757e8266 files/digest-tsocks-1.8_beta5-r1 244 +RMD160 ab4d2d9705d59fc772a5090f6a4de69666e373c5 files/digest-tsocks-1.8_beta5-r1 244 +SHA256 21922518e4e035dfdb3d4df376b2cd6fed1e6d42bcd187c297b7e63e7ed8094c files/digest-tsocks-1.8_beta5-r1 244 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.1 (GNU/Linux) +Version: GnuPG v1.4.4 (GNU/Linux) -iD8DBQFEDLI+jG8pv1lIUX4RAom1AKDAiBfWq6pZRfUNKPU94Y/rabvMtQCgvRyi -V79kbO4xF1+Z6nz1o2PBnFE= -=Pu/Y +iD8DBQFEunyfAiZjviIA2XgRAprBAJ9dP+r1x9u6wy+dvWEuwdV838P8sgCfTeD7 +Bl1dNH5tdnghGtTWjCkjVKs= +=w4yZ -----END PGP SIGNATURE----- diff --git a/net-proxy/tsocks/files/digest-tsocks-1.8_beta5 b/net-proxy/tsocks/files/digest-tsocks-1.8_beta5 index 26e48b620a82..9fa43c4ee82c 100644 --- a/net-proxy/tsocks/files/digest-tsocks-1.8_beta5 +++ b/net-proxy/tsocks/files/digest-tsocks-1.8_beta5 @@ -1 +1,3 @@ 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/digest-tsocks-1.8_beta5-r1 b/net-proxy/tsocks/files/digest-tsocks-1.8_beta5-r1 new file mode 100644 index 000000000000..9fa43c4ee82c --- /dev/null +++ b/net-proxy/tsocks/files/digest-tsocks-1.8_beta5-r1 @@ -0,0 +1,3 @@ +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-bsd.patch b/net-proxy/tsocks/files/tsocks-1.8_beta5-bsd.patch new file mode 100644 index 000000000000..e003475da5a3 --- /dev/null +++ b/net-proxy/tsocks/files/tsocks-1.8_beta5-bsd.patch @@ -0,0 +1,22 @@ +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/tsocks-1.8_beta5-r1.ebuild b/net-proxy/tsocks/tsocks-1.8_beta5-r1.ebuild new file mode 100644 index 000000000000..ecb0f13660ef --- /dev/null +++ b/net-proxy/tsocks/tsocks-1.8_beta5-r1.ebuild @@ -0,0 +1,51 @@ +# 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-r1.ebuild,v 1.1 2006/07/16 17:51:21 flameeyes 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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="" + +S="${WORKDIR}/${P%%_*}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-bsd.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 + dobin validateconf inspectsocks saveme + insinto /etc/socks + doins tsocks.conf.*.example + # 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" +} |