/[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.1 - (show annotations) (download)
Mon Dec 8 22:00:43 2003 UTC (16 years, 1 month ago) by agriffis
Branch: MAIN
fix socks.h and socksify

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/dante/dante-1.1.14.ebuild,v 1.3 2003/09/18 23:14:19 avenj Exp $
4
5 inherit gcc
6
7 DESCRIPTION="A free socks4,5 and msproxy implemetation"
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 ia64"
14 IUSE="tcpd debug"
15
16 DEPEND="virtual/glibc
17 sys-libs/pam
18 tcpd? ( sys-apps/tcp-wrappers )
19 >=sys-apps/sed-4"
20
21 src_unpack() {
22 unpack ${A} || die "unpack failed"
23 cd ${S} || die "cd failed"
24 epatch ${FILESDIR}/dante-1.1.14-socksify.patch || die "epatch failed"
25 epatch ${FILESDIR}/dante-1.1.14-bindresvport.patch || die "epatch failed"
26 }
27
28 src_compile() {
29 econf \
30 `use_enable debug` \
31 `use_enable tcpd libwrap` \
32 --with-socks-conf=/etc/socks/socks.conf \
33 --with-sockd-conf=/etc/socks/sockd.conf \
34 ${myconf} \
35 || die "bad ./configure"
36 emake || die "compile problem"
37 }
38
39 src_install() {
40 make DESTDIR=${D} install || die
41
42 # bor: comment libdl.so out it seems to work just fine without it
43 sed -i -e 's:libdl\.so::' ${D}/usr/bin/socksify || die 'sed failed'
44
45 # no configuration file by default
46 dodir /etc/socks
47
48 # our init script
49 exeinto /etc/init.d
50 newexe ${FILESDIR}/dante-sockd-init dante-sockd
51
52 # install documentation
53 dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION
54 docinto txt
55 cd doc
56 dodoc README* *.txt SOCKS4.*
57 docinto example
58 cd ../example
59 dodoc *.conf
60 }

  ViewVC Help
Powered by ViewVC 1.1.20