| 1 |
blueness |
1.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.17.ebuild,v 1.1 2012/03/11 14:08:26 blueness Exp $ |
| 4 |
|
|
|
| 5 |
|
|
EAPI="4" |
| 6 |
|
|
|
| 7 |
|
|
inherit eutils autotools |
| 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 vde +zlib" |
| 17 |
|
|
|
| 18 |
|
|
DEPEND=">=dev-libs/openssl-0.9.7 |
| 19 |
|
|
lzo? ( dev-libs/lzo:2 ) |
| 20 |
|
|
zlib? ( >=sys-libs/zlib-1.1.4 )" |
| 21 |
|
|
RDEPEND="${DEPEND} |
| 22 |
|
|
vde? ( net-misc/vde )" |
| 23 |
|
|
|
| 24 |
|
|
src_prepare() { |
| 25 |
|
|
epatch "${FILESDIR}"/fix-ac-arg-enable.patch |
| 26 |
|
|
eautoreconf |
| 27 |
|
|
} |
| 28 |
|
|
|
| 29 |
|
|
src_configure() { |
| 30 |
|
|
# The new DeviceType option can now be used to select UML or VDE |
| 31 |
|
|
# devices without having to recompile. So we'll set UML by default |
| 32 |
|
|
# since it doesn't pull in any deps, but VDE needs net-misc/vde, |
| 33 |
|
|
# so we'll keep that contingent on a USE flag. |
| 34 |
|
|
econf \ |
| 35 |
|
|
--enable-jumbograms \ |
| 36 |
|
|
--enable-uml \ |
| 37 |
|
|
$(use_enable vde) \ |
| 38 |
|
|
$(use_enable lzo) \ |
| 39 |
|
|
$(use_enable zlib) |
| 40 |
|
|
} |
| 41 |
|
|
|
| 42 |
|
|
src_install() { |
| 43 |
|
|
emake DESTDIR="${D}" install |
| 44 |
|
|
dodir /etc/tinc |
| 45 |
|
|
dodoc AUTHORS NEWS README THANKS |
| 46 |
|
|
newinitd "${FILESDIR}"/tincd.1 tincd |
| 47 |
|
|
newinitd "${FILESDIR}"/tincd.lo.1 tincd.lo |
| 48 |
|
|
doconfd "${FILESDIR}"/tinc.networks |
| 49 |
|
|
newconfd "${FILESDIR}"/tincd.conf.1 tincd |
| 50 |
|
|
} |
| 51 |
|
|
|
| 52 |
|
|
pkg_postinst() { |
| 53 |
|
|
elog "This package requires the tun/tap kernel device." |
| 54 |
|
|
elog "Look at http://www.tinc-vpn.org/ for how to configure tinc" |
| 55 |
|
|
} |