blob: 4ab45d0b4f5fed78337b429d4329f67128748c4c (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-misc/dante/dante-1.1.9-r1.ebuild,v 1.1 2002/05/01 04:38:03 woodchip Exp $
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/"
DEPEND="virtual/glibc tcpd? ( sys-apps/tcp-wrappers )"
src_compile() {
local myconf
use tcpd || myconf="--disable-libwrap"
[ -n "$DEBUGBUILD" ] && myconf="${myconf} --enable-debug"
./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"
make || die "compile problem"
}
src_install() {
make DESTDIR=${D} install || die
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
}
|