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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Jun 14 19:51:21 2015 UTC (4 years, 8 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
arm stable, bug #549652

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="arm", signed Manifest commit with key 072AD062)

1 # Copyright 1999-2015 Gentoo Foundation
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.6 2015/06/11 14:21:41 ago Exp $
4
5 EAPI=5
6
7 inherit eutils linux-info systemd toolchain-funcs
8
9 DESCRIPTION="Free client for Cisco VPN routing software"
10 HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
11 SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
12
13 LICENSE="GPL-2 BSD"
14 SLOT="0"
15 KEYWORDS="amd64 arm ppc ~ppc64 sparc x86"
16 IUSE="resolvconf +gnutls selinux"
17
18 DEPEND="
19 dev-lang/perl
20 dev-libs/libgcrypt:0=
21 >=sys-apps/iproute2-2.6.19.20061214[-minimal]
22 gnutls? ( net-libs/gnutls )
23 !gnutls? ( dev-libs/openssl:0= )"
24 RDEPEND="${DEPEND}
25 resolvconf? ( net-dns/openresolv )
26 selinux? ( sec-policy/selinux-vpn )
27 "
28
29 RESTRICT="!gnutls? ( bindist )"
30
31 CONFIG_CHECK="~TUN"
32
33 src_prepare() {
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
38 sed -i -e '/^#OPENSSL_GPL_VIOLATION/s:#::g' "${S}"/Makefile || die
39 ewarn "Building SSL support with OpenSSL instead of GnuTLS. This means that"
40 ewarn "you are not allowed to re-distibute the binaries due to conflicts between BSD license and GPL,"
41 ewarn "see the vpnc Makefile and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
42 fi
43
44 sed -e 's:test/cert0.pem::g' -i Makefile || die
45
46 tc-export CC
47
48 sed \
49 -e 's:/var/run:/run:g' \
50 -i ChangeLog config.c TODO || die
51 }
52
53 src_install() {
54 emake PREFIX="/usr" DESTDIR="${D}" install
55 dodoc README TODO VERSION
56 keepdir /etc/vpnc/scripts.d
57 newinitd "${FILESDIR}/vpnc-3.init" vpnc
58 newconfd "${FILESDIR}/vpnc.confd" vpnc
59 sed -e "s:/usr/local:/usr:" -i "${ED}"/etc/vpnc/vpnc-script || die
60
61 systemd_dotmpfilesd "${FILESDIR}"/vpnc-tmpfiles.conf
62 systemd_newunit "${FILESDIR}"/vpnc.service vpnc@.service
63
64 # COPYING file resides here, should not be installed
65 rm -rf "${ED}"/usr/share/doc/vpnc/ || die
66 }
67
68 pkg_postinst() {
69 elog "You can generate a configuration file from the original Cisco profiles of your"
70 elog "connection by using /usr/bin/pcf2vpnc to convert the .pcf file"
71 elog "A guide is available at https://wiki.gentoo.org/wiki/Vpnc"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20