/[gentoo-x86]/net-misc/vpnc/vpnc-0.5.3_p550.ebuild
Gentoo

Diff of /net-misc/vpnc/vpnc-0.5.3_p550.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.6
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/vpnc-0.5.3_p550.ebuild,v 1.1 2015/02/27 08:05:58 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/vpnc-0.5.3_p550.ebuild,v 1.6 2015/06/11 14:21:41 ago Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit eutils linux-info systemd toolchain-funcs 7inherit eutils linux-info systemd toolchain-funcs
8 8
10HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/" 10HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
11SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" 11SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
12 12
13LICENSE="GPL-2 BSD" 13LICENSE="GPL-2 BSD"
14SLOT="0" 14SLOT="0"
15KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" 15KEYWORDS="amd64 ~arm ppc ~ppc64 sparc x86"
16IUSE="resolvconf +gnutls bindist selinux" 16IUSE="resolvconf +gnutls selinux"
17
18REQUIRED_USE="bindist? ( gnutls )"
19 17
20DEPEND=" 18DEPEND="
21 dev-lang/perl 19 dev-lang/perl
22 dev-libs/libgcrypt:0= 20 dev-libs/libgcrypt:0=
23 >=sys-apps/iproute2-2.6.19.20061214[-minimal] 21 >=sys-apps/iproute2-2.6.19.20061214[-minimal]
24 gnutls? ( net-libs/gnutls:= ) 22 gnutls? ( net-libs/gnutls )
25 !gnutls? ( dev-libs/openssl )" 23 !gnutls? ( dev-libs/openssl:0= )"
26RDEPEND="${DEPEND} 24RDEPEND="${DEPEND}
27 resolvconf? ( net-dns/openresolv ) 25 resolvconf? ( net-dns/openresolv )
28 selinux? ( sec-policy/selinux-vpn ) 26 selinux? ( sec-policy/selinux-vpn )
29" 27"
30 28
31RESTRICT="!bindist? ( bindist )" 29RESTRICT="!gnutls? ( bindist )"
32 30
33CONFIG_CHECK="~TUN" 31CONFIG_CHECK="~TUN"
34 32
35src_prepare() { 33src_prepare() {
36 if ! use gnutls && ! use bindist; then 34 if use gnutls; then
35 elog "Will build with GnuTLS (default) instead of OpenSSL so you may even redistribute binaries."
36 elog "See the Makefile itself and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
37 else
37 sed -i -e '/^#OPENSSL_GPL_VIOLATION/s:#::g' "${S}"/Makefile || die 38 sed -i -e '/^#OPENSSL_GPL_VIOLATION/s:#::g' "${S}"/Makefile || die
38 ewarn "Building SSL support with OpenSSL instead of GnuTLS. This means that" 39 ewarn "Building SSL support with OpenSSL instead of GnuTLS. This means that"
39 ewarn "you are not allowed to re-distibute the binaries due to conflicts between BSD license and GPL," 40 ewarn "you are not allowed to re-distibute the binaries due to conflicts between BSD license and GPL,"
40 ewarn "see the vpnc Makefile and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318" 41 ewarn "see the vpnc Makefile and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
41 else
42 elog "Will build with GnuTLS (default) instead of OpenSSL so you may even redistribute binaries."
43 elog "See the Makefile itself and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
44 fi 42 fi
45 43
46 sed -e 's:test/cert0.pem::g' -i Makefile || die 44 sed -e 's:test/cert0.pem::g' -i Makefile || die
47 45
48 tc-export CC 46 tc-export CC

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20