blob: 1acd72edcc7ba56c081828df6e078ab20b09cb48 (
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
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vtun/vtun-2.6-r1.ebuild,v 1.6 2007/07/05 17:22:15 armin76 Exp $
inherit eutils
IUSE="ssl"
S=${WORKDIR}/vtun
DESCRIPTION="Create virtual tunnels over TCP/IP networks with traffic shaping, encryption, and compression"
SRC_URI="mirror://sourceforge/vtun/${P}.tar.gz"
HOMEPAGE="http://vtun.sourceforge.net/"
KEYWORDS="alpha ~amd64 ~ppc sparc x86"
LICENSE="GPL-2"
SLOT="0"
# NOTE: you also need the tun/tap driver compiled into your kernel
# to do tun/tap tunneling
DEPEND="virtual/libc
>=sys-libs/zlib-1.1.3
>=dev-libs/lzo-2
sys-devel/bison
ssl? ( >=dev-libs/openssl-0.9.6c )"
RDEPEND="virtual/libc
>=sys-libs/zlib-1.1.3
ssl? ( >=dev-libs/openssl-0.9.6c )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-makefile.patch
epatch ${FILESDIR}/${P}-lzo2.patch
}
src_compile() {
local use_opts
use_opts=""
if ! use ssl
then
use_opts="--disable-ssl"
fi
econf ${use_opts} --with-ssl-headers=/usr/include/openssl || die
make || die
}
src_install () {
make DESTDIR=${D} prefix=/usr \
mandir=/usr/share/man \
infodir=/usr/share/info \
datadir=/usr/share \
sysconfdir=/etc \
localstatedir=/var/lib \
install || die
dodoc ChangeLog Credits FAQ README README.Setup README.Shaper TODO
newinitd ${FILESDIR}/vtun.rc vtun
insinto etc
doins ${FILESDIR}/vtund-start.conf
}
pkg_postinst () {
einfo ">>> You will need the Universal TUN/TAP driver compiled into"
einfo ">>> your kernel or as a module to use the associated tunnel"
einfo ">>> modes in vtun. 2.2 users will need to download and install"
einfo ">>> the driver from http://vtun.sourceforge.net/tun"
}
|