blob: 84a840b079b2b34d25437f17926a9cb9997dfd2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dante/dante-1.1.13.ebuild,v 1.7 2002/12/09 04:33:15 manson Exp $
IUSE="tcpd"
S=${WORKDIR}/${P}
DESCRIPTION="A free socks4,5 and msproxy implemetation"
SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz"
HOMEPAGE="http://www.inet.no/dante/"
LICENSE="BSD"
KEYWORDS="~x86 ~sparc "
SLOT="0"
RDEPEND="virtual/glibc
sys-libs/pam
tcpd? ( sys-apps/tcp-wrappers )"
DEPEND="${RDEPEND}
sys-devel/perl"
# removed the src_unpack() since it doesn't appear to need any of those
# patches (they all barfed when I tried to apply them by hand)
src_compile() {
local myconf
use tcpd || myconf="--disable-libwrap"
[ -n "$DEBUGBUILD" ] || myconf="${myconf} --disable-debug"
einfo "myconf is $myconf"
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--with-socks-conf=/etc/socks/socks.conf \
--with-sockd-conf=/etc/socks/sockd.conf \
--host=${CHOST} ${myconf} || die "bad ./configure"
emake || die "compile problem"
}
src_install() {
# Line 99 in socks.h conflicts with stuff in line 333 of
# /usr/include/netinet/in.h this is a not-too-cool way of fix0ring that
cat capi/socks.h | \
sed -e "s:^int Rbindresvport://int Rbindresvport:" > capi/socks.h
make DESTDIR=${D} install || die
# bor: comment libdl.so out it seems to work just fine without it
perl -pe 's/(libdl\.so)//' -i ${D}/usr/bin/socksify
dodir /etc/socks
dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION
docinto txt
cd doc
dodoc README* *.txt SOCKS4.*
docinto example
cd ../example
dodoc *.conf
exeinto /etc/init.d
newexe ${FILESDIR}/dante-sockd-init dante-sockd
}
|