| 1 |
# Copyright 1999-2010 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.13.ebuild,v 1.2 2010/09/17 09:48:50 robbat2 Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
|
| 7 |
DESCRIPTION="tinc is an easy to configure VPN implementation"
|
| 8 |
HOMEPAGE="http://www.tinc-vpn.org/"
|
| 9 |
SRC_URI="http://www.tinc-vpn.org/packages/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos ~x86-macos"
|
| 14 |
IUSE="+lzo +zlib"
|
| 15 |
|
| 16 |
DEPEND=">=dev-libs/openssl-0.9.7c
|
| 17 |
lzo? ( dev-libs/lzo:2 )
|
| 18 |
zlib? ( >=sys-libs/zlib-1.1.4-r2 )"
|
| 19 |
|
| 20 |
src_configure() {
|
| 21 |
econf --enable-jumbograms $(use_enable lzo) $(use_enable zlib) || die
|
| 22 |
}
|
| 23 |
|
| 24 |
src_install() {
|
| 25 |
emake DESTDIR="${D}" install || die
|
| 26 |
dodir /etc/tinc
|
| 27 |
dodoc AUTHORS NEWS README THANKS
|
| 28 |
doinitd "${FILESDIR}"/tincd{,.lo}
|
| 29 |
doconfd "${FILESDIR}"/tinc.networks
|
| 30 |
newconfd "${FILESDIR}"/tincd.conf tincd
|
| 31 |
}
|
| 32 |
|
| 33 |
pkg_postinst() {
|
| 34 |
elog "This package requires the tun/tap kernel device."
|
| 35 |
elog "Look at http://www.tinc-vpn.org/ for how to configure tinc"
|
| 36 |
}
|