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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Apr 22 21:22:04 2005 UTC (14 years, 7 months ago) by mrness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
net-misc/dante -> net-proxy/dante

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

  ViewVC Help
Powered by ViewVC 1.1.20