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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.24 - (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.23: +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.13.ebuild,v 1.23 2005/01/26 21:36:45 kaiowas Exp $
4
5 inherit gcc
6
7 DESCRIPTION="A free socks4,5 and msproxy implementation"
8 SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz"
9 HOMEPAGE="http://www.inet.no/dante/"
10
11 LICENSE="BSD"
12 KEYWORDS="x86 ppc sparc alpha hppa mips amd64"
13 SLOT="0"
14 IUSE="tcpd debug selinux"
15
16 RDEPEND="virtual/libc
17 sys-libs/pam
18 tcpd? ( sys-apps/tcp-wrappers )
19 selinux? ( sec-policy/selinux-dante )"
20 DEPEND="${RDEPEND}
21 dev-lang/perl"
22
23 src_compile() {
24 [ "`gcc-version`" == "3.2" ] && export CFLAGS=""
25
26 local myconf
27 use tcpd || myconf="--disable-libwrap"
28 use debug || myconf="${myconf} --disable-debug"
29 ./configure \
30 --prefix=/usr \
31 --mandir=/usr/share/man \
32 --with-socks-conf=/etc/socks/socks.conf \
33 --with-sockd-conf=/etc/socks/sockd.conf \
34 --host=${CHOST} ${myconf} || die "bad ./configure"
35 emake || die "compile problem"
36 }
37
38 src_install() {
39 # Line 99 in socks.h conflicts with stuff in line 333 of
40 # /usr/include/netinet/in.h this is a not-too-cool way of fix0ring that
41 cat capi/socks.h | \
42 sed -e "s:^int Rbindresvport://int Rbindresvport:" > capi/socks.h
43 make DESTDIR=${D} install || die
44 # bor: comment libdl.so out it seems to work just fine without it
45 perl -pe 's/(libdl\.so)//' -i ${D}/usr/bin/socksify
46 dodir /etc/socks
47 dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION
48 docinto txt
49 cd doc
50 dodoc README* *.txt SOCKS4.*
51 docinto example
52 cd ../example
53 dodoc *.conf
54 exeinto /etc/init.d
55 newexe ${FILESDIR}/dante-sockd-init dante-sockd
56 }

  ViewVC Help
Powered by ViewVC 1.1.20