/[gentoo-x86]/net-misc/vpnc/vpnc-0.5.1-r1.ebuild
Gentoo

Contents of /net-misc/vpnc/vpnc-0.5.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Jan 8 08:36:29 2009 UTC (10 years, 11 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
clean up
(Portage version: 2.1.6.4/cvs/Linux 2.6.27-gentoo-r7 i686)

1 # Copyright 1999-2008 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.1-r1.ebuild,v 1.8 2008/11/22 09:53:59 opfer Exp $
4
5 DESCRIPTION="Free client for Cisco VPN routing software"
6 HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
7 SRC_URI="http://www.unix-ag.uni-kl.de/~massar/${PN}/${P}.tar.gz"
8
9 LICENSE="GPL-2 BSD"
10 SLOT="0"
11 KEYWORDS="amd64 ppc ppc64 ~sparc x86"
12 IUSE="hybrid-auth bindist resolvconf"
13
14 DEPEND=">=dev-libs/libgcrypt-1.1.91
15 >=sys-apps/iproute2-2.6.19.20061214
16 !bindist? ( hybrid-auth? ( dev-libs/openssl ) )"
17
18 RDEPEND="${DEPEND}
19 resolvconf? ( net-dns/openresolv )"
20
21 pkg_setup() {
22 if use hybrid-auth && use bindist; then
23 ewarn "Hybrid authentication will be disabled for this packages as you will"
24 ewarn "redistribute it in binary form. This is not allowed due to linking"
25 ewarn "of OpenSSL."
26 fi
27 }
28
29 src_compile() {
30 # is reported upstream and fixed in next version
31 sed -e "s:/usr/local:/usr:" -i vpnc-script
32 # only allowed if not distributed in binary form!
33 if use hybrid-auth && ! use bindist; then
34 hybridauthopts="OPENSSL_GPL_VIOLATION=-DOPENSSL_GPL_VIOLATION OPENSSLLIBS=-lcrypto"
35 fi
36 emake ${hybridauthopts} || die
37 }
38
39 src_install() {
40 emake PREFIX="/usr" DESTDIR="${D}" install || die
41 dodoc README TODO VERSION
42 keepdir /var/run/vpnc
43 keepdir /etc/vpnc/scripts.d
44 newinitd "${FILESDIR}/vpnc-2.init" vpnc
45 newconfd "${FILESDIR}/vpnc.confd" vpnc
46 # COPYING file resides here, should not be installed
47 rm -rf "${D}"/usr/share/doc/vpnc/
48 }
49
50 pkg_postinst() {
51 elog "You can generate a configuration file from the original Cisco profiles of your"
52 elog "connection by using /usr/bin/pcf2vpnc to convert the .pcf file"
53 elog "A guide is to be found in http://www.gentoo.org/doc/en/vpnc-howto.xml"
54 echo
55 elog "Don't forget to turn on TUN support in the kernel."
56 }

  ViewVC Help
Powered by ViewVC 1.1.20