Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/tsocks: ChangeLog tsocks-1.8_beta5-r5.ebuild
Date: Sat, 20 Jun 2009 12:03:16
Message-Id: E1MHzHt-0000Lr-IG@stork.gentoo.org
1 mrness 09/06/20 12:03:13
2
3 Modified: ChangeLog
4 Added: tsocks-1.8_beta5-r5.ebuild
5 Log:
6 Link tsocks-saveme dinamically (#273339). Migrate to EAPI 2.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.29 net-proxy/tsocks/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/tsocks/ChangeLog?rev=1.29&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/tsocks/ChangeLog?rev=1.29&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/tsocks/ChangeLog?r1=1.28&r2=1.29
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v
19 retrieving revision 1.28
20 retrieving revision 1.29
21 diff -u -r1.28 -r1.29
22 --- ChangeLog 18 Feb 2009 00:01:46 -0000 1.28
23 +++ ChangeLog 20 Jun 2009 12:03:13 -0000 1.29
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-proxy/tsocks
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v 1.28 2009/02/18 00:01:46 mrness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/ChangeLog,v 1.29 2009/06/20 12:03:13 mrness Exp $
29 +
30 +*tsocks-1.8_beta5-r5 (20 Jun 2009)
31 +
32 + 20 Jun 2009; Alin Năstac <mrness@g.o>
33 + +files/tsocks-1.8_beta5-gentoo-r3.patch, +tsocks-1.8_beta5-r5.ebuild:
34 + Link tsocks-saveme dinamically (#273339). Migrate to EAPI 2.
35
36 *tsocks-1.8_beta5-r4 (18 Feb 2009)
37
38
39
40
41 1.1 net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: tsocks-1.8_beta5-r5.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/tsocks-1.8_beta5-r5.ebuild,v 1.1 2009/06/20 12:03:13 mrness Exp $
51
52 EAPI="2"
53
54 inherit multilib eutils autotools toolchain-funcs
55
56 DESCRIPTION="Transparent SOCKS v4 proxying library"
57 HOMEPAGE="http://tsocks.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/tsocks/${PN}-${PV/_}.tar.gz
59 tordns? ( mirror://gentoo/${PN}-${PV/_beta/b}-tordns1-gentoo-r1.patch.gz )"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
64 IUSE="tordns"
65
66 S="${WORKDIR}/${P%%_*}"
67
68 src_prepare() {
69 epatch "${FILESDIR}/${P}-gentoo-r3.patch"
70 epatch "${FILESDIR}/${P}-bsd.patch"
71 use tordns && epatch "../${PN}-${PV/_beta/b}-tordns1-gentoo-r1.patch"
72 eautoreconf
73 }
74
75 src_configure() {
76 tc-export CC
77
78 # NOTE: the docs say to install it into /lib. If you put it into
79 # /usr/lib and add it to /etc/ld.so.preload on many systems /usr isn't
80 # mounted in time :-( (Ben Lutgens) <lamer@g.o>
81 econf \
82 --with-conf=/etc/socks/tsocks.conf \
83 --libdir=/$(get_libdir) || die "configure failed"
84 }
85
86 src_compile() {
87 # Fix QA notice lack of SONAME
88 emake DYNLIB_FLAGS=-Wl,--soname,libtsocks.so.${PV/_beta*} || die "emake failed"
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" install || die "make install failed"
93 newbin validateconf tsocks-validateconf
94 newbin saveme tsocks-saveme
95 dobin inspectsocks
96 insinto /etc/socks
97 doins tsocks.conf.*.example
98 dodoc FAQ
99 use tordns && dodoc README*
100 }
101
102 pkg_postinst() {
103 einfo "Make sure you create /etc/socks/tsocks.conf from one of the examples in that directory"
104 einfo "The following executables have been renamed:"
105 einfo " /usr/bin/saveme renamed to tsocks-saveme"
106 einfo " /usr/bin/validateconf renamed to tsocks-validateconf"
107 }