/[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 - (hide annotations) (download)
Tue Feb 15 10:34:24 2005 UTC (15 years 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 kaiowas 1.23 # Copyright 1999-2005 Gentoo Foundation
2 vapier 1.4 # Distributed under the terms of the GNU General Public License v2
3 dragonheart 1.24 # $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 lamer 1.1
5 vapier 1.10 inherit gcc
6 drobbins 1.5
7 slarti 1.22 DESCRIPTION="A free socks4,5 and msproxy implementation"
8 lamer 1.1 SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz"
9     HOMEPAGE="http://www.inet.no/dante/"
10 seemant 1.6
11 lamer 1.1 LICENSE="BSD"
12 seemant 1.18 KEYWORDS="x86 ppc sparc alpha hppa mips amd64"
13 lamer 1.1 SLOT="0"
14 kaiowas 1.23 IUSE="tcpd debug selinux"
15 seemant 1.6
16 squinky86 1.21 RDEPEND="virtual/libc
17 seemant 1.6 sys-libs/pam
18 kaiowas 1.23 tcpd? ( sys-apps/tcp-wrappers )
19     selinux? ( sec-policy/selinux-dante )"
20 seemant 1.6 DEPEND="${RDEPEND}
21 seemant 1.13 dev-lang/perl"
22 lamer 1.1
23 vapier 1.10 src_compile() {
24 vapier 1.12 [ "`gcc-version`" == "3.2" ] && export CFLAGS=""
25 lamer 1.1
26     local myconf
27     use tcpd || myconf="--disable-libwrap"
28 agriffis 1.19 use debug || myconf="${myconf} --disable-debug"
29 lamer 1.1 ./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 lamer 1.2 # 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 lamer 1.1 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 msterret 1.17 dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION
48 lamer 1.1 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