1 |
commit: 75a15c5715d8a5393efb8ffed12ae5c1f906ba49 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 04:26:51 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 04:27:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75a15c57 |
7 |
|
8 |
net-vpn/openconnect: bump to 8.09 |
9 |
|
10 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
11 |
|
12 |
net-vpn/openconnect/Manifest | 1 + |
13 |
net-vpn/openconnect/openconnect-8.09.ebuild | 147 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 148 insertions(+) |
15 |
|
16 |
diff --git a/net-vpn/openconnect/Manifest b/net-vpn/openconnect/Manifest |
17 |
index f28d52e86ef..c8fc40caedd 100644 |
18 |
--- a/net-vpn/openconnect/Manifest |
19 |
+++ b/net-vpn/openconnect/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST openconnect-8.06.tar.gz 2030905 BLAKE2B d9659e4f027e11a0348c1c4358831e5f470f0305e04c22716010c68810ae300a7062ab8f57e3fc80b7d90caf855ce2f1c0af1b04eb7032b70486eee2eacc47e5 SHA512 6319aa6b20bf16994b376c2cc2a7cbf2b26a36f35e9607c1886e8fa7a2e1fe111bfb37f9349693ef52a3d2ce718c37e15fe263664e6c0bcbd33ced5ddb9e31b2 |
22 |
DIST openconnect-8.08.tar.gz 2038269 BLAKE2B 78e76aee1d22179dc1e8fff03e57ee5df0d7a04cf88c5f844ba5b87c9b8a0f89766489e0dcc6b1023c07ea8b2e4da8ea2723470423b3c0c8d4bc47ed1c1e3fa4 SHA512 3bf42e194b88f06bbc6c385002e7b76952964e230fc86ee1d803be72204073ffe41286a3d8e189456fd7b905fa63577e6adc64137e893eccada80419c114eeb8 |
23 |
+DIST openconnect-8.09.tar.gz 2083279 BLAKE2B 4588c693a7a641faad271b034e8713f00fda04a872641e45a8ce3e1a236b8d2f4e1b8d973d20e7a9fc656f9460a0e990cbaada008d4ecf9a46353f20c25ac87a SHA512 f6890f5bce4b36b162e4590bce8a61d65fc0ae803d62a3dd408fbb13e96ce41b6443740132808491093032545aea919f9076e34bc11160c503c5e3c46457e7bd |
24 |
DIST vpnc-scripts-20200226.tar.gz 21460 BLAKE2B 8f00ce3dc49725758abce27f3688946df1bbd4e92769ef02aa9ee66db8b9f41bef3442eaa5405ab1467476899c6d364dfea898ed924ca83497823a85515d48e5 SHA512 3a1eac4ccfaefb0f837189c8cef696b33ab8b8a68cb50a3ad29206b708d0aa479e8eed0c09bef6f60d056cd98d63cc898a1609d734030a63df3be2cfa6c00f9a |
25 |
|
26 |
diff --git a/net-vpn/openconnect/openconnect-8.09.ebuild b/net-vpn/openconnect/openconnect-8.09.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..85ac062266b |
29 |
--- /dev/null |
30 |
+++ b/net-vpn/openconnect/openconnect-8.09.ebuild |
31 |
@@ -0,0 +1,147 @@ |
32 |
+# Copyright 2011-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{3_6,3_7} ) |
38 |
+PYTHON_REQ_USE="xml" |
39 |
+ |
40 |
+inherit linux-info python-any-r1 |
41 |
+ |
42 |
+if [[ ${PV} == 9999 ]]; then |
43 |
+ EGIT_REPO_URI="https://gitlab.com/openconnect/openconnect.git" |
44 |
+ inherit git-r3 autotools |
45 |
+else |
46 |
+ ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64" |
48 |
+fi |
49 |
+VPNC_VER=20200226 |
50 |
+SRC_URI="${ARCHIVE_URI} |
51 |
+ ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz" |
52 |
+ |
53 |
+DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software" |
54 |
+HOMEPAGE="http://www.infradead.org/openconnect.html" |
55 |
+ |
56 |
+LICENSE="LGPL-2.1 GPL-2" |
57 |
+SLOT="0/5" |
58 |
+IUSE="doc +gnutls gssapi libproxy lz4 nls smartcard static-libs stoken test" |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+DEPEND=" |
62 |
+ dev-libs/libxml2 |
63 |
+ sys-libs/zlib |
64 |
+ !gnutls? ( |
65 |
+ >=dev-libs/openssl-1.0.1h:0=[static-libs?] |
66 |
+ ) |
67 |
+ gnutls? ( |
68 |
+ app-crypt/trousers |
69 |
+ app-misc/ca-certificates |
70 |
+ dev-libs/nettle |
71 |
+ >=net-libs/gnutls-3:0=[static-libs?] |
72 |
+ ) |
73 |
+ gssapi? ( virtual/krb5 ) |
74 |
+ libproxy? ( net-libs/libproxy ) |
75 |
+ lz4? ( app-arch/lz4:= ) |
76 |
+ nls? ( virtual/libintl ) |
77 |
+ smartcard? ( sys-apps/pcsc-lite:0= ) |
78 |
+ stoken? ( app-crypt/stoken ) |
79 |
+" |
80 |
+RDEPEND="${DEPEND} |
81 |
+ sys-apps/iproute2 |
82 |
+" |
83 |
+BDEPEND=" |
84 |
+ virtual/pkgconfig |
85 |
+ doc? ( ${PYTHON_DEPS} sys-apps/groff ) |
86 |
+ nls? ( sys-devel/gettext ) |
87 |
+ test? ( |
88 |
+ net-libs/socket_wrapper |
89 |
+ net-vpn/ocserv |
90 |
+ sys-libs/uid_wrapper |
91 |
+ ) |
92 |
+" |
93 |
+ |
94 |
+CONFIG_CHECK="~TUN" |
95 |
+ |
96 |
+pkg_pretend() { |
97 |
+ check_extra_config |
98 |
+} |
99 |
+ |
100 |
+pkg_setup() { |
101 |
+ : |
102 |
+} |
103 |
+ |
104 |
+src_unpack() { |
105 |
+ if [[ ${PV} == 9999 ]]; then |
106 |
+ git-r3_src_unpack |
107 |
+ fi |
108 |
+ default |
109 |
+} |
110 |
+ |
111 |
+src_prepare() { |
112 |
+ default |
113 |
+ if [[ ${PV} == 9999 ]]; then |
114 |
+ eautoreconf |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+src_configure() { |
119 |
+ if use doc; then |
120 |
+ python_setup |
121 |
+ else |
122 |
+ export ac_cv_path_PYTHON= |
123 |
+ fi |
124 |
+ |
125 |
+ # Used by tests if userpriv is disabled |
126 |
+ addwrite /run/netns |
127 |
+ |
128 |
+ local myconf=( |
129 |
+ --disable-dsa-tests |
130 |
+ $(use_enable nls) |
131 |
+ $(use_enable static-libs static) |
132 |
+ $(use_with !gnutls openssl) |
133 |
+ $(use_with gnutls) |
134 |
+ $(use_with libproxy) |
135 |
+ $(use_with lz4) |
136 |
+ $(use_with gssapi) |
137 |
+ $(use_with smartcard libpcsclite) |
138 |
+ $(use_with stoken) |
139 |
+ --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" |
140 |
+ --without-java |
141 |
+ ) |
142 |
+ |
143 |
+ econf "${myconf[@]}" |
144 |
+} |
145 |
+ |
146 |
+src_test() { |
147 |
+ local charset |
148 |
+ for charset in UTF-8 ISO8859-2; do |
149 |
+ if [[ $(LC_ALL=cs_CZ.${charset} locale charmap 2>/dev/null) != ${charset} ]]; then |
150 |
+ # If we don't have valid cs_CZ locale data, auth-nonascii will fail. |
151 |
+ # Force a test skip by exiting with status 77. |
152 |
+ sed -i -e '2i exit 77' tests/auth-nonascii || die |
153 |
+ break |
154 |
+ fi |
155 |
+ done |
156 |
+ default |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ default |
161 |
+ |
162 |
+ find "${ED}" -name '*.la' -delete || die |
163 |
+ |
164 |
+ dodoc "${FILESDIR}"/README.OpenRC.txt |
165 |
+ |
166 |
+ newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect |
167 |
+ insinto /etc/openconnect |
168 |
+ |
169 |
+ newconfd "${FILESDIR}"/openconnect.conf.in openconnect |
170 |
+ |
171 |
+ exeinto /etc/openconnect |
172 |
+ newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh |
173 |
+ |
174 |
+ insinto /etc/logrotate.d |
175 |
+ newins "${FILESDIR}"/openconnect.logrotate openconnect |
176 |
+ |
177 |
+ keepdir /var/log/openconnect |
178 |
+} |