Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/openconnect: ChangeLog openconnect-5.02.ebuild
Date: Sat, 04 Jan 2014 01:36:35
Message-Id: 20140104013631.276C82004C@flycatcher.gentoo.org
1 hasufell 14/01/04 01:36:31
2
3 Modified: ChangeLog
4 Added: openconnect-5.02.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.23 net-misc/openconnect/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?rev=1.23&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?rev=1.23&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?r1=1.22&r2=1.23
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v
20 retrieving revision 1.22
21 retrieving revision 1.23
22 diff -u -r1.22 -r1.23
23 --- ChangeLog 29 Jun 2013 02:37:48 -0000 1.22
24 +++ ChangeLog 4 Jan 2014 01:36:30 -0000 1.23
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/openconnect
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v 1.22 2013/06/29 02:37:48 tetromino Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v 1.23 2014/01/04 01:36:30 hasufell Exp $
31 +
32 +*openconnect-5.02 (04 Jan 2014)
33 +
34 + 04 Jan 2014; Julian Ospald <hasufell@g.o> +openconnect-5.02.ebuild:
35 + version bump
36
37 29 Jun 2013; Alexandre Rostovtsev <tetromino@g.o>
38 openconnect-5.01.ebuild:
39
40
41
42 1.1 net-misc/openconnect/openconnect-5.02.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/openconnect-5.02.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/openconnect-5.02.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openconnect-5.02.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/openconnect-5.02.ebuild,v 1.1 2014/01/04 01:36:31 hasufell Exp $
52
53 EAPI="5"
54
55 PYTHON_COMPAT=( python2_{6,7} )
56 PYTHON_REQ_USE="xml"
57
58 inherit eutils linux-info python-any-r1
59
60 DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
61 HOMEPAGE="http://www.infradead.org/openconnect.html"
62 # New versions of openconnect-script can be found here:
63 # http://git.infradead.org/users/dwmw2/vpnc-scripts.git/history/HEAD:/vpnc-script
64 SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz
65 http://dev.gentoo.org/~hasufell/distfiles/openconnect-script-20130310115608.tar.xz"
66
67 LICENSE="LGPL-2.1 GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc64 ~x86"
70 IUSE="doc +gnutls libproxy nls static-libs"
71 ILINGUAS="ar as ast bg bg_BG bn bn_IN bs ca ca@valencia cs da de el en_GB en_US eo es es_CR
72 es_MX et eu fa fi fr gd gl gu he hi hi_IN hu id it ja km kn ko ku lo lt lv ml mr
73 ms nb nl nn no or pa pl pt pt_BR pt_PT ro ru sk sl sq sr sr@latin sv ta te
74 tg th tl tr ug uk ur_PK vi vi_VN wa zh_CN zh_HK zh_TW"
75 for lang in $ILINGUAS; do
76 IUSE="${IUSE} linguas_${lang}"
77 done
78
79 DEPEND="dev-libs/libxml2
80 sys-libs/zlib
81 !gnutls? (
82 || (
83 >=dev-libs/openssl-1.0.1f:0[static-libs?]
84 (
85 >=dev-libs/openssl-1.0.1:0[static-libs?]
86 <dev-libs/openssl-1.0.1d:0[static-libs?]
87 )
88 <dev-libs/openssl-1.0.0k:0[static-libs?]
89 )
90 )
91 gnutls? (
92 || (
93 ( >=net-libs/gnutls-3[static-libs?] dev-libs/nettle )
94 ( =net-libs/gnutls-2.12*[nettle,static-libs?] dev-libs/nettle )
95 ( =net-libs/gnutls-2.12*[-nettle,static-libs?] dev-libs/libgcrypt[static-libs?] )
96 )
97 app-misc/ca-certificates
98 )
99 libproxy? ( net-libs/libproxy )
100 nls? ( virtual/libintl )"
101 RDEPEND="${DEPEND}
102 sys-apps/iproute2"
103 DEPEND="${DEPEND}
104 virtual/pkgconfig
105 doc? ( ${PYTHON_DEPS} )
106 nls? ( sys-devel/gettext )"
107
108 tun_tap_check() {
109 ebegin "Checking for TUN/TAP support"
110 if { ! linux_chkconfig_present TUN; }; then
111 eerror "Please enable TUN/TAP support in your kernel config, found at:"
112 eerror
113 eerror " Device Drivers --->"
114 eerror " [*] Network device support --->"
115 eerror " <*> Universal TUN/TAP device driver support"
116 eerror
117 eerror "and recompile your kernel ..."
118 die "no CONFIG_TUN support detected!"
119 fi
120 eend $?
121 }
122
123 pkg_setup() {
124 if use doc; then
125 python-any-r1_pkg_setup
126 fi
127
128 if use kernel_linux; then
129 get_version
130 if linux_config_exists; then
131 tun_tap_check
132 else
133 ewarn "Was unable to determine your kernel .config"
134 ewarn "Please note that OpenConnect requires CONFIG_TUN to be set in your"
135 ewarn "kernel .config, Without it, it will not work correctly."
136 # We don't die here, so it's possible to compile this package without
137 # kernel sources available. Required for cross-compilation.
138 fi
139 fi
140 }
141
142 src_configure() {
143 strip-linguas $ILINGUAS
144 echo ${LINGUAS} > po/LINGUAS
145 # Override vpn-script test since the build system violates the sandbox and
146 # needs the path set to the real default path after it's installed
147 sed -e "s#-x \"\$with_vpnc_script\"#-n \"${WORKDIR}/openconnect-script\"#" \
148 -i configure || die
149 if ! use doc; then
150 # If the python cannot be found, the docs will not build
151 sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die
152 fi
153
154 # stoken and liboath not in portage
155 econf \
156 --with-vpnc-script=/etc/openconnect/openconnect.sh \
157 $(use_enable static-libs static) \
158 $(use_enable nls ) \
159 $(use_with !gnutls openssl) \
160 $(use_with gnutls ) \
161 $(use_with libproxy) \
162 --without-stoken \
163 --without-liboath
164 }
165
166 src_install() {
167 emake DESTDIR="${D}" install
168
169 dodoc AUTHORS TODO
170 newinitd "${FILESDIR}"/openconnect.init.in-r1 openconnect
171 dodir /etc/openconnect
172 insinto /etc/openconnect
173 newconfd "${FILESDIR}"/openconnect.conf.in openconnect
174 exeinto /etc/openconnect
175 newexe "${WORKDIR}"/openconnect-script openconnect.sh
176 insinto /etc/logrotate.d
177 newins "${FILESDIR}"/openconnect.logrotate openconnect
178 keepdir /var/log/openconnect
179
180 # Remove useless .la files
181 find "${D}" -name '*.la' -delete || die "la file removal failed"
182 }
183
184 pkg_postinst() {
185 elog "The init script for openconnect has changed and now supports multiple vpn tunnels."
186 elog
187 elog "You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d"
188 elog "instead of calling it directly:"
189 elog
190 elog "ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0"
191 elog
192 elog "You can then start the vpn tunnel like this:"
193 elog
194 elog "/etc/init.d/openconnect.vpn0 start"
195 elog
196 elog "If you would like to run preup, postup, predown, and/or postdown scripts,"
197 elog "You need to create a directory in /etc/openconnect with the name of the vpn:"
198 elog
199 elog "mkdir /etc/openconnect/vpn0"
200 elog
201 elog "Then add executable shell files:"
202 elog
203 elog "mkdir /etc/openconnect/vpn0"
204 elog "cd /etc/openconnect/vpn0"
205 elog "echo '#!/bin/sh' > preup.sh"
206 elog "cp preup.sh predown.sh"
207 elog "cp preup.sh postup.sh"
208 elog "cp preup.sh postdown.sh"
209 elog "chmod 755 /etc/openconnect/vpn0/*"
210 }