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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jan 26 21:36:45 2005 UTC (14 years, 11 months ago) by kaiowas
Branch: MAIN
Changes since 1.7: +5 -3 lines
added selinux RDEPEND
(Portage version: 2.0.51-r14)

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-r1.ebuild,v 1.7 2004/08/08 00:20:40 slarti 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 alpha ~hppa ~mips ia64"
14 IUSE="tcpd debug selinux"
15
16 DEPEND="virtual/libc
17 sys-libs/pam
18 tcpd? ( sys-apps/tcp-wrappers )
19 >=sys-apps/sed-4"
20
21 RDEPEND="selinux? ( sec-policy/selinux-dante )"
22
23 src_unpack() {
24 unpack ${A} || die "unpack failed"
25 cd ${S} || die "cd failed"
26 epatch ${FILESDIR}/dante-1.1.14-socksify.patch || die "epatch failed"
27 epatch ${FILESDIR}/dante-1.1.14-bindresvport.patch || die "epatch failed"
28 ht_fix_file `find ${S} -name 'configure'`
29 }
30
31 src_compile() {
32 econf \
33 `use_enable debug` \
34 `use_enable tcpd libwrap` \
35 --with-socks-conf=/etc/socks/socks.conf \
36 --with-sockd-conf=/etc/socks/sockd.conf \
37 ${myconf} \
38 || die "bad ./configure"
39 emake || die "compile problem"
40 }
41
42 src_install() {
43 make DESTDIR=${D} install || die
44
45 # bor: comment libdl.so out it seems to work just fine without it
46 sed -i -e 's:libdl\.so::' ${D}/usr/bin/socksify || die 'sed failed'
47
48 # no configuration file by default
49 dodir /etc/socks
50
51 # our init script
52 exeinto /etc/init.d
53 newexe ${FILESDIR}/dante-sockd-init dante-sockd
54
55 # install documentation
56 dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION
57 docinto txt
58 cd doc
59 dodoc README* *.txt SOCKS4.*
60 docinto example
61 cd ../example
62 dodoc *.conf
63 }

  ViewVC Help
Powered by ViewVC 1.1.20