diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2007-08-31 22:03:10 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2007-08-31 22:03:10 +0000 |
commit | 7e9c9aa50c307386177791f713a3ed9274785797 (patch) | |
tree | 251614ec7d97853c423283daa0b3b8b3d0e5f14d /net-misc | |
parent | adding USE flag hybrid-auth for net-misc/vpnc (diff) | |
download | gentoo-2-7e9c9aa50c307386177791f713a3ed9274785797.tar.gz gentoo-2-7e9c9aa50c307386177791f713a3ed9274785797.tar.bz2 gentoo-2-7e9c9aa50c307386177791f713a3ed9274785797.zip |
adding hybrid authentication support. As distribution of binaries with that feature are not allowed, don't enable it on USE=bindist
(Portage version: 2.1.2.12)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/vpnc/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/vpnc/vpnc-0.5.0.ebuild | 20 |
2 files changed, 22 insertions, 4 deletions
diff --git a/net-misc/vpnc/ChangeLog b/net-misc/vpnc/ChangeLog index 55db4c1ffb3e..323604e0cfbd 100644 --- a/net-misc/vpnc/ChangeLog +++ b/net-misc/vpnc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/vpnc # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/ChangeLog,v 1.47 2007/08/31 14:43:54 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/ChangeLog,v 1.48 2007/08/31 22:03:10 opfer Exp $ + + 31 Aug 2007; Christian Faulhammer <opfer@gentoo.org> vpnc-0.5.0.ebuild: + adding hybrid authentication support. As distribution of binaries with that + feature are not allowed, don't enable it on USE=bindist 31 Aug 2007; Christian Faulhammer <opfer@gentoo.org> vpnc-0.5.0.ebuild: no longer inherit eutils, add net-dns/resolvconf-gentoo to RDEPEND diff --git a/net-misc/vpnc/vpnc-0.5.0.ebuild b/net-misc/vpnc/vpnc-0.5.0.ebuild index 08a786d63852..4096163b4b16 100644 --- a/net-misc/vpnc/vpnc-0.5.0.ebuild +++ b/net-misc/vpnc/vpnc-0.5.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/vpnc-0.5.0.ebuild,v 1.2 2007/08/31 14:43:54 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/vpnc-0.5.0.ebuild,v 1.3 2007/08/31 22:03:10 opfer Exp $ inherit linux-info @@ -11,19 +11,33 @@ SRC_URI="http://www.unix-ag.uni-kl.de/~massar/${PN}/${P}.tar.gz" LICENSE="GPL-2 BSD" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="" +IUSE="hybrid-auth bindist" DEPEND=">=dev-libs/libgcrypt-1.1.91 - >=sys-apps/iproute2-2.6.19.20061214" + >=sys-apps/iproute2-2.6.19.20061214 + !bindist? ( hybrid-auth? ( dev-libs/openssl ) )" RDEPEND="${DEPEND} net-dns/resolvconf-gentoo" pkg_setup() { + if use hybrid-auth && use bindist; then + ewarn "Hybrid authentication will be disabled for this packages as you will" + ewarn "redistribute it in binary form. This is not allowed due to linking" + ewarn "of OpenSSL." + fi local CONFIG_CHECK="TUN" check_extra_config } +src_compile() { + # only allowed if not distributed in binary form! + if use hybrid-auth && ! use bindist; then + hybridauthopts="OPENSSL_GPL_VIOLATION=-DOPENSSL_GPL_VIOLATION OPENSSLLIBS=-lcrypto" + fi + emake ${hybridauthopts} || die "emake failed" +} + src_install() { emake PREFIX="/usr" DESTDIR="${D}" install || die "emake install failed" dodoc README TODO VERSION |