# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.2.2.ebuild,v 1.3 2012/02/17 09:39:54 djc Exp $ EAPI=4 inherit eutils multilib toolchain-funcs flag-o-matic DESCRIPTION="Small RSA key management package, based on OpenSSL." HOMEPAGE="http://openvpn.net/" if [[ "${PV}" = 9999 ]]; then inherit git-2 autotools KEYWORDS="" EGIT_REPO_URI="git://github.com/OpenVPN/easy-rsa.git" else KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux" SRC_URI="http://swupdate.openvpn.net/community/releases/${P}.tar.gz" fi LICENSE="GPL-2" SLOT="0" IUSE="" DEPEND=">=dev-libs/openssl-0.9.6" RDEPEND="${DEPEND}" src_prepare() { epatch "${FILESDIR}/${PN}-2.0.0-pkcs11.patch" [ "${PV}" = 9999 ] && eautoreconf } src_configure() { econf --docdir="${EPREFIX}/usr/share/doc/${PF}" } src_install() { emake DESTDIR="${D}" install doenvd "${FILESDIR}/65easy-rsa" # config-protect easy-rsa }