1 |
commit: 43a809e6f8c8f59477b0f9f07ea56822eaeb0b34 |
2 |
Author: Henning Schild <henning <AT> hennsch <DOT> de> |
3 |
AuthorDate: Sat Jun 22 19:15:42 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 23 01:22:49 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43a809e6 |
7 |
|
8 |
net-vpn/openconnect: bump to 8.03 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/687626 |
11 |
Signed-off-by: Henning Schild <henning <AT> hennsch.de> |
12 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
13 |
|
14 |
net-vpn/openconnect/Manifest | 2 + |
15 |
net-vpn/openconnect/openconnect-8.03.ebuild | 160 ++++++++++++++++++++++++++++ |
16 |
2 files changed, 162 insertions(+) |
17 |
|
18 |
diff --git a/net-vpn/openconnect/Manifest b/net-vpn/openconnect/Manifest |
19 |
index 178a317433b..90bbaafe563 100644 |
20 |
--- a/net-vpn/openconnect/Manifest |
21 |
+++ b/net-vpn/openconnect/Manifest |
22 |
@@ -1,4 +1,6 @@ |
23 |
DIST openconnect-7.08.tar.gz 1686133 BLAKE2B 265c43982b475ef1e49d7bf16e782c82b9ac48fbfbe61b5b8fe250505391edea8e5050e8cc3dc9b3cadb349f3842e13c05e431172e8c7488d9052ad15c93e87e SHA512 22f9b0bd4bd17e2ab91ff42b2464c89abba035fe705c037ba4d1042ace460c8738e20481783a1edc3b7dd6503fe9fcc7fdd188552811fb1525310e25a4c2f400 |
24 |
DIST openconnect-8.02.tar.gz 1876135 BLAKE2B aef1f17702ddbbd392c3203f4235a6e24ca5ecbfe144652675ac8b98c0cbb85bf8cc5563295150cf385d3c0bc5a9b3ad84228706baa17f56dd62b798cbdd05d1 SHA512 690a51198aeaf4bb1cd0901b0799ac991712a29aa899fe735a7b5201683cd627556eebeefba01d0c752ba44ba0a6c5ee1c3647d692383f3f4b335e79c5337cbc |
25 |
+DIST openconnect-8.03.tar.gz 1885587 BLAKE2B 272d1b5afda46d05dcfbaee224ad42303ea991780832addfc43859f1614ec22df3baa44b3de9982fe2c6421004ce0010da637128eee36ff31be0286d2d7cb0c0 SHA512 e5cae7aacc5684c585992c8199d47c1318a710d2f3638e0b71f5ab3ee7f35406306462e19ba55b32351a3894c83c256569e2e096da0bc8f6404f2740168e73da |
26 |
DIST vpnc-scripts-20180227.tar.gz 21241 BLAKE2B 2ba4c76121ba9c5d307233d6f8c91db03c8da4882b8f6dfeed335f7fcc30438df8fe0657a1177e7e551566b597e195cf41bb6e27e13b757a0c931e8574de9a5e SHA512 9a508426e9307213078ce57b59d25168647fa5d2e823b1085e93401259b0a52269e948c8292e4055babf3e8b3c087a23475b5caa2a43c11feb2df8b0d8843972 |
27 |
DIST vpnc-scripts-20190117.tar.gz 21412 BLAKE2B 47adc50fe8940e6f5253321d2ef91abeb03e131dc0c1ba02f33f90c9a1ef75c0e838c0215c7ac419134c620b83a449e225d6ba5d77bb98d8f461406cb39eed9f SHA512 d01bb52532bd96f1bbf9735b8d5530c762c80205e53057f619db6090556887da1c91fe111da9937b452910f493e73dad26fcd20d3bd97248099d90ffa3060cde |
28 |
+DIST vpnc-scripts-20190425.tar.gz 21388 BLAKE2B 774b9f64429e61396c3d291b3822355c4f206bd06af00d8f7599b197e6e3b5f5beb44ad41f9fc6328dda9a0283dce736f278fc66a6c40f2fc210f324112edcea SHA512 9be7f8e89fc4aeaa55b54db69e0ea7636b4fad79cd0ede99811aab10460ae06e1e9f051f9412ce36f3ab357b72a31140a03a496eba171dd21555efdf46fcb7c1 |
29 |
|
30 |
diff --git a/net-vpn/openconnect/openconnect-8.03.ebuild b/net-vpn/openconnect/openconnect-8.03.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..043b279a091 |
33 |
--- /dev/null |
34 |
+++ b/net-vpn/openconnect/openconnect-8.03.ebuild |
35 |
@@ -0,0 +1,160 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
42 |
+PYTHON_REQ_USE="xml" |
43 |
+ |
44 |
+inherit linux-info python-any-r1 readme.gentoo-r1 |
45 |
+ |
46 |
+if [[ ${PV} == 9999 ]]; then |
47 |
+ EGIT_REPO_URI="https://gitlab.com/openconnect/openconnect.git" |
48 |
+ inherit git-r3 autotools |
49 |
+else |
50 |
+ ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz" |
51 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
52 |
+fi |
53 |
+VPNC_VER=20190425 |
54 |
+SRC_URI="${ARCHIVE_URI} |
55 |
+ ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz" |
56 |
+ |
57 |
+DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software" |
58 |
+HOMEPAGE="http://www.infradead.org/openconnect.html" |
59 |
+ |
60 |
+LICENSE="LGPL-2.1 GPL-2" |
61 |
+SLOT="0/5" |
62 |
+IUSE="doc +gnutls gssapi libproxy libressl lz4 nls smartcard static-libs stoken" |
63 |
+ |
64 |
+DEPEND=" |
65 |
+ dev-libs/libxml2 |
66 |
+ sys-libs/zlib |
67 |
+ !gnutls? ( |
68 |
+ !libressl? ( >=dev-libs/openssl-1.0.1h:0=[static-libs?] ) |
69 |
+ libressl? ( dev-libs/libressl:0=[static-libs?] ) |
70 |
+ ) |
71 |
+ gnutls? ( |
72 |
+ app-crypt/trousers |
73 |
+ app-misc/ca-certificates |
74 |
+ dev-libs/nettle |
75 |
+ >=net-libs/gnutls-3:0=[static-libs?] |
76 |
+ ) |
77 |
+ gssapi? ( virtual/krb5 ) |
78 |
+ libproxy? ( net-libs/libproxy ) |
79 |
+ lz4? ( app-arch/lz4:= ) |
80 |
+ nls? ( virtual/libintl ) |
81 |
+ smartcard? ( sys-apps/pcsc-lite:0= ) |
82 |
+ stoken? ( app-crypt/stoken )" |
83 |
+RDEPEND="${DEPEND} |
84 |
+ sys-apps/iproute2 |
85 |
+ !<sys-apps/openrc-0.13" |
86 |
+BDEPEND=" |
87 |
+ virtual/pkgconfig |
88 |
+ doc? ( ${PYTHON_DEPS} sys-apps/groff ) |
89 |
+ nls? ( sys-devel/gettext )" |
90 |
+ |
91 |
+CONFIG_CHECK="~TUN" |
92 |
+ |
93 |
+pkg_pretend() { |
94 |
+ check_extra_config |
95 |
+} |
96 |
+ |
97 |
+pkg_setup() { |
98 |
+ : |
99 |
+} |
100 |
+ |
101 |
+src_unpack() { |
102 |
+ if [[ ${PV} == 9999 ]]; then |
103 |
+ git-r3_src_unpack |
104 |
+ fi |
105 |
+ default |
106 |
+} |
107 |
+ |
108 |
+src_prepare() { |
109 |
+ default |
110 |
+ if [[ ${PV} == 9999 ]]; then |
111 |
+ eautoreconf |
112 |
+ fi |
113 |
+} |
114 |
+ |
115 |
+src_configure() { |
116 |
+ if use doc; then |
117 |
+ python_setup |
118 |
+ else |
119 |
+ sed -i -e 's/^build_www=yes/build_www=no/' "${S}"/configure || die |
120 |
+ fi |
121 |
+ |
122 |
+ # Used by tests if userpriv is disabled |
123 |
+ addwrite /run/netns |
124 |
+ |
125 |
+ local myconf=( |
126 |
+ --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" |
127 |
+ --without-openssl-version-check |
128 |
+ $(use_enable static-libs static) |
129 |
+ $(use_enable nls) |
130 |
+ $(use_with !gnutls openssl) |
131 |
+ $(use_with gnutls) |
132 |
+ $(use_with libproxy) |
133 |
+ $(use_with lz4) |
134 |
+ $(use_with gssapi) |
135 |
+ $(use_with smartcard libpcsclite) |
136 |
+ $(use_with stoken) |
137 |
+ --without-java |
138 |
+ ) |
139 |
+ |
140 |
+ econf "${myconf[@]}" |
141 |
+} |
142 |
+ |
143 |
+DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels. |
144 |
+ |
145 |
+You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d |
146 |
+instead of calling it directly: |
147 |
+ |
148 |
+ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0 |
149 |
+ |
150 |
+You can then start the vpn tunnel like this: |
151 |
+ |
152 |
+/etc/init.d/openconnect.vpn0 start |
153 |
+ |
154 |
+If you would like to run preup, postup, predown, and/or postdown scripts, |
155 |
+You need to create a directory in /etc/openconnect with the name of the vpn: |
156 |
+ |
157 |
+mkdir /etc/openconnect/vpn0 |
158 |
+ |
159 |
+Then add executable shell files: |
160 |
+ |
161 |
+mkdir /etc/openconnect/vpn0 |
162 |
+cd /etc/openconnect/vpn0 |
163 |
+echo '#!/bin/sh' > preup.sh |
164 |
+cp preup.sh predown.sh |
165 |
+cp preup.sh postup.sh |
166 |
+cp preup.sh postdown.sh |
167 |
+chmod 755 /etc/openconnect/vpn0/* |
168 |
+" |
169 |
+ |
170 |
+src_install() { |
171 |
+ default |
172 |
+ |
173 |
+ newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect |
174 |
+ dodir /etc/openconnect |
175 |
+ insinto /etc/openconnect |
176 |
+ newconfd "${FILESDIR}"/openconnect.conf.in openconnect |
177 |
+ exeinto /etc/openconnect |
178 |
+ newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh |
179 |
+ insinto /etc/logrotate.d |
180 |
+ newins "${FILESDIR}"/openconnect.logrotate openconnect |
181 |
+ keepdir /var/log/openconnect |
182 |
+ |
183 |
+ find "${ED}" -name '*.la' -delete || die |
184 |
+ |
185 |
+ readme.gentoo_create_doc |
186 |
+} |
187 |
+ |
188 |
+pkg_postinst() { |
189 |
+ readme.gentoo_print_elog |
190 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
191 |
+ elog |
192 |
+ elog "You may want to consider installing the following optional packages." |
193 |
+ optfeature "resolvconf support" virtual/resolvconf |
194 |
+ fi |
195 |
+} |