/[gentoo-x86]/net-misc/openconnect/openconnect-3.11.ebuild
Gentoo

Contents of /net-misc/openconnect/openconnect-3.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Mar 26 12:03:32 2013 UTC (6 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 7194459F)

1 dagger 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/openconnect-3.11.ebuild,v 1.1 2011/08/16 09:15:47 dagger Exp $
4 dagger 1.1
5     EAPI=4
6    
7     inherit eutils linux-info
8    
9     DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
10     HOMEPAGE="http://www.infradead.org/openconnect.html"
11     SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz
12     http://dev.gentoo.org/~dagger/files/openconnect-script"
13    
14     LICENSE="LGPL-2.1"
15     SLOT="0"
16     KEYWORDS="~amd64 ~x86"
17     IUSE="static-libs"
18    
19     DEPEND="dev-libs/openssl
20     dev-libs/libxml2
21     net-libs/libproxy"
22    
23     RDEPEND="${DEPEND}
24     sys-apps/iproute2"
25    
26     tun_tap_check() {
27     ebegin "Checking for TUN/TAP support"
28     if { ! linux_chkconfig_present TUN; }; then
29     eerror "Please enable TUN/TAP support in your kernel config, found at:"
30     eerror
31     eerror " Device Drivers --->"
32     eerror " [*] Network device support --->"
33     eerror " <*> Universal TUN/TAP device driver support"
34     eerror
35     eerror "and recompile your kernel ..."
36     die "no CONFIG_TUN support detected!"
37     fi
38     eend $?
39     }
40    
41     pkg_setup() {
42     if use kernel_linux; then
43     get_version
44     if linux_config_exists; then
45     tun_tap_check
46     else
47     ewarn "Was unable to determine your kernel .config"
48     ewarn "Please note that OpenConnect requires CONFIG_TUN to be set in your kernel .config, Without it, it will not work correctly."
49     ## We don't die here, so it's possible to compile this package without kernel sources available. Required for cross-compilation.
50     fi
51     fi
52     }
53    
54     src_configure() {
55     ECONF="$(use_enable static-libs static)"
56    
57     econf ${ECONF}
58     }
59    
60     src_install() {
61     emake DESTDIR="${D}" install || die "Faild to install"
62    
63     dodoc AUTHORS TODO
64     dohtml ${PN}.html
65     newinitd "${FILESDIR}"/openconnect.init.in openconnect
66     dodir "/etc/openconnect"
67     insinto "/etc/openconnect"
68     newconfd "${FILESDIR}"/openconnect.conf.in openconnect
69     exeinto "/etc/openconnect"
70     newexe "${DISTDIR}/"openconnect-script openconnect.sh
71    
72     # Remove useless .la files
73     find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
74     }

  ViewVC Help
Powered by ViewVC 1.1.20