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

Contents of /net-misc/vtun/vtun-3.0.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Sep 16 12:57:43 2012 UTC (2 years ago) by blueness
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable ppc, bug #425814

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/vtun/vtun-3.0.2-r2.ebuild,v 1.3 2012/07/12 08:07:03 jdhore Exp $
4
5 EAPI=4
6
7 inherit eutils linux-info
8
9 DESCRIPTION="Create virtual tunnels over TCP/IP networks with traffic shaping, encryption, and compression."
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11 HOMEPAGE="http://vtun.sourceforge.net/"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha amd64 ppc ~sparc x86"
16 IUSE="lzo socks5 ssl zlib"
17
18 RDEPEND="ssl? ( dev-libs/openssl )
19 lzo? ( dev-libs/lzo:2 )
20 zlib? ( sys-libs/zlib )
21 socks5? ( net-proxy/dante )"
22 DEPEND="${RDEPEND}
23 sys-devel/bison"
24
25 DOCS="ChangeLog Credits FAQ README README.Setup README.Shaper TODO"
26
27 CONFIG_CHECK="~TUN"
28
29 src_prepare() {
30 sed -i Makefile.in \
31 -e '/^LDFLAGS/s|=|+=|g' \
32 || die "sed Makefile"
33 epatch "${FILESDIR}"/${P}-includes.patch
34 # remove unneeded checking for /etc/vtund.conf
35 epatch "${FILESDIR}"/${P}-remove-config-presence-check.patch
36 # fix build racing condition with bison and lex files, wrt bug #364923
37 epatch "${FILESDIR}"/${P}-build-racing-condition-fix.patch
38 }
39
40 src_configure() {
41 econf \
42 $(use_enable ssl) \
43 $(use_enable zlib) \
44 $(use_enable lzo) \
45 $(use_enable socks5 socks) \
46 --enable-shaper
47 }
48
49 src_install() {
50 default
51 newinitd "${FILESDIR}"/vtun.rc vtun
52 insinto etc
53 doins "${FILESDIR}"/vtund-start.conf
54 }

  ViewVC Help
Powered by ViewVC 1.1.20