/[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.9 - (hide 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.8: +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 kaiowas 1.8 # Copyright 1999-2005 Gentoo Foundation
2 agriffis 1.1 # Distributed under the terms of the GNU General Public License v2
3 dragonheart 1.9 # $Header: /var/cvsroot/gentoo-x86/net-misc/dante/dante-1.1.14-r1.ebuild,v 1.8 2005/01/26 21:36:45 kaiowas Exp $
4 agriffis 1.1
5 agriffis 1.4 inherit gcc fixheadtails eutils
6 agriffis 1.1
7 slarti 1.7 DESCRIPTION="A free socks4,5 and msproxy implementation"
8 agriffis 1.1 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 seemant 1.3 KEYWORDS="~x86 ~ppc ~sparc alpha ~hppa ~mips ia64"
14 kaiowas 1.8 IUSE="tcpd debug selinux"
15 agriffis 1.1
16 squinky86 1.6 DEPEND="virtual/libc
17 agriffis 1.1 sys-libs/pam
18     tcpd? ( sys-apps/tcp-wrappers )
19     >=sys-apps/sed-4"
20    
21 kaiowas 1.8 RDEPEND="selinux? ( sec-policy/selinux-dante )"
22    
23 agriffis 1.1 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 robbat2 1.2 ht_fix_file `find ${S} -name 'configure'`
29 agriffis 1.1 }
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