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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Nov 20 20:39:21 2012 UTC (20 months, 1 week ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #441488

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

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.3.ebuild,v 1.3 2012/11/06 17:06:08 ago 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}"/${PN}-3.0.2-remove-config-presence-check.patch
36 # portage takes care about striping binaries itself
37 sed -i 's:$(BIN_DIR)/strip $(DESTDIR)$(SBIN_DIR)/vtund::' Makefile.in
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