/[gentoo-x86]/net-misc/tinc/tinc-1.0.16-r2.ebuild
Gentoo

Contents of /net-misc/tinc/tinc-1.0.16-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jan 31 22:53:03 2012 UTC (2 years, 8 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fix bug #401423 and removed older ~arch

(Portage version: 2.1.10.44/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/tinc/tinc-1.0.16-r2.ebuild,v 1.2 2012/01/15 19:48:38 tove Exp $
4
5 EAPI="4"
6
7 inherit eutils
8
9 DESCRIPTION="tinc is an easy to configure VPN implementation"
10 HOMEPAGE="http://www.tinc-vpn.org/"
11 SRC_URI="http://www.tinc-vpn.org/packages/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos ~x86-macos"
16 IUSE="+lzo +zlib raw uml vde"
17
18 DEPEND=">=dev-libs/openssl-0.9.7c
19 lzo? ( dev-libs/lzo:2 )
20 zlib? ( >=sys-libs/zlib-1.1.4-r2 )
21 vde? ( net-misc/vde )"
22 RDEPEND="${DEPEND}"
23
24 src_prepare() {
25 local COUNT=0
26 use raw && COUNT=$(($COUNT+1))
27 use uml && COUNT=$(($COUNT+1))
28 use vde && COUNT=$(($COUNT+1))
29
30 if [[ ${COUNT} -gt 1 ]]; then
31 eerror
32 eerror "\033[1;31m**************************************************\033[1;31m"
33 eerror
34 eerror "\033[1;31m If you selected either raw, uml or vde,\033[1;31m"
35 eerror "\033[1;31m you can select only one.\033[1;31m"
36 eerror
37 eerror "\033[1;31m**************************************************\033[1;31m"
38 eerror
39 die
40 fi
41
42 epatch "${FILESDIR}"/fix-missing-vde.patch
43 epatch "${FILESDIR}"/fix-compile-vde-uml.patch
44 }
45
46 src_configure() {
47 econf --enable-jumbograms $(use_enable lzo) $(use_enable zlib)
48 use raw && cd "${S}"/src && ln -sf raw_socket/device.c
49 use uml && cd "${S}"/src && ln -sf uml_socket/device.c
50 use vde && cd "${S}"/src && ln -sf vde/device.c
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" install
55 dodir /etc/tinc
56 dodoc AUTHORS NEWS README THANKS
57 newinitd "${FILESDIR}"/tincd.1 tincd
58 newinitd "${FILESDIR}"/tincd.lo.1 tincd.lo
59 doconfd "${FILESDIR}"/tinc.networks
60 newconfd "${FILESDIR}"/tincd.conf.1 tincd
61 }
62
63 pkg_postinst() {
64 elog "This package requires the tun/tap kernel device."
65 elog "Look at http://www.tinc-vpn.org/ for how to configure tinc"
66 }

  ViewVC Help
Powered by ViewVC 1.1.20