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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Feb 15 10:34:24 2005 UTC (14 years, 10 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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 # 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_pre1.ebuild,v 1.2 2005/01/26 21:36:45 kaiowas 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="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~ia64 ~ppc64 ~s390 ~amd64"
16 IUSE="tcpd debug selinux"
17
18 RDEPEND="virtual/libc
19 sys-libs/pam
20 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 ht_fix_file `find ${S} -name 'configure'`
33 sed -i \
34 -e 's:/etc/socks\.conf:/etc/socks/socks.conf:' \
35 -e 's:/etc/sockd\.conf:/etc/socks/sockd.conf:' \
36 doc/{faq.ps,faq.tex,sockd.8,sockd.conf.5,socks.conf.5}
37 }
38
39 src_compile() {
40 econf \
41 `use_enable debug` \
42 `use_enable tcpd libwrap` \
43 --with-socks-conf=/etc/socks/socks.conf \
44 --with-sockd-conf=/etc/socks/sockd.conf \
45 ${myconf} \
46 || die "bad ./configure"
47 # the comments in the source say this is only useful for 2.0 kernels ...
48 # well it may fix 2.0 but it breaks with 2.6 :)
49 [ "${KV:0:3}" == "2.6" ] && sed -i 's:if HAVE_LINUX_ECCENTRICITIES:if 0:' include/common.h
50 emake || die "compile problem"
51 }
52
53 src_install() {
54 make DESTDIR=${D} install || die
55
56 # bor: comment libdl.so out it seems to work just fine without it
57 sed -i -e 's:libdl\.so::' ${D}/usr/bin/socksify || die 'sed failed'
58
59 # no configuration file by default
60 dodir /etc/socks
61
62 # our init script
63 exeinto /etc/init.d
64 newexe ${FILESDIR}/dante-sockd-init-1.1.14-r2 dante-sockd
65 insinto /etc/conf.d
66 newins ${FILESDIR}/dante-sockd-conf-1.1.14-r2 dante-sockd
67
68 # install documentation
69 dodoc BUGS CREDITS NEWS README SUPPORT TODO VERSION
70 docinto txt
71 cd doc
72 dodoc README* *.txt SOCKS4.*
73 docinto example
74 cd ../example
75 dodoc *.conf
76 }

  ViewVC Help
Powered by ViewVC 1.1.20