Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 336012 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-misc/vpnc/vpnc-0.5.3_p449-r1.ebuild (-2 / +24 lines)
Lines 9-23 Link Here
9
LICENSE="GPL-2 BSD"
9
LICENSE="GPL-2 BSD"
10
SLOT="0"
10
SLOT="0"
11
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
11
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
12
IUSE="resolvconf"
12
IUSE="resolvconf gnutls bindist"
13
13
14
DEPEND=">=dev-libs/libgcrypt-1.1.91
14
DEPEND=">=dev-libs/libgcrypt-1.1.91
15
	>=sys-apps/iproute2-2.6.19.20061214
15
	>=sys-apps/iproute2-2.6.19.20061214
16
	net-libs/gnutls"
16
	gnutls? ( net-libs/gnutls )
17
    bindist? ( net-libs/gnutls )
18
	!gnutls? (
19
		!bindist? ( dev-libs/openssl )
20
	)"
17
21
18
RDEPEND="${DEPEND}
22
RDEPEND="${DEPEND}
19
	resolvconf? ( net-dns/openresolv )"
23
	resolvconf? ( net-dns/openresolv )"
20
24
25
src_compile() {
26
	if ! use gnutls && ! use bindist; then
27
		sed -i -e 's/#OPENSSL_GPL_VIOLATION=yes/OPENSSL_GPL_VIOLATION=yes/' "${S}"/Makefile \
28
			|| die "Failed to enable openssl in Makefile"
29
		ewarn "Building with OpenSSL support now instead of GnuTLS. This seems to mean that"
30
		ewarn "you might not be allowed to re-distibute the binaries due to OpenSSL license,"
31
		ewarn "more in the Makefile itself and at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
32
		ewarn "In vpnc-0.5.0 support for \"IKE Authmode hybrid\" was introduced but required OpenSSL."
33
		ewarn "Since vpnc-0.5.3_p449 \"IKE Authmode hybrid\" should also work with GnuTLS."
34
	else
35
		elog "Will build with GnuTLS (default) instead of OpenSSL so you may even redistribute"
36
		elog "binaries, more in the Makefile itself and at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
37
		elog "In vpnc-0.5.0 support for \"IKE Authmode hybrid\" was introduced but required OpenSSL."
38
		elog "Since vpnc-0.5.3_p449 \"IKE Authmode hybrid\" should also work with GnuTLS"
39
	fi
40
	emake PREFIX="/usr" DESTDIR="${D}" || die
41
}
42
21
src_install() {
43
src_install() {
22
	emake PREFIX="/usr" DESTDIR="${D}" install || die
44
	emake PREFIX="/usr" DESTDIR="${D}" install || die
23
	dodoc README TODO VERSION || die
45
	dodoc README TODO VERSION || die

Return to bug 336012