summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <fauli@gentoo.org>2008-05-09 17:49:40 +0000
committerChristian Faulhammer <fauli@gentoo.org>2008-05-09 17:49:40 +0000
commitb01c142d5536c960ee785be830c62b2af774405e (patch)
treef9a0f8e83cf499b01ec75417dde5fccf7dfb9dc9 /net-misc
parentStable for HPPA too. (diff)
downloadhistorical-b01c142d5536c960ee785be830c62b2af774405e.tar.gz
historical-b01c142d5536c960ee785be830c62b2af774405e.tar.bz2
historical-b01c142d5536c960ee785be830c62b2af774405e.zip
version bump from repository as there seems to be no release planned
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/vpnc/ChangeLog8
-rw-r--r--net-misc/vpnc/vpnc-0.5.2_pre20080509.ebuild56
2 files changed, 63 insertions, 1 deletions
diff --git a/net-misc/vpnc/ChangeLog b/net-misc/vpnc/ChangeLog
index 7925d17062bf..d9d9ef046689 100644
--- a/net-misc/vpnc/ChangeLog
+++ b/net-misc/vpnc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/vpnc
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/ChangeLog,v 1.67 2008/04/04 06:32:53 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/ChangeLog,v 1.68 2008/05/09 17:49:40 opfer Exp $
+
+*vpnc-0.5.2_pre20080509 (09 May 2008)
+
+ 09 May 2008; Christian Faulhammer <opfer@gentoo.org>
+ +vpnc-0.5.2_pre20080509.ebuild:
+ version bump from repository as there seems to be no release planned
04 Apr 2008; Christian Faulhammer <opfer@gentoo.org> files/vpnc-2.init:
update init script so it fails on vpnc startup error, pointed out by Tiziano
diff --git a/net-misc/vpnc/vpnc-0.5.2_pre20080509.ebuild b/net-misc/vpnc/vpnc-0.5.2_pre20080509.ebuild
new file mode 100644
index 000000000000..9053d519e077
--- /dev/null
+++ b/net-misc/vpnc/vpnc-0.5.2_pre20080509.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/vpnc-0.5.2_pre20080509.ebuild,v 1.1 2008/05/09 17:49:40 opfer Exp $
+
+inherit linux-info
+
+DESCRIPTION="Free client for Cisco VPN routing software"
+HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="hybrid-auth bindist resolvconf"
+
+DEPEND=">=dev-libs/libgcrypt-1.1.91
+ >=sys-apps/iproute2-2.6.19.20061214
+ !bindist? ( hybrid-auth? ( dev-libs/openssl ) )"
+
+RDEPEND="${DEPEND}
+ resolvconf? ( ||
+ ( net-dns/resolvconf-gentoo net-dns/openresolv )
+ )"
+
+pkg_setup() {
+ if use hybrid-auth && use bindist; then
+ ewarn "Hybrid authentication will be disabled for this packages as you will"
+ ewarn "redistribute it in binary form. This is not allowed due to linking"
+ ewarn "of OpenSSL."
+ fi
+}
+
+src_compile() {
+ # only allowed if not distributed in binary form!
+ if use hybrid-auth && ! use bindist; then
+ hybridauthopts="OPENSSL_GPL_VIOLATION=-DOPENSSL_GPL_VIOLATION OPENSSLLIBS=-lcrypto"
+ fi
+ emake ${hybridauthopts} || die "emake failed"
+}
+
+src_install() {
+ emake PREFIX="/usr" DESTDIR="${D}" install || die "emake install failed"
+ dodoc README TODO VERSION
+ keepdir /var/run/vpnc
+ keepdir /etc/vpnc/scripts.d
+ newinitd "${FILESDIR}/vpnc-2.init" vpnc
+ newconfd "${FILESDIR}/vpnc.confd" vpnc
+}
+
+pkg_postinst() {
+ elog "You can generate a configuration file from the original Cisco profiles of your"
+ elog "connection by using /usr/bin/pcf2vpnc to convert the .pcf file"
+ elog "A guide is to be found in http://www.gentoo.org/doc/en/vpnc-howto.xml"
+ echo
+ elog "Don't forget to turn on TUN support in the kernel."
+}