/[gentoo-x86]/net-misc/vtun/vtun-2.6.ebuild
Gentoo

Contents of /net-misc/vtun/vtun-2.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download)
Thu Jul 5 17:24:31 2007 UTC (12 years, 3 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
drop old one still using older lzo.
(Portage version: 2.1.3_rc6)

1 tove 1.14 # Copyright 1999-2007 Gentoo Foundation
2 zul 1.1 # Distributed under the terms of the GNU General Public License v2
3 drac 1.15 # $Header: /var/cvsroot/gentoo-x86/net-misc/vtun/vtun-2.6.ebuild,v 1.14 2007/04/29 17:52:39 tove Exp $
4 agriffis 1.3
5     inherit eutils
6 zul 1.1
7     IUSE="ssl"
8    
9     S=${WORKDIR}/vtun
10     DESCRIPTION="Create virtual tunnels over TCP/IP networks with traffic shaping, encryption, and compression"
11     SRC_URI="mirror://sourceforge/vtun/${P}.tar.gz"
12     HOMEPAGE="http://vtun.sourceforge.net/"
13 kloeri 1.11 KEYWORDS="x86 sparc ~amd64 alpha ~ppc"
14 zul 1.1 LICENSE="GPL-2"
15     SLOT="0"
16    
17     # NOTE: you also need the tun/tap driver compiled into your kernel
18     # to do tun/tap tunneling
19 squinky86 1.6 DEPEND="virtual/libc
20 zul 1.1 >=sys-libs/zlib-1.1.3
21 dragonheart 1.12 =dev-libs/lzo-1*
22 zul 1.1 sys-devel/bison
23     ssl? ( >=dev-libs/openssl-0.9.6c )"
24    
25 solar 1.8 RDEPEND="virtual/libc
26     >=sys-libs/zlib-1.1.3
27     ssl? ( >=dev-libs/openssl-0.9.6c )"
28    
29 zul 1.1 src_unpack() {
30     unpack ${A} && cd ${S} || die
31     epatch ${FILESDIR}/${PN}-${PV}-makefile.patch
32     }
33    
34     src_compile() {
35     local use_opts
36     use_opts=""
37 agriffis 1.4 if ! use ssl
38 zul 1.1 then
39     use_opts="--disable-ssl"
40     fi
41    
42     econf ${use_opts} --with-ssl-headers=/usr/include/openssl || die
43    
44     make || die
45     }
46    
47     src_install () {
48     make DESTDIR=${D} prefix=/usr \
49     mandir=/usr/share/man \
50     infodir=/usr/share/info \
51     datadir=/usr/share \
52     sysconfdir=/etc \
53     localstatedir=/var/lib \
54     install || die
55    
56     dodoc ChangeLog Credits FAQ README README.Setup README.Shaper TODO
57    
58 tove 1.14 newinitd ${FILESDIR}/vtun.rc vtun
59 zul 1.1
60     insinto etc
61     doins ${FILESDIR}/vtund-start.conf
62     }
63    
64     pkg_postinst () {
65 dragonheart 1.13 einfo ">>> You will need the Universal TUN/TAP driver compiled into"
66     einfo ">>> your kernel or as a module to use the associated tunnel"
67     einfo ">>> modes in vtun. 2.2 users will need to download and install"
68     einfo ">>> the driver from http://vtun.sourceforge.net/tun"
69 zul 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20