blob: d4ce3ab7ee44b2197afd3f9955607a3750af63b5 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Maintainer: Ben Lutgens <lamer@gentoo.org>
# Author: Bardur Arantsson <bardur-gta@odense.kollegienet.dk>
DESCRIPTION="Transparent SOCKS v4 proxying library."
HOMEPAGE="http://tsocks.sourceforge.net/"
LICENSE="GPL-2"
DEPEND="virtual/glibc"
SRC_URI="http://ftp1.sourceforge.net/${PN}/${PN}-1.8beta4.tar.gz"
KEYWORDS="x86"
SLOT="0"
S=${WORKDIR}/tsocks-1.8
src_compile() {
# NOTE: the docs say to install it into /lib. If you put it into
# /usr/lib and add it to /etc/ld.so.preload on many systems /usr isn't
# mounted in time :-( (Ben Lutgens) <lamer@gentoo.org>
try ./configure \
--host=${CHOST} \
--prefix=/usr \
--with-conf=/etc/socks/tsocks.conf \
--mandir=/usr/share/man
try emake
}
src_install () {
make DESTDIR=${D} install || die
insinto /etc/socks
doins tsocks.conf.*.example
dodoc INSTALL
# tsocks script is buggy so we need this symlink
dodir /usr/lib
dosym /lib/libtsocks.so /usr/lib/libtsocks.so
}
pkg_postinst () {
einfo "Make sure you create /etc/socks/tsocks.conf from on of the
examples in that directory"
}
|