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.ori (-2 / +21 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 ssl"
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
	ssl? ( dev-libs/openssl )"
17
18
18
RDEPEND="${DEPEND}
19
RDEPEND="${DEPEND}
19
	resolvconf? ( net-dns/openresolv )"
20
	resolvconf? ( net-dns/openresolv )"
20
21
22
src_compile() {
23
	if use ssl && ! use gnutls; then
24
		sed -i -e 's/#OPENSSL_GPL_VIOLATION=yes/OPENSSL_GPL_VIOLATION=yes/' "${S}"/Makefile \
25
			|| die "Failed to enable openssl in Makefile"
26
		ewarn "Building with OpenSSL support instead of GnuTLS, this seems to mean that"
27
		ewarn "you might not be allowed to re-distibute the binaries due to OpenSSL license,"
28
		ewarn "more in the Makefile itself and at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
29
		ewarn "In vpnc-0.5.0 support for \"IKE Authmode hybrid\" was introduced but depended on OpenSSL"
30
		ewarn "Since vpnc-0.5.3_p449 \"IKE Authmode hybrid\" should also work under GnuTLS"
31
	else
32
		elog "Will build with GnuTLS (default) instead of OpenSSL so you may even redistribute"
33
		elog "binaries, more in the Makefile itself and at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
34
		elog "In vpnc-0.5.0 support for \"IKE Authmode hybrid\" was introduced but depended on OpenSSL"
35
		elog "Since vpnc-0.5.3_p449 \"IKE Authmode hybrid\" should also work under GnuTLS"
36
	fi
37
	emake PREFIX="/usr" DESTDIR="${D}" || die
38
}
39
21
src_install() {
40
src_install() {
22
	emake PREFIX="/usr" DESTDIR="${D}" install || die
41
	emake PREFIX="/usr" DESTDIR="${D}" install || die
23
	dodoc README TODO VERSION || die
42
	dodoc README TODO VERSION || die

Return to bug 336012