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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download)
Thu Feb 17 23:15:26 2005 UTC (14 years, 11 months ago) by hardave
Branch: MAIN
Changes since 1.9: +2 -2 lines
Stable on mips.
(Portage version: 2.0.51-r15)

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

  ViewVC Help
Powered by ViewVC 1.1.20