/[gentoo-x86]/net-misc/vpnc/vpnc-0.5.2_pre20080611.ebuild
Gentoo

Contents of /net-misc/vpnc/vpnc-0.5.2_pre20080611.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 21 08:55:11 2008 UTC (11 years, 5 months ago) by opfer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
add a new snapshot with proper version tag, so we really know which revision it is: Fix some bugs and especially memory leaks
(Portage version: 2.1.4.4)

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

  ViewVC Help
Powered by ViewVC 1.1.20