blob: 5ef31c5df1c52f14d8d92ad7a69443b7750358af (
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
59
60
61
|
# Copyright 1999-2004 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.14-r1.ebuild,v 1.4 2004/04/27 21:28:34 agriffis Exp $
inherit gcc fixheadtails eutils
DESCRIPTION="A free socks4,5 and msproxy implemetation"
HOMEPAGE="http://www.inet.no/dante/"
SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc alpha ~hppa ~mips ia64"
IUSE="tcpd debug"
DEPEND="virtual/glibc
sys-libs/pam
tcpd? ( sys-apps/tcp-wrappers )
>=sys-apps/sed-4"
src_unpack() {
unpack ${A} || die "unpack failed"
cd ${S} || die "cd failed"
epatch ${FILESDIR}/dante-1.1.14-socksify.patch || die "epatch failed"
epatch ${FILESDIR}/dante-1.1.14-bindresvport.patch || die "epatch failed"
ht_fix_file `find ${S} -name 'configure'`
}
src_compile() {
econf \
`use_enable debug` \
`use_enable tcpd libwrap` \
--with-socks-conf=/etc/socks/socks.conf \
--with-sockd-conf=/etc/socks/sockd.conf \
${myconf} \
|| die "bad ./configure"
emake || die "compile problem"
}
src_install() {
make DESTDIR=${D} install || die
# bor: comment libdl.so out it seems to work just fine without it
sed -i -e 's:libdl\.so::' ${D}/usr/bin/socksify || die 'sed failed'
# no configuration file by default
dodir /etc/socks
# our init script
exeinto /etc/init.d
newexe ${FILESDIR}/dante-sockd-init dante-sockd
# install documentation
dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION
docinto txt
cd doc
dodoc README* *.txt SOCKS4.*
docinto example
cd ../example
dodoc *.conf
}
|