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/dante: ChangeLog dante-1.1.19-r3.ebuild dante-1.1.19-r2.ebuild
Date: Sat, 28 Feb 2009 09:53:44
Message-Id: E1LdLt7-0001ox-VD@stork.gentoo.org
1 mrness 09/02/28 09:53:41
2
3 Modified: ChangeLog
4 Added: dante-1.1.19-r3.ebuild
5 Removed: dante-1.1.19-r2.ebuild
6 Log:
7 Fix bashisms in dante-sockd init.d script (#260151).
8 (Portage version: 2.1.6.4/cvs/Linux 2.6.25-gentoo-r6 x86_64)
9
10 Revision Changes Path
11 1.44 net-proxy/dante/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dante/ChangeLog?rev=1.44&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dante/ChangeLog?rev=1.44&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dante/ChangeLog?r1=1.43&r2=1.44
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-proxy/dante/ChangeLog,v
20 retrieving revision 1.43
21 retrieving revision 1.44
22 diff -u -r1.43 -r1.44
23 --- ChangeLog 25 Jun 2008 20:42:56 -0000 1.43
24 +++ ChangeLog 28 Feb 2009 09:53:41 -0000 1.44
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-proxy/dante
27 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/dante/ChangeLog,v 1.43 2008/06/25 20:42:56 mrness Exp $
29 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/dante/ChangeLog,v 1.44 2009/02/28 09:53:41 mrness Exp $
31 +
32 +*dante-1.1.19-r3 (28 Feb 2009)
33 +
34 + 28 Feb 2009; Alin Năstac <mrness@g.o> files/dante-sockd-init,
35 + -dante-1.1.19-r2.ebuild, +dante-1.1.19-r3.ebuild:
36 + Fix bashisms in dante-sockd init.d script (#260151).
37
38 25 Jun 2008; Alin Năstac <mrness@g.o>
39 files/dante-1.1.19-libpam.patch:
40
41
42
43 1.1 net-proxy/dante/dante-1.1.19-r3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dante/dante-1.1.19-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dante/dante-1.1.19-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: dante-1.1.19-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-proxy/dante/dante-1.1.19-r3.ebuild,v 1.1 2009/02/28 09:53:41 mrness Exp $
53
54 inherit eutils autotools
55
56 DESCRIPTION="A free socks4,5 and msproxy implementation"
57 HOMEPAGE="http://www.inet.no/dante/"
58 SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz"
59
60 LICENSE="BSD"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
63 IUSE="tcpd debug selinux pam"
64
65 RDEPEND="virtual/libc
66 pam? ( virtual/pam )
67 tcpd? ( sys-apps/tcp-wrappers )
68 selinux? ( sec-policy/selinux-dante )
69 userland_GNU? ( sys-apps/shadow )"
70 DEPEND="${RDEPEND}
71 sys-devel/flex
72 sys-devel/bison
73 >=sys-apps/sed-4"
74
75 src_unpack() {
76 unpack ${A}
77
78 cd "${S}"
79 epatch "${FILESDIR}/${P}-socksify.patch"
80 epatch "${FILESDIR}/${P}-libpam.patch"
81
82 sed -i \
83 -e 's:/etc/socks\.conf:/etc/socks/socks.conf:' \
84 -e 's:/etc/sockd\.conf:/etc/socks/sockd.conf:' \
85 doc/{faq.ps,faq.tex,sockd.8,sockd.conf.5,socks.conf.5}
86
87 eautoreconf
88 }
89
90 src_compile() {
91 econf \
92 `use_enable debug` \
93 `use_enable tcpd libwrap` \
94 `use_with pam` \
95 --with-socks-conf=/etc/socks/socks.conf \
96 --with-sockd-conf=/etc/socks/sockd.conf \
97 || die "bad ./configure"
98 # the comments in the source say this is only useful for 2.0 kernels ...
99 # well it may fix 2.0 but it breaks with 2.6 :)
100 sed -i 's:if HAVE_LINUX_ECCENTRICITIES:if 0:' include/common.h
101 emake || die "emake failed"
102 }
103
104 src_install() {
105 emake DESTDIR="${D}" install || die "emake install has failed"
106
107 # bor: comment libdl.so out it seems to work just fine without it
108 sed -i -e 's:libdl\.so::' "${D}/usr/bin/socksify" || die 'sed failed'
109
110 # default configuration files
111 insinto /etc/socks
112 doins "${FILESDIR}"/sock?.conf
113 cd "${D}/etc/socks" && {
114 use pam && epatch "${FILESDIR}/sockd.conf-with-pam.patch"
115 use tcpd && epatch "${FILESDIR}/sockd.conf-with-libwrap.patch"
116 }
117 cd "${S}"
118
119 # our init script
120 newinitd "${FILESDIR}/dante-sockd-init" dante-sockd
121 newconfd "${FILESDIR}/dante-sockd-conf" dante-sockd
122
123 # install documentation
124 dodoc BUGS CREDITS NEWS README SUPPORT TODO
125 docinto txt
126 cd doc
127 dodoc README* *.txt SOCKS4.*
128 docinto example
129 cd ../example
130 dodoc *.conf
131 }
132
133 pkg_postinst() {
134 enewuser sockd -1 -1 /etc/socks daemon
135 }