/[gentoo-x86]/net-misc/dante/dante-1.1.14-r2.ebuild
Gentoo

Contents of /net-misc/dante/dante-1.1.14-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Tue Feb 15 10:34:24 2005 UTC (14 years, 11 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +1 -1 lines
FILE REMOVED
Pam now optional as per bug #81002. Prior versions removed due to security vulnerabilities
(Portage version: 2.0.51.16)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dante/dante-1.1.14-r2.ebuild,v 1.17 2005/01/26 21:36:45 kaiowas Exp $
4
5 inherit gcc fixheadtails eutils
6
7 DESCRIPTION="A free socks4,5 and msproxy implementation"
8 HOMEPAGE="http://www.inet.no/dante/"
9 SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="x86 ppc sparc ~mips alpha arm hppa ia64 ppc64 s390 amd64"
14 IUSE="tcpd debug selinux"
15
16 RDEPEND="virtual/libc
17 sys-libs/pam
18 tcpd? ( sys-apps/tcp-wrappers )
19 selinux? ( sec-policy/selinux-dante )"
20 DEPEND="${RDEPEND}
21 >=sys-apps/sed-4"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 epatch ${FILESDIR}/dante-1.1.14-socksify.patch
27 epatch ${FILESDIR}/dante-1.1.14-bindresvport.patch
28 ht_fix_file `find ${S} -name 'configure'`
29 sed -i \
30 -e 's:/etc/socks\.conf:/etc/socks/socks.conf:' \
31 -e 's:/etc/sockd\.conf:/etc/socks/sockd.conf:' \
32 doc/{faq.ps,faq.tex,sockd.8,sockd.conf.5,socks.conf.5}
33 }
34
35 src_compile() {
36 econf \
37 `use_enable debug` \
38 `use_enable tcpd libwrap` \
39 --with-socks-conf=/etc/socks/socks.conf \
40 --with-sockd-conf=/etc/socks/sockd.conf \
41 ${myconf} \
42 || die "bad ./configure"
43 # the comments in the source say this is only useful for 2.0 kernels ...
44 # well it may fix 2.0 but it breaks with 2.6 :)
45 [ "${KV:0:3}" == "2.6" ] && sed -i 's:if HAVE_LINUX_ECCENTRICITIES:if 0:' include/common.h
46 emake || die "compile problem"
47 }
48
49 src_install() {
50 make DESTDIR=${D} install || die
51
52 # bor: comment libdl.so out it seems to work just fine without it
53 sed -i -e 's:libdl\.so::' ${D}/usr/bin/socksify || die 'sed failed'
54
55 # no configuration file by default
56 dodir /etc/socks
57
58 # our init script
59 exeinto /etc/init.d
60 newexe ${FILESDIR}/dante-sockd-init-1.1.14-r2 dante-sockd
61 insinto /etc/conf.d
62 newins ${FILESDIR}/dante-sockd-conf-1.1.14-r2 dante-sockd
63
64 # install documentation
65 dodoc BUGS CREDITS NEWS README SUPPORT TODO VERSION
66 docinto txt
67 cd doc
68 dodoc README* *.txt SOCKS4.*
69 docinto example
70 cd ../example
71 dodoc *.conf
72 }

  ViewVC Help
Powered by ViewVC 1.1.20