Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/openconnect/, net-vpn/openconnect/files/
Date: Mon, 22 Oct 2018 00:38:09
Message-Id: 1540168503.3d0bde2643269f2f2a1ee21f0037707fa7f1a200.floppym@gentoo
1 commit: 3d0bde2643269f2f2a1ee21f0037707fa7f1a200
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 22 00:32:38 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 22 00:35:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d0bde26
7
8 net-vpn/openconnect: remove old
9
10 Package-Manager: Portage-2.3.51_p2, Repoman-2.3.11_p27
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 net-vpn/openconnect/Manifest | 4 -
14 .../files/openconnect-7.07-libressl.patch | 77 ----------
15 .../openconnect-7.07-mimic-pulse-client.patch | 38 -----
16 net-vpn/openconnect/files/openconnect.init.in | 122 ---------------
17 net-vpn/openconnect/openconnect-7.06-r1.ebuild | 135 -----------------
18 net-vpn/openconnect/openconnect-7.06-r4.ebuild | 138 -----------------
19 .../openconnect/openconnect-7.06_p20160614.ebuild | 156 -------------------
20 net-vpn/openconnect/openconnect-7.07-r1.ebuild | 157 -------------------
21 net-vpn/openconnect/openconnect-7.07-r2.ebuild | 163 --------------------
22 net-vpn/openconnect/openconnect-7.07-r3.ebuild | 167 ---------------------
23 net-vpn/openconnect/openconnect-7.08.ebuild | 162 --------------------
24 11 files changed, 1319 deletions(-)
25
26 diff --git a/net-vpn/openconnect/Manifest b/net-vpn/openconnect/Manifest
27 index f198407b921..7023973081f 100644
28 --- a/net-vpn/openconnect/Manifest
29 +++ b/net-vpn/openconnect/Manifest
30 @@ -1,7 +1,3 @@
31 -DIST openconnect-7.06.tar.gz 1343870 BLAKE2B db064490b40ab3e63560893aa8864f19386d8eba0c1d8072a16c36f678bb7734c9ead6c13b330c3b7319e46d6d3ceb8bec3899d0856838cfeff9979e293a005e SHA512 d1af9efe4ac1f6671dc6b92db0df981e8cae3f2f50b8b4c35a112b42a76517b7c8ea9fd5da93352445dd61da3012bf34fdbcc3add9d8727cbaad7d311e516108
32 -DIST openconnect-7.06_p20160614.tar.gz 2332148 BLAKE2B f6a46f58b52b65659f90d3ddb13f0e51fb96c96089358423c99e1dc0699f0501a1c4f1ba4b22b061e226f2046083dc38c06b4b879877905bb256d6dc978173a2 SHA512 7832251180e9c738c84ee89d0ad35144318f90cc9ede48e0cdb73747e64b2a3fbf4ad8175d0d755cb5629fbfc37c76a131a1b54a03c4249727102b572cbdfd66
33 -DIST openconnect-7.07.tar.gz 1557283 BLAKE2B 15b5470fdb1a497d9b238b4eee5ba9a8cb1cbe05ff42d4782b16305842544954e103671bf825e334ef2333861509b00aa7c54c10dc799072a0af7469f5f5fd49 SHA512 fcce82419a058f5210f8b6167a10e52eb572c93cda3ec941bf11e5bfcf8395ce2f816cba4f5f9a02920eb023fe7dfbd8192d5664ce5bab29bf88506b67ec34e3
34 DIST openconnect-7.08.tar.gz 1686133 BLAKE2B 265c43982b475ef1e49d7bf16e782c82b9ac48fbfbe61b5b8fe250505391edea8e5050e8cc3dc9b3cadb349f3842e13c05e431172e8c7488d9052ad15c93e87e SHA512 22f9b0bd4bd17e2ab91ff42b2464c89abba035fe705c037ba4d1042ace460c8738e20481783a1edc3b7dd6503fe9fcc7fdd188552811fb1525310e25a4c2f400
35 -DIST vpnc-scripts-20140806.tar.gz 20070 BLAKE2B 8a53bb0794a6eb2c121fd3a9e7068e998d9386a9a8ee4f0670baca0ef11411f351c8beb7791fd9e31cef63734a1b3ce9a1c426ba2792c75b002c718c124f1ebd SHA512 bfa230d6eb2db0696a23228cef6e742dcf5e609c25de725c23e2c7bee96d00045ea656d6c7025cdf7785f70baeb8a8d79af6aec93d7285bcb3c029dc744e5380
36 DIST vpnc-scripts-20160829.tar.gz 20297 BLAKE2B 42d107669c938e020f10ebd332ea5a27f93c3ec461c4b03c0885b96df1330d7b071d78ec61be08d53425b779edbb2b98222cc9313f89905c68d8ae7e44efc283 SHA512 0edd0e5184ac4a705f213a87fa8afa2e2cd54c9bd1aa01955a3a5107c42da8eae7b639896daceecc556a63b0663ee47e25fc21e77f0f74774330d546584fd2c1
37 DIST vpnc-scripts-20180227.tar.gz 21241 BLAKE2B 2ba4c76121ba9c5d307233d6f8c91db03c8da4882b8f6dfeed335f7fcc30438df8fe0657a1177e7e551566b597e195cf41bb6e27e13b757a0c931e8574de9a5e SHA512 9a508426e9307213078ce57b59d25168647fa5d2e823b1085e93401259b0a52269e948c8292e4055babf3e8b3c087a23475b5caa2a43c11feb2df8b0d8843972
38
39 diff --git a/net-vpn/openconnect/files/openconnect-7.07-libressl.patch b/net-vpn/openconnect/files/openconnect-7.07-libressl.patch
40 deleted file mode 100644
41 index 4f9d34bceee..00000000000
42 --- a/net-vpn/openconnect/files/openconnect-7.07-libressl.patch
43 +++ /dev/null
44 @@ -1,77 +0,0 @@
45 -From d4a8afc2e8693628f2de554e717458e08bcc2fcf Mon Sep 17 00:00:00 2001
46 -From: Aric Belsito <lluixhi@×××××.com>
47 -Date: Thu, 3 Nov 2016 11:37:23 -0700
48 -Subject: [PATCH] Fix LibreSSL Build.
49 -
50 -From Voidlinux:
51 -
52 -From d51ab5615e11af4a2c160b2b8240e5d9f3c15422 Mon Sep 17 00:00:00 2001
53 -From: Duncaen <duncaen@×××××××××.eu>
54 -Date: Wed, 13 Jul 2016 15:21:16 +0200
55 -Subject: [PATCH] openconnect: update to 7.07.
56 ----
57 - openssl-esp.c | 4 ++--
58 - openssl.c | 8 ++++----
59 - 2 files changed, 6 insertions(+), 6 deletions(-)
60 -
61 -diff --git a/openssl-esp.c b/openssl-esp.c
62 -index 2c1aa49..bd4dce3 100644
63 ---- a/openssl-esp.c
64 -+++ b/openssl-esp.c
65 -@@ -27,7 +27,7 @@
66 - #include <openssl/evp.h>
67 - #include <openssl/rand.h>
68 -
69 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
70 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
71 -
72 - #define EVP_CIPHER_CTX_free(c) do { \
73 - EVP_CIPHER_CTX_cleanup(c); \
74 -@@ -85,7 +85,7 @@ static int init_esp_ciphers(struct openconnect_info *vpninfo, struct esp *esp,
75 - }
76 - EVP_CIPHER_CTX_set_padding(esp->cipher, 0);
77 -
78 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
79 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
80 - esp->hmac = malloc(sizeof(*esp->hmac));
81 - esp->pkt_hmac = malloc(sizeof(*esp->pkt_hmac));
82 - if (!esp->hmac || &esp->pkt_hmac) {
83 -diff --git a/openssl.c b/openssl.c
84 -index 785fd2a..6007cef 100644
85 ---- a/openssl.c
86 -+++ b/openssl.c
87 -@@ -36,11 +36,11 @@
88 - #include <openssl/ui.h>
89 - #include <openssl/rsa.h>
90 -
91 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
92 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
93 - #define X509_up_ref(x) CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_X509)
94 - #endif
95 -
96 --#if OPENSSL_VERSION_NUMBER < 0x10100000L
97 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
98 - #define EVP_MD_CTX_new EVP_MD_CTX_create
99 - #define EVP_MD_CTX_free EVP_MD_CTX_destroy
100 - #define X509_STORE_CTX_get0_chain(ctx) ((ctx)->chain)
101 -@@ -991,7 +991,7 @@ static int set_peer_cert_hash(struct openconnect_info *vpninfo)
102 - return 0;
103 - }
104 -
105 --#if OPENSSL_VERSION_NUMBER < 0x10002000L
106 -+#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
107 - static int match_hostname_elem(const char *hostname, int helem_len,
108 - const char *match, int melem_len)
109 - {
110 -@@ -1653,7 +1653,7 @@ int openconnect_open_https(struct openconnect_info *vpninfo)
111 - * 4fcdd66fff5fea0cfa1055c6680a76a4303f28a2
112 - * cd6bd5ffda616822b52104fee0c4c7d623fd4f53
113 - */
114 --#if OPENSSL_VERSION_NUMBER >= 0x10001070
115 -+#if OPENSSL_VERSION_NUMBER >= 0x10001070 || defined(LIBRESSL_VERSION_NUMBER)
116 - if (string_is_hostname(vpninfo->hostname))
117 - SSL_set_tlsext_host_name(https_ssl, vpninfo->hostname);
118 - #endif
119 ---
120 -2.10.2
121 -
122
123 diff --git a/net-vpn/openconnect/files/openconnect-7.07-mimic-pulse-client.patch b/net-vpn/openconnect/files/openconnect-7.07-mimic-pulse-client.patch
124 deleted file mode 100644
125 index 5cfeca6ec52..00000000000
126 --- a/net-vpn/openconnect/files/openconnect-7.07-mimic-pulse-client.patch
127 +++ /dev/null
128 @@ -1,38 +0,0 @@
129 -From 4ce9c9241f5707917e87e93a055f757cea5fb84d Mon Sep 17 00:00:00 2001
130 -From: Jon DeVree <nuxi@×××××××.org>
131 -Date: Mon, 19 Sep 2016 21:00:18 -0400
132 -Subject: [PATCH] Add Content-Length header to mimic official pulse client
133 -
134 -The official pulse client sends in a fixed "Content-Length: 256" header
135 -with these two HTTP requests. Some versions of the VPN server will
136 -reject requests with an HTTP 400 error if they do not have this header.
137 -
138 -Signed-off-by: Jon DeVree <nuxi@×××××××.org>
139 -Signed-off-by: David Woodhouse <David.Woodhouse@×××××.com>
140 ----
141 - oncp.c | 2 ++
142 - 1 file changed, 2 insertions(+)
143 -
144 -diff --git a/oncp.c b/oncp.c
145 -index cc9a223..2bf1571 100644
146 ---- a/oncp.c
147 -+++ b/oncp.c
148 -@@ -562,6 +562,7 @@ int oncp_connect(struct openconnect_info *vpninfo)
149 -
150 - buf_append(reqbuf, "POST /dana/js?prot=1&svc=1 HTTP/1.1\r\n");
151 - oncp_common_headers(vpninfo, reqbuf);
152 -+ buf_append(reqbuf, "Content-Length: 256\r\n");
153 - buf_append(reqbuf, "\r\n");
154 -
155 - if (buf_error(reqbuf)) {
156 -@@ -606,6 +607,7 @@ int oncp_connect(struct openconnect_info *vpninfo)
157 - buf_truncate(reqbuf);
158 - buf_append(reqbuf, "POST /dana/js?prot=1&svc=4 HTTP/1.1\r\n");
159 - oncp_common_headers(vpninfo, reqbuf);
160 -+ buf_append(reqbuf, "Content-Length: 256\r\n");
161 - buf_append(reqbuf, "\r\n");
162 -
163 - if (buf_error(reqbuf)) {
164 ---
165 -2.7.3
166 -
167
168 diff --git a/net-vpn/openconnect/files/openconnect.init.in b/net-vpn/openconnect/files/openconnect.init.in
169 deleted file mode 100644
170 index c4497956d8a..00000000000
171 --- a/net-vpn/openconnect/files/openconnect.init.in
172 +++ /dev/null
173 @@ -1,122 +0,0 @@
174 -#!/sbin/openrc-run
175 -# Copyright 1999-2012 Gentoo Foundation
176 -# Distributed under the terms of the GNU General Public License v2
177 -
178 -VPN="${RC_SVCNAME#*.}"
179 -VPNLOG="/var/log/openconnect/${VPN}"
180 -VPNLOGFILE="${VPNLOG}/openconnect.log"
181 -VPNERRFILE="${VPNLOG}/openconnect.err"
182 -VPNPID="/run/openconnect/${VPN}.pid"
183 -VPNDIR="/etc/openconnect/${VPN}"
184 -PREUPSCRIPT="${VPNDIR}/preup.sh"
185 -PREDOWNSCRIPT="${VPNDIR}/predown.sh"
186 -POSTUPSCRIPT="${VPNDIR}/postup.sh"
187 -POSTDOWNSCRIPT="${VPNDIR}/postdown.sh"
188 -SERVER="server_${VPN}"
189 -PASSWORD="password_${VPN}"
190 -VPNOPTS="vpnopts_${VPN}"
191 -
192 -depend() {
193 - before netmount
194 -}
195 -
196 -checkconfig() {
197 - if [ $VPN = "openconnect" ]; then
198 - eerror "You cannot call openconnect directly. You must create a symbolic link to it with the vpn name:"
199 - echo
200 - eerror "ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0"
201 - echo
202 - eerror "And then call it instead:"
203 - echo
204 - eerror "/etc/init.d/openconnect.vpn0 start"
205 - return 1
206 - fi
207 -}
208 -
209 -checktuntap() {
210 - if [ $(uname -s) = "Linux" ] ; then
211 - if [ ! -e /dev/net/tun ]; then
212 - if ! modprobe tun ; then
213 - eerror "TUN/TAP support is not available in this kernel"
214 - return 1
215 - fi
216 - fi
217 - if [ -h /dev/net/tun ] && [ -c /dev/misc/net/tun ]; then
218 - ebegin "Detected broken /dev/net/tun symlink, fixing..."
219 - rm -f /dev/net/tun
220 - ln -s /dev/misc/net/tun /dev/net/tun
221 - eend $?
222 - fi
223 - fi
224 -}
225 -
226 -start() {
227 - ebegin "Starting OpenConnect: ${VPN}"
228 -
229 - checkconfig || return 1
230 -
231 - checktuntap || return 1
232 -
233 - if [ "${!SERVER}" == "vpn.server.tld" ]; then
234 - eend 1 "${VPN} not configured"
235 - return 1
236 - fi
237 -
238 - if [ ! -e "${VPNLOG}" ]; then
239 - mkdir -p "${VPNLOG}"
240 - fi
241 -
242 - local piddir="${VPNPID%/*}"
243 - if [ ! -d "$piddir" ] ; then
244 - mkdir -p "$piddir"
245 - if [ $? -ne 0 ]; then
246 - eerror "Directory $piddir for pidfile does not exist and cannot be created"
247 - return 1
248 - fi
249 - fi
250 -
251 - if [ -x "${PREUPSCRIPT}" ] ; then
252 - "${PREUPSCRIPT}"
253 - fi
254 -
255 - start-stop-daemon --start --make-pidfile --pidfile "${VPNPID}" --stderr "${VPNERRFILE}" --stdout "${VPNLOGFILE}" --background \
256 - --exec /usr/sbin/openconnect \
257 - -- --pid-file="${VPNPID}" ${!VPNOPTS} ${!SERVER} <<< ${!PASSWORD}
258 -
259 - local retval=$?
260 -
261 - if [ ! ${retval} -eq 0 ]; then
262 - eend ${retval}
263 - return ${retval}
264 - fi
265 -
266 - if [ -x "${POSTUPSCRIPT}" ] ; then
267 - "${POSTUPSCRIPT}"
268 - fi
269 -
270 - eend $?
271 -}
272 -
273 -stop() {
274 - ebegin "Stopping OpenConnect: ${VPN}"
275 -
276 - checkconfig || return 1
277 -
278 - if [ -x "${PREDOWNSCRIPT}" ] ; then
279 - "${PREDOWNSCRIPT}"
280 - fi
281 -
282 - start-stop-daemon --pidfile "${VPNPID}" --stop /usr/sbin/openconnect
283 - local retval=$?
284 -
285 - if [ ! ${retval} -eq 0 ]; then
286 - eend ${retval}
287 - return ${retval}
288 - fi
289 -
290 -
291 - if [ -x "${POSTDOWNSCRIPT}" ] ; then
292 - "${POSTDOWNSCRIPT}"
293 - fi
294 - eend $?
295 -}
296
297 diff --git a/net-vpn/openconnect/openconnect-7.06-r1.ebuild b/net-vpn/openconnect/openconnect-7.06-r1.ebuild
298 deleted file mode 100644
299 index 86c9caecd8f..00000000000
300 --- a/net-vpn/openconnect/openconnect-7.06-r1.ebuild
301 +++ /dev/null
302 @@ -1,135 +0,0 @@
303 -# Copyright 1999-2018 Gentoo Foundation
304 -# Distributed under the terms of the GNU General Public License v2
305 -
306 -EAPI="5"
307 -
308 -PYTHON_COMPAT=( python2_7 )
309 -PYTHON_REQ_USE="xml"
310 -
311 -inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo
312 -
313 -DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
314 -HOMEPAGE="http://www.infradead.org/openconnect.html"
315 -VPNC_VER=20140806
316 -SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz
317 - ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
318 -
319 -LICENSE="LGPL-2.1 GPL-2"
320 -SLOT="0/5"
321 -KEYWORDS="amd64 arm ~arm64 ppc64 x86"
322 -IUSE="doc +gnutls gssapi java libproxy nls smartcard static-libs"
323 -
324 -DEPEND="dev-libs/libxml2
325 - sys-libs/zlib
326 - !gnutls? (
327 - >=dev-libs/openssl-1.0.1h:0[static-libs?]
328 - )
329 - gnutls? (
330 - >=net-libs/gnutls-3[static-libs?] dev-libs/nettle
331 - app-misc/ca-certificates
332 - )
333 - gssapi? ( virtual/krb5 )
334 - libproxy? ( net-libs/libproxy )
335 - nls? ( virtual/libintl )
336 - smartcard? ( sys-apps/pcsc-lite:0= )"
337 -RDEPEND="${DEPEND}
338 - sys-apps/iproute2
339 - !<sys-apps/openrc-0.13"
340 -DEPEND="${DEPEND}
341 - virtual/pkgconfig
342 - doc? ( ${PYTHON_DEPS} sys-apps/groff )
343 - java? ( >=virtual/jdk-1.6 )
344 - nls? ( sys-devel/gettext )"
345 -
346 -CONFIG_CHECK="~TUN"
347 -
348 -pkg_pretend() {
349 - check_extra_config
350 -}
351 -
352 -pkg_setup() {
353 - java-pkg-opt-2_pkg_setup
354 -
355 - if use doc; then
356 - python-any-r1_pkg_setup
357 - fi
358 -}
359 -
360 -src_configure() {
361 - local ilinguas="ar cs de el en_GB en_US es eu fi fr gl id lt nl pa pl pt pt_BR sk sl tg ug uk zh_CN zh_TW"
362 - strip-linguas ${ilinguas}
363 - echo ${LINGUAS} > po/LINGUAS
364 - if ! use doc; then
365 - # If the python cannot be found, the docs will not build
366 - sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die
367 - fi
368 -
369 - # stoken and liboath not in portage
370 - econf \
371 - --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" \
372 - $(use_enable static-libs static) \
373 - $(use_enable nls ) \
374 - $(use_with !gnutls openssl) \
375 - $(use_with gnutls ) \
376 - $(use_with libproxy) \
377 - --without-stoken \
378 - $(use_with gssapi) \
379 - $(use_with smartcard libpcsclite) \
380 - $(use_with java)
381 -}
382 -
383 -DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels.
384 -
385 -You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
386 -instead of calling it directly:
387 -
388 -ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
389 -
390 -You can then start the vpn tunnel like this:
391 -
392 -/etc/init.d/openconnect.vpn0 start
393 -
394 -If you would like to run preup, postup, predown, and/or postdown scripts,
395 -You need to create a directory in /etc/openconnect with the name of the vpn:
396 -
397 -mkdir /etc/openconnect/vpn0
398 -
399 -Then add executable shell files:
400 -
401 -mkdir /etc/openconnect/vpn0
402 -cd /etc/openconnect/vpn0
403 -echo '#!/bin/sh' > preup.sh
404 -cp preup.sh predown.sh
405 -cp preup.sh postup.sh
406 -cp preup.sh postdown.sh
407 -chmod 755 /etc/openconnect/vpn0/*
408 -"
409 -
410 -src_install() {
411 - emake DESTDIR="${D}" install
412 -
413 - dodoc AUTHORS TODO
414 - newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
415 - dodir /etc/openconnect
416 - insinto /etc/openconnect
417 - newconfd "${FILESDIR}"/openconnect.conf.in openconnect
418 - exeinto /etc/openconnect
419 - newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
420 - insinto /etc/logrotate.d
421 - newins "${FILESDIR}"/openconnect.logrotate openconnect
422 - keepdir /var/log/openconnect
423 -
424 - # Remove useless .la files
425 - prune_libtool_files --all
426 -
427 - readme.gentoo_create_doc
428 -}
429 -
430 -pkg_postinst() {
431 - readme.gentoo_print_elog
432 - if [[ -z ${REPLACING_VERSIONS} ]]; then
433 - elog
434 - elog "You may want to consider installing the following optional packages."
435 - optfeature "resolvconf support" net-dns/openresolv
436 - fi
437 -}
438
439 diff --git a/net-vpn/openconnect/openconnect-7.06-r4.ebuild b/net-vpn/openconnect/openconnect-7.06-r4.ebuild
440 deleted file mode 100644
441 index c56cb72b396..00000000000
442 --- a/net-vpn/openconnect/openconnect-7.06-r4.ebuild
443 +++ /dev/null
444 @@ -1,138 +0,0 @@
445 -# Copyright 1999-2018 Gentoo Foundation
446 -# Distributed under the terms of the GNU General Public License v2
447 -
448 -EAPI="5"
449 -
450 -PYTHON_COMPAT=( python2_7 )
451 -PYTHON_REQ_USE="xml"
452 -
453 -inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo
454 -
455 -DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
456 -HOMEPAGE="http://www.infradead.org/openconnect.html"
457 -VPNC_VER=20140806
458 -SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz
459 - ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
460 -
461 -LICENSE="LGPL-2.1 GPL-2"
462 -SLOT="0/5"
463 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
464 -IUSE="doc +gnutls gssapi java libproxy libressl nls smartcard static-libs stoken"
465 -
466 -DEPEND="dev-libs/libxml2
467 - sys-libs/zlib
468 - !gnutls? (
469 - !libressl? ( >=dev-libs/openssl-1.0.1h:0=[static-libs?] )
470 - libressl? ( dev-libs/libressl:0=[static-libs?] )
471 - )
472 - gnutls? (
473 - app-misc/ca-certificates
474 - dev-libs/nettle
475 - >=net-libs/gnutls-3:0=[static-libs?]
476 - )
477 - gssapi? ( virtual/krb5 )
478 - libproxy? ( net-libs/libproxy )
479 - nls? ( virtual/libintl )
480 - smartcard? ( sys-apps/pcsc-lite:0= )
481 - stoken? ( app-crypt/stoken )"
482 -RDEPEND="${DEPEND}
483 - sys-apps/iproute2
484 - !<sys-apps/openrc-0.13"
485 -DEPEND="${DEPEND}
486 - virtual/pkgconfig
487 - doc? ( ${PYTHON_DEPS} sys-apps/groff )
488 - java? ( >=virtual/jdk-1.6 )
489 - nls? ( sys-devel/gettext )"
490 -
491 -CONFIG_CHECK="~TUN"
492 -
493 -pkg_pretend() {
494 - check_extra_config
495 -}
496 -
497 -pkg_setup() {
498 - java-pkg-opt-2_pkg_setup
499 -
500 - if use doc; then
501 - python-any-r1_pkg_setup
502 - fi
503 -}
504 -
505 -src_configure() {
506 - local ilinguas="ar cs de el en_GB en_US es eu fi fr gl id lt nl pa pl pt pt_BR sk sl tg ug uk zh_CN zh_TW"
507 - strip-linguas ${ilinguas}
508 - echo ${LINGUAS} > po/LINGUAS
509 - if ! use doc; then
510 - # If the python cannot be found, the docs will not build
511 - sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die
512 - fi
513 -
514 - # liboath not in portage
515 - econf \
516 - --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" \
517 - $(use_enable static-libs static) \
518 - $(use_enable nls ) \
519 - $(use_with !gnutls openssl) \
520 - $(use_with gnutls ) \
521 - $(use_with libproxy) \
522 - $(use_with gssapi) \
523 - $(use_with smartcard libpcsclite) \
524 - $(use_with stoken) \
525 - $(use_with java)
526 -}
527 -
528 -DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels.
529 -
530 -You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
531 -instead of calling it directly:
532 -
533 -ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
534 -
535 -You can then start the vpn tunnel like this:
536 -
537 -/etc/init.d/openconnect.vpn0 start
538 -
539 -If you would like to run preup, postup, predown, and/or postdown scripts,
540 -You need to create a directory in /etc/openconnect with the name of the vpn:
541 -
542 -mkdir /etc/openconnect/vpn0
543 -
544 -Then add executable shell files:
545 -
546 -mkdir /etc/openconnect/vpn0
547 -cd /etc/openconnect/vpn0
548 -echo '#!/bin/sh' > preup.sh
549 -cp preup.sh predown.sh
550 -cp preup.sh postup.sh
551 -cp preup.sh postdown.sh
552 -chmod 755 /etc/openconnect/vpn0/*
553 -"
554 -
555 -src_install() {
556 - emake DESTDIR="${D}" install
557 -
558 - dodoc AUTHORS TODO
559 - newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
560 - dodir /etc/openconnect
561 - insinto /etc/openconnect
562 - newconfd "${FILESDIR}"/openconnect.conf.in openconnect
563 - exeinto /etc/openconnect
564 - newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
565 - insinto /etc/logrotate.d
566 - newins "${FILESDIR}"/openconnect.logrotate openconnect
567 - keepdir /var/log/openconnect
568 -
569 - # Remove useless .la files
570 - prune_libtool_files --all
571 -
572 - readme.gentoo_create_doc
573 -}
574 -
575 -pkg_postinst() {
576 - readme.gentoo_print_elog
577 - if [[ -z ${REPLACING_VERSIONS} ]]; then
578 - elog
579 - elog "You may want to consider installing the following optional packages."
580 - optfeature "resolvconf support" net-dns/openresolv
581 - fi
582 -}
583
584 diff --git a/net-vpn/openconnect/openconnect-7.06_p20160614.ebuild b/net-vpn/openconnect/openconnect-7.06_p20160614.ebuild
585 deleted file mode 100644
586 index 8702eba983c..00000000000
587 --- a/net-vpn/openconnect/openconnect-7.06_p20160614.ebuild
588 +++ /dev/null
589 @@ -1,156 +0,0 @@
590 -# Copyright 1999-2016 Gentoo Foundation
591 -# Distributed under the terms of the GNU General Public License v2
592 -
593 -EAPI=6
594 -
595 -PYTHON_COMPAT=( python2_7 )
596 -PYTHON_REQ_USE="xml"
597 -
598 -inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo-r1
599 -
600 -if [[ ${PV} == 9999 ]]; then
601 - EGIT_REPO_URI="git://git.infradead.org/users/dwmw2/${PN}.git"
602 - inherit git-r3 autotools
603 -else
604 - inherit autotools
605 - ARCHIVE_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.gz"
606 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
607 -fi
608 -VPNC_VER=20140806
609 -SRC_URI="${ARCHIVE_URI}
610 - ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
611 -
612 -DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
613 -HOMEPAGE="http://www.infradead.org/openconnect.html"
614 -
615 -LICENSE="LGPL-2.1 GPL-2"
616 -SLOT="0/5"
617 -IUSE="doc +gnutls gssapi java libproxy nls smartcard static-libs stoken"
618 -
619 -DEPEND="dev-libs/libxml2
620 - sys-libs/zlib
621 - !gnutls? (
622 - >=dev-libs/openssl-1.0.1h:0[static-libs?]
623 - )
624 - gnutls? (
625 - >=net-libs/gnutls-3:0=[static-libs?] dev-libs/nettle
626 - app-misc/ca-certificates
627 - )
628 - gssapi? ( virtual/krb5 )
629 - libproxy? ( net-libs/libproxy )
630 - nls? ( virtual/libintl )
631 - smartcard? ( sys-apps/pcsc-lite:0= )
632 - stoken? ( app-crypt/stoken )"
633 -RDEPEND="${DEPEND}
634 - sys-apps/iproute2
635 - !<sys-apps/openrc-0.13"
636 -DEPEND="${DEPEND}
637 - virtual/pkgconfig
638 - doc? ( ${PYTHON_DEPS} sys-apps/groff )
639 - java? ( >=virtual/jdk-1.6 )
640 - nls? ( sys-devel/gettext )"
641 -
642 -CONFIG_CHECK="~TUN"
643 -
644 -pkg_pretend() {
645 - check_extra_config
646 -}
647 -
648 -pkg_setup() {
649 - java-pkg-opt-2_pkg_setup
650 -}
651 -
652 -src_unpack() {
653 - if [[ ${PV} == 9999 ]]; then
654 - git-r3_src_unpack
655 - fi
656 - default
657 -}
658 -
659 -src_prepare() {
660 - default
661 - eautoreconf
662 -}
663 -
664 -src_configure() {
665 - if [[ ${LINGUAS+set} == set ]]; then
666 - strip-linguas -u po
667 - echo "${LINGUAS}" > po/LINGUAS || die
668 - fi
669 -
670 - if use doc; then
671 - python_setup
672 - else
673 - # If the python cannot be found, the docs will not build
674 - sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die
675 - fi
676 -
677 - # liboath not in portage
678 - econf \
679 - --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" \
680 - $(use_enable static-libs static) \
681 - $(use_enable nls ) \
682 - $(use_with !gnutls openssl) \
683 - $(use_with gnutls ) \
684 - $(use_with libproxy) \
685 - $(use_with gssapi) \
686 - $(use_with smartcard libpcsclite) \
687 - $(use_with stoken) \
688 - $(use_with java)
689 -}
690 -
691 -DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels.
692 -
693 -You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
694 -instead of calling it directly:
695 -
696 -ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
697 -
698 -You can then start the vpn tunnel like this:
699 -
700 -/etc/init.d/openconnect.vpn0 start
701 -
702 -If you would like to run preup, postup, predown, and/or postdown scripts,
703 -You need to create a directory in /etc/openconnect with the name of the vpn:
704 -
705 -mkdir /etc/openconnect/vpn0
706 -
707 -Then add executable shell files:
708 -
709 -mkdir /etc/openconnect/vpn0
710 -cd /etc/openconnect/vpn0
711 -echo '#!/bin/sh' > preup.sh
712 -cp preup.sh predown.sh
713 -cp preup.sh postup.sh
714 -cp preup.sh postdown.sh
715 -chmod 755 /etc/openconnect/vpn0/*
716 -"
717 -
718 -src_install() {
719 - emake DESTDIR="${D}" install
720 -
721 - dodoc AUTHORS TODO
722 - newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
723 - dodir /etc/openconnect
724 - insinto /etc/openconnect
725 - newconfd "${FILESDIR}"/openconnect.conf.in openconnect
726 - exeinto /etc/openconnect
727 - newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
728 - insinto /etc/logrotate.d
729 - newins "${FILESDIR}"/openconnect.logrotate openconnect
730 - keepdir /var/log/openconnect
731 -
732 - # Remove useless .la files
733 - prune_libtool_files --all
734 -
735 - readme.gentoo_create_doc
736 -}
737 -
738 -pkg_postinst() {
739 - readme.gentoo_print_elog
740 - if [[ -z ${REPLACING_VERSIONS} ]]; then
741 - elog
742 - elog "You may want to consider installing the following optional packages."
743 - optfeature "resolvconf support" net-dns/openresolv
744 - fi
745 -}
746
747 diff --git a/net-vpn/openconnect/openconnect-7.07-r1.ebuild b/net-vpn/openconnect/openconnect-7.07-r1.ebuild
748 deleted file mode 100644
749 index fac6e34d7ea..00000000000
750 --- a/net-vpn/openconnect/openconnect-7.07-r1.ebuild
751 +++ /dev/null
752 @@ -1,157 +0,0 @@
753 -# Copyright 1999-2016 Gentoo Foundation
754 -# Distributed under the terms of the GNU General Public License v2
755 -
756 -EAPI=6
757 -
758 -PYTHON_COMPAT=( python2_7 )
759 -PYTHON_REQ_USE="xml"
760 -
761 -inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo-r1
762 -
763 -if [[ ${PV} == 9999 ]]; then
764 - EGIT_REPO_URI="git://git.infradead.org/users/dwmw2/${PN}.git"
765 - inherit git-r3 autotools
766 -else
767 - ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
768 - KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86"
769 -fi
770 -VPNC_VER=20160829
771 -SRC_URI="${ARCHIVE_URI}
772 - ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
773 -
774 -DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
775 -HOMEPAGE="http://www.infradead.org/openconnect.html"
776 -
777 -LICENSE="LGPL-2.1 GPL-2"
778 -SLOT="0/5"
779 -IUSE="doc +gnutls gssapi java libproxy nls smartcard static-libs stoken"
780 -
781 -DEPEND="dev-libs/libxml2
782 - sys-libs/zlib
783 - !gnutls? (
784 - >=dev-libs/openssl-1.0.1h:0[static-libs?]
785 - )
786 - gnutls? (
787 - >=net-libs/gnutls-3:0=[static-libs?] dev-libs/nettle
788 - app-misc/ca-certificates
789 - )
790 - gssapi? ( virtual/krb5 )
791 - libproxy? ( net-libs/libproxy )
792 - nls? ( virtual/libintl )
793 - smartcard? ( sys-apps/pcsc-lite:0= )
794 - stoken? ( app-crypt/stoken )"
795 -RDEPEND="${DEPEND}
796 - sys-apps/iproute2
797 - !<sys-apps/openrc-0.13"
798 -DEPEND="${DEPEND}
799 - virtual/pkgconfig
800 - doc? ( ${PYTHON_DEPS} sys-apps/groff )
801 - java? ( >=virtual/jdk-1.6 )
802 - nls? ( sys-devel/gettext )"
803 -
804 -CONFIG_CHECK="~TUN"
805 -
806 -pkg_pretend() {
807 - check_extra_config
808 -}
809 -
810 -pkg_setup() {
811 - java-pkg-opt-2_pkg_setup
812 -}
813 -
814 -src_unpack() {
815 - if [[ ${PV} == 9999 ]]; then
816 - git-r3_src_unpack
817 - fi
818 - default
819 -}
820 -
821 -src_prepare() {
822 - default
823 - if [[ ${PV} == 9999 ]]; then
824 - eautoreconf
825 - fi
826 -}
827 -
828 -src_configure() {
829 - if [[ ${LINGUAS+set} == set ]]; then
830 - strip-linguas -u po
831 - echo "${LINGUAS}" > po/LINGUAS || die
832 - fi
833 -
834 - if use doc; then
835 - python_setup
836 - else
837 - # If the python cannot be found, the docs will not build
838 - sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die
839 - fi
840 -
841 - # liboath not in portage
842 - econf \
843 - --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" \
844 - $(use_enable static-libs static) \
845 - $(use_enable nls ) \
846 - $(use_with !gnutls openssl) \
847 - $(use_with gnutls ) \
848 - $(use_with libproxy) \
849 - $(use_with gssapi) \
850 - $(use_with smartcard libpcsclite) \
851 - $(use_with stoken) \
852 - $(use_with java)
853 -}
854 -
855 -DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels.
856 -
857 -You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
858 -instead of calling it directly:
859 -
860 -ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
861 -
862 -You can then start the vpn tunnel like this:
863 -
864 -/etc/init.d/openconnect.vpn0 start
865 -
866 -If you would like to run preup, postup, predown, and/or postdown scripts,
867 -You need to create a directory in /etc/openconnect with the name of the vpn:
868 -
869 -mkdir /etc/openconnect/vpn0
870 -
871 -Then add executable shell files:
872 -
873 -mkdir /etc/openconnect/vpn0
874 -cd /etc/openconnect/vpn0
875 -echo '#!/bin/sh' > preup.sh
876 -cp preup.sh predown.sh
877 -cp preup.sh postup.sh
878 -cp preup.sh postdown.sh
879 -chmod 755 /etc/openconnect/vpn0/*
880 -"
881 -
882 -src_install() {
883 - emake DESTDIR="${D}" install
884 -
885 - dodoc AUTHORS TODO
886 - newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
887 - dodir /etc/openconnect
888 - insinto /etc/openconnect
889 - newconfd "${FILESDIR}"/openconnect.conf.in openconnect
890 - exeinto /etc/openconnect
891 - newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
892 - insinto /etc/logrotate.d
893 - newins "${FILESDIR}"/openconnect.logrotate openconnect
894 - keepdir /var/log/openconnect
895 -
896 - # Remove useless .la files
897 - prune_libtool_files --all
898 -
899 - readme.gentoo_create_doc
900 -}
901 -
902 -pkg_postinst() {
903 - readme.gentoo_print_elog
904 - if [[ -z ${REPLACING_VERSIONS} ]]; then
905 - elog
906 - elog "You may want to consider installing the following optional packages."
907 - optfeature "resolvconf support" net-dns/openresolv
908 - fi
909 -}
910
911 diff --git a/net-vpn/openconnect/openconnect-7.07-r2.ebuild b/net-vpn/openconnect/openconnect-7.07-r2.ebuild
912 deleted file mode 100644
913 index 5c8982b1bca..00000000000
914 --- a/net-vpn/openconnect/openconnect-7.07-r2.ebuild
915 +++ /dev/null
916 @@ -1,163 +0,0 @@
917 -# Copyright 1999-2017 Gentoo Foundation
918 -# Distributed under the terms of the GNU General Public License v2
919 -
920 -EAPI=6
921 -
922 -PYTHON_COMPAT=( python2_7 )
923 -PYTHON_REQ_USE="xml"
924 -
925 -inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo-r1
926 -
927 -if [[ ${PV} == 9999 ]]; then
928 - EGIT_REPO_URI="git://git.infradead.org/users/dwmw2/${PN}.git"
929 - inherit git-r3 autotools
930 -else
931 - ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
932 - KEYWORDS="amd64 arm ~arm64 ppc64 x86"
933 -fi
934 -VPNC_VER=20160829
935 -SRC_URI="${ARCHIVE_URI}
936 - ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
937 -
938 -DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
939 -HOMEPAGE="http://www.infradead.org/openconnect.html"
940 -
941 -LICENSE="LGPL-2.1 GPL-2"
942 -SLOT="0/5"
943 -IUSE="doc +gnutls gssapi java libproxy lz4 nls smartcard static-libs stoken"
944 -
945 -DEPEND="dev-libs/libxml2
946 - sys-libs/zlib
947 - !gnutls? (
948 - >=dev-libs/openssl-1.0.1h:0[static-libs?]
949 - )
950 - gnutls? (
951 - >=net-libs/gnutls-3:0=[static-libs?] dev-libs/nettle
952 - app-misc/ca-certificates
953 - )
954 - gssapi? ( virtual/krb5 )
955 - libproxy? ( net-libs/libproxy )
956 - lz4? ( app-arch/lz4:= )
957 - nls? ( virtual/libintl )
958 - smartcard? ( sys-apps/pcsc-lite:0= )
959 - stoken? ( app-crypt/stoken )"
960 -RDEPEND="${DEPEND}
961 - sys-apps/iproute2
962 - !<sys-apps/openrc-0.13"
963 -DEPEND="${DEPEND}
964 - virtual/pkgconfig
965 - doc? ( ${PYTHON_DEPS} sys-apps/groff )
966 - java? ( >=virtual/jdk-1.6 )
967 - nls? ( sys-devel/gettext )"
968 -
969 -CONFIG_CHECK="~TUN"
970 -
971 -PATCHES=(
972 - "${FILESDIR}"/${P}-mimic-pulse-client.patch
973 -)
974 -
975 -pkg_pretend() {
976 - check_extra_config
977 -}
978 -
979 -pkg_setup() {
980 - java-pkg-opt-2_pkg_setup
981 -}
982 -
983 -src_unpack() {
984 - if [[ ${PV} == 9999 ]]; then
985 - git-r3_src_unpack
986 - fi
987 - default
988 -}
989 -
990 -src_prepare() {
991 - default
992 - if [[ ${PV} == 9999 ]]; then
993 - eautoreconf
994 - fi
995 -}
996 -
997 -src_configure() {
998 - if [[ ${LINGUAS+set} == set ]]; then
999 - strip-linguas -u po
1000 - echo "${LINGUAS}" > po/LINGUAS || die
1001 - fi
1002 -
1003 - if use doc; then
1004 - python_setup
1005 - else
1006 - # If the python cannot be found, the docs will not build
1007 - sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die
1008 - fi
1009 -
1010 - # liboath not in portage
1011 - econf \
1012 - --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" \
1013 - $(use_enable static-libs static) \
1014 - $(use_enable nls ) \
1015 - $(use_with !gnutls openssl) \
1016 - $(use_with gnutls ) \
1017 - $(use_with libproxy) \
1018 - $(use_with lz4) \
1019 - $(use_with gssapi) \
1020 - $(use_with smartcard libpcsclite) \
1021 - $(use_with stoken) \
1022 - $(use_with java)
1023 -}
1024 -
1025 -DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels.
1026 -
1027 -You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
1028 -instead of calling it directly:
1029 -
1030 -ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
1031 -
1032 -You can then start the vpn tunnel like this:
1033 -
1034 -/etc/init.d/openconnect.vpn0 start
1035 -
1036 -If you would like to run preup, postup, predown, and/or postdown scripts,
1037 -You need to create a directory in /etc/openconnect with the name of the vpn:
1038 -
1039 -mkdir /etc/openconnect/vpn0
1040 -
1041 -Then add executable shell files:
1042 -
1043 -mkdir /etc/openconnect/vpn0
1044 -cd /etc/openconnect/vpn0
1045 -echo '#!/bin/sh' > preup.sh
1046 -cp preup.sh predown.sh
1047 -cp preup.sh postup.sh
1048 -cp preup.sh postdown.sh
1049 -chmod 755 /etc/openconnect/vpn0/*
1050 -"
1051 -
1052 -src_install() {
1053 - emake DESTDIR="${D}" install
1054 -
1055 - dodoc AUTHORS TODO
1056 - newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
1057 - dodir /etc/openconnect
1058 - insinto /etc/openconnect
1059 - newconfd "${FILESDIR}"/openconnect.conf.in openconnect
1060 - exeinto /etc/openconnect
1061 - newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
1062 - insinto /etc/logrotate.d
1063 - newins "${FILESDIR}"/openconnect.logrotate openconnect
1064 - keepdir /var/log/openconnect
1065 -
1066 - # Remove useless .la files
1067 - prune_libtool_files --all
1068 -
1069 - readme.gentoo_create_doc
1070 -}
1071 -
1072 -pkg_postinst() {
1073 - readme.gentoo_print_elog
1074 - if [[ -z ${REPLACING_VERSIONS} ]]; then
1075 - elog
1076 - elog "You may want to consider installing the following optional packages."
1077 - optfeature "resolvconf support" net-dns/openresolv
1078 - fi
1079 -}
1080
1081 diff --git a/net-vpn/openconnect/openconnect-7.07-r3.ebuild b/net-vpn/openconnect/openconnect-7.07-r3.ebuild
1082 deleted file mode 100644
1083 index f0b04fd6c33..00000000000
1084 --- a/net-vpn/openconnect/openconnect-7.07-r3.ebuild
1085 +++ /dev/null
1086 @@ -1,167 +0,0 @@
1087 -# Copyright 1999-2016 Gentoo Foundation
1088 -# Distributed under the terms of the GNU General Public License v2
1089 -
1090 -EAPI=6
1091 -
1092 -PYTHON_COMPAT=( python2_7 )
1093 -PYTHON_REQ_USE="xml"
1094 -
1095 -inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo-r1
1096 -
1097 -if [[ ${PV} == 9999 ]]; then
1098 - EGIT_REPO_URI="git://git.infradead.org/users/dwmw2/${PN}.git"
1099 - inherit git-r3 autotools
1100 -else
1101 - ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
1102 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
1103 -fi
1104 -VPNC_VER=20160829
1105 -SRC_URI="${ARCHIVE_URI}
1106 - ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
1107 -
1108 -DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
1109 -HOMEPAGE="http://www.infradead.org/openconnect.html"
1110 -
1111 -LICENSE="LGPL-2.1 GPL-2"
1112 -SLOT="0/5"
1113 -IUSE="doc +gnutls gssapi java libproxy libressl lz4 nls smartcard static-libs stoken"
1114 -
1115 -DEPEND="
1116 - dev-libs/libxml2
1117 - sys-libs/zlib
1118 - !gnutls? (
1119 - !libressl? ( >=dev-libs/openssl-1.0.1h:0=[static-libs?] )
1120 - libressl? ( dev-libs/libressl:0=[static-libs?] )
1121 - )
1122 - gnutls? (
1123 - app-misc/ca-certificates
1124 - dev-libs/nettle
1125 - >=net-libs/gnutls-3:0=[static-libs?]
1126 - )
1127 - gssapi? ( virtual/krb5 )
1128 - libproxy? ( net-libs/libproxy )
1129 - lz4? ( app-arch/lz4:= )
1130 - nls? ( virtual/libintl )
1131 - smartcard? ( sys-apps/pcsc-lite:0= )
1132 - stoken? ( app-crypt/stoken )"
1133 -RDEPEND="${DEPEND}
1134 - sys-apps/iproute2
1135 - !<sys-apps/openrc-0.13"
1136 -DEPEND="${DEPEND}
1137 - virtual/pkgconfig
1138 - doc? ( ${PYTHON_DEPS} sys-apps/groff )
1139 - java? ( >=virtual/jdk-1.6 )
1140 - nls? ( sys-devel/gettext )"
1141 -
1142 -CONFIG_CHECK="~TUN"
1143 -
1144 -PATCHES=(
1145 - "${FILESDIR}"/${P}-mimic-pulse-client.patch
1146 - "${FILESDIR}"/${P}-libressl.patch
1147 -)
1148 -
1149 -pkg_pretend() {
1150 - check_extra_config
1151 -}
1152 -
1153 -pkg_setup() {
1154 - java-pkg-opt-2_pkg_setup
1155 -}
1156 -
1157 -src_unpack() {
1158 - if [[ ${PV} == 9999 ]]; then
1159 - git-r3_src_unpack
1160 - fi
1161 - default
1162 -}
1163 -
1164 -src_prepare() {
1165 - default
1166 - if [[ ${PV} == 9999 ]]; then
1167 - eautoreconf
1168 - fi
1169 -}
1170 -
1171 -src_configure() {
1172 - if [[ ${LINGUAS+set} == set ]]; then
1173 - strip-linguas -u po
1174 - echo "${LINGUAS}" > po/LINGUAS || die
1175 - fi
1176 -
1177 - if use doc; then
1178 - python_setup
1179 - else
1180 - # If the python cannot be found, the docs will not build
1181 - sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die
1182 - fi
1183 -
1184 - # liboath not in portage
1185 - econf \
1186 - --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" \
1187 - $(use_enable static-libs static) \
1188 - $(use_enable nls ) \
1189 - $(use_with !gnutls openssl) \
1190 - $(use_with gnutls ) \
1191 - $(use_with libproxy) \
1192 - $(use_with lz4) \
1193 - $(use_with gssapi) \
1194 - $(use_with smartcard libpcsclite) \
1195 - $(use_with stoken) \
1196 - $(use_with java)
1197 -}
1198 -
1199 -DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels.
1200 -
1201 -You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
1202 -instead of calling it directly:
1203 -
1204 -ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
1205 -
1206 -You can then start the vpn tunnel like this:
1207 -
1208 -/etc/init.d/openconnect.vpn0 start
1209 -
1210 -If you would like to run preup, postup, predown, and/or postdown scripts,
1211 -You need to create a directory in /etc/openconnect with the name of the vpn:
1212 -
1213 -mkdir /etc/openconnect/vpn0
1214 -
1215 -Then add executable shell files:
1216 -
1217 -mkdir /etc/openconnect/vpn0
1218 -cd /etc/openconnect/vpn0
1219 -echo '#!/bin/sh' > preup.sh
1220 -cp preup.sh predown.sh
1221 -cp preup.sh postup.sh
1222 -cp preup.sh postdown.sh
1223 -chmod 755 /etc/openconnect/vpn0/*
1224 -"
1225 -
1226 -src_install() {
1227 - emake DESTDIR="${D}" install
1228 -
1229 - dodoc AUTHORS TODO
1230 - newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
1231 - dodir /etc/openconnect
1232 - insinto /etc/openconnect
1233 - newconfd "${FILESDIR}"/openconnect.conf.in openconnect
1234 - exeinto /etc/openconnect
1235 - newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
1236 - insinto /etc/logrotate.d
1237 - newins "${FILESDIR}"/openconnect.logrotate openconnect
1238 - keepdir /var/log/openconnect
1239 -
1240 - # Remove useless .la files
1241 - prune_libtool_files --all
1242 -
1243 - readme.gentoo_create_doc
1244 -}
1245 -
1246 -pkg_postinst() {
1247 - readme.gentoo_print_elog
1248 - if [[ -z ${REPLACING_VERSIONS} ]]; then
1249 - elog
1250 - elog "You may want to consider installing the following optional packages."
1251 - optfeature "resolvconf support" net-dns/openresolv
1252 - fi
1253 -}
1254
1255 diff --git a/net-vpn/openconnect/openconnect-7.08.ebuild b/net-vpn/openconnect/openconnect-7.08.ebuild
1256 deleted file mode 100644
1257 index e233f30d020..00000000000
1258 --- a/net-vpn/openconnect/openconnect-7.08.ebuild
1259 +++ /dev/null
1260 @@ -1,162 +0,0 @@
1261 -# Copyright 1999-2017 Gentoo Foundation
1262 -# Distributed under the terms of the GNU General Public License v2
1263 -
1264 -EAPI=6
1265 -
1266 -PYTHON_COMPAT=( python2_7 )
1267 -PYTHON_REQ_USE="xml"
1268 -
1269 -inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo-r1
1270 -
1271 -if [[ ${PV} == 9999 ]]; then
1272 - EGIT_REPO_URI="git://git.infradead.org/users/dwmw2/${PN}.git"
1273 - inherit git-r3 autotools
1274 -else
1275 - ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
1276 - KEYWORDS="amd64 arm ~arm64 ppc64 x86"
1277 -fi
1278 -VPNC_VER=20160829
1279 -SRC_URI="${ARCHIVE_URI}
1280 - ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
1281 -
1282 -DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
1283 -HOMEPAGE="http://www.infradead.org/openconnect.html"
1284 -
1285 -LICENSE="LGPL-2.1 GPL-2"
1286 -SLOT="0/5"
1287 -IUSE="doc +gnutls gssapi java libproxy libressl lz4 nls smartcard static-libs stoken"
1288 -
1289 -DEPEND="
1290 - dev-libs/libxml2
1291 - sys-libs/zlib
1292 - !gnutls? (
1293 - !libressl? ( >=dev-libs/openssl-1.0.1h:0=[static-libs?] )
1294 - libressl? ( dev-libs/libressl:0=[static-libs?] )
1295 - )
1296 - gnutls? (
1297 - app-misc/ca-certificates
1298 - dev-libs/nettle
1299 - >=net-libs/gnutls-3:0=[static-libs?]
1300 - )
1301 - gssapi? ( virtual/krb5 )
1302 - libproxy? ( net-libs/libproxy )
1303 - lz4? ( app-arch/lz4:= )
1304 - nls? ( virtual/libintl )
1305 - smartcard? ( sys-apps/pcsc-lite:0= )
1306 - stoken? ( app-crypt/stoken )"
1307 -RDEPEND="${DEPEND}
1308 - sys-apps/iproute2
1309 - !<sys-apps/openrc-0.13"
1310 -DEPEND="${DEPEND}
1311 - virtual/pkgconfig
1312 - doc? ( ${PYTHON_DEPS} sys-apps/groff )
1313 - java? ( >=virtual/jdk-1.6 )
1314 - nls? ( sys-devel/gettext )"
1315 -
1316 -CONFIG_CHECK="~TUN"
1317 -
1318 -pkg_pretend() {
1319 - check_extra_config
1320 -}
1321 -
1322 -pkg_setup() {
1323 - java-pkg-opt-2_pkg_setup
1324 -}
1325 -
1326 -src_unpack() {
1327 - if [[ ${PV} == 9999 ]]; then
1328 - git-r3_src_unpack
1329 - fi
1330 - default
1331 -}
1332 -
1333 -src_prepare() {
1334 - default
1335 - if [[ ${PV} == 9999 ]]; then
1336 - eautoreconf
1337 - fi
1338 -}
1339 -
1340 -src_configure() {
1341 - if [[ ${LINGUAS+set} == set ]]; then
1342 - strip-linguas -u po
1343 - echo "${LINGUAS}" > po/LINGUAS || die
1344 - fi
1345 -
1346 - if use doc; then
1347 - python_setup
1348 - else
1349 - export PYTHON=/bin/false
1350 - fi
1351 -
1352 - local myconf=(
1353 - --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh"
1354 - --without-openssl-version-check
1355 - $(use_enable static-libs static)
1356 - $(use_enable nls)
1357 - $(use_with !gnutls openssl)
1358 - $(use_with gnutls)
1359 - $(use_with libproxy)
1360 - $(use_with lz4)
1361 - $(use_with gssapi)
1362 - $(use_with smartcard libpcsclite)
1363 - $(use_with stoken)
1364 - $(use_with java)
1365 - )
1366 -
1367 - econf "${myconf[@]}"
1368 -}
1369 -
1370 -DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels.
1371 -
1372 -You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d
1373 -instead of calling it directly:
1374 -
1375 -ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0
1376 -
1377 -You can then start the vpn tunnel like this:
1378 -
1379 -/etc/init.d/openconnect.vpn0 start
1380 -
1381 -If you would like to run preup, postup, predown, and/or postdown scripts,
1382 -You need to create a directory in /etc/openconnect with the name of the vpn:
1383 -
1384 -mkdir /etc/openconnect/vpn0
1385 -
1386 -Then add executable shell files:
1387 -
1388 -mkdir /etc/openconnect/vpn0
1389 -cd /etc/openconnect/vpn0
1390 -echo '#!/bin/sh' > preup.sh
1391 -cp preup.sh predown.sh
1392 -cp preup.sh postup.sh
1393 -cp preup.sh postdown.sh
1394 -chmod 755 /etc/openconnect/vpn0/*
1395 -"
1396 -
1397 -src_install() {
1398 - default
1399 -
1400 - newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
1401 - dodir /etc/openconnect
1402 - insinto /etc/openconnect
1403 - newconfd "${FILESDIR}"/openconnect.conf.in openconnect
1404 - exeinto /etc/openconnect
1405 - newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
1406 - insinto /etc/logrotate.d
1407 - newins "${FILESDIR}"/openconnect.logrotate openconnect
1408 - keepdir /var/log/openconnect
1409 -
1410 - prune_libtool_files
1411 -
1412 - readme.gentoo_create_doc
1413 -}
1414 -
1415 -pkg_postinst() {
1416 - readme.gentoo_print_elog
1417 - if [[ -z ${REPLACING_VERSIONS} ]]; then
1418 - elog
1419 - elog "You may want to consider installing the following optional packages."
1420 - optfeature "resolvconf support" net-dns/openresolv
1421 - fi
1422 -}