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

Contents of /net-misc/vpnc/vpnc-0.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Nov 6 07:20:28 2007 UTC (12 years, 1 month ago) by opfer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
clean up
(Portage version: 2.1.3.16)

1 # Copyright 1999-2007 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.0.ebuild,v 1.3 2007/08/31 22:03:10 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="http://www.unix-ag.uni-kl.de/~massar/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-2 BSD"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
14 IUSE="hybrid-auth bindist"
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 net-dns/resolvconf-gentoo"
22
23 pkg_setup() {
24 if use hybrid-auth && use bindist; then
25 ewarn "Hybrid authentication will be disabled for this packages as you will"
26 ewarn "redistribute it in binary form. This is not allowed due to linking"
27 ewarn "of OpenSSL."
28 fi
29 local CONFIG_CHECK="TUN"
30 check_extra_config
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 newinitd "${FILESDIR}/vpnc-1.init" vpnc
46 newconfd "${FILESDIR}/vpnc.confd" vpnc
47 }
48
49 pkg_postinst() {
50 elog "You can generate a configuration file from the original Cisco profiles of your"
51 elog "connection by using /usr/bin/pcf2vpnc to convert the .pcf file"
52 elog "A guide is to be found in http://www.gentoo.org/doc/en/vpnc-howto.xml"
53 }

  ViewVC Help
Powered by ViewVC 1.1.20