1 |
commit: 5eda65d91a4dbc89f62e493af4e09bcdedb187e2 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 13 17:40:15 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 13 17:42:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eda65d9 |
7 |
|
8 |
net-misc/openconnect: 7.07 version bump |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
net-misc/openconnect/Manifest | 1 + |
13 |
net-misc/openconnect/openconnect-7.07.ebuild | 159 +++++++++++++++++++++++++++ |
14 |
2 files changed, 160 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/openconnect/Manifest b/net-misc/openconnect/Manifest |
17 |
index 09000b2..3d6d856 100644 |
18 |
--- a/net-misc/openconnect/Manifest |
19 |
+++ b/net-misc/openconnect/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST openconnect-7.06.tar.gz 1343870 SHA256 facf695368dc4537a6a30e2147be90b1d77ee3cb2d269eaef070b6d9ddab70f2 SHA512 d1af9efe4ac1f6671dc6b92db0df981e8cae3f2f50b8b4c35a112b42a76517b7c8ea9fd5da93352445dd61da3012bf34fdbcc3add9d8727cbaad7d311e516108 WHIRLPOOL b1b98bf8d900714eb7c7ab82bbd4371050f307b7872bd70b4b9c31f72bb15670842f41c381cbe31aad7e5e98bccbe0663e49b988d5c321c706719b8fa19a2654 |
22 |
DIST openconnect-7.06_p20160614.tar.gz 2332148 SHA256 dcba2a087d66e0cf27c087c74ee64ae6b747b2191dfbf5fa2729ec2b156aee4a SHA512 7832251180e9c738c84ee89d0ad35144318f90cc9ede48e0cdb73747e64b2a3fbf4ad8175d0d755cb5629fbfc37c76a131a1b54a03c4249727102b572cbdfd66 WHIRLPOOL 2f25ef9a09c1efb88f5439a8f55b05d68adf868d108c7378e7a4d2889e092838b245ac2660ffc6234846a34a320971fce99ce1f0519be1426a8b2c3be371fbf4 |
23 |
+DIST openconnect-7.07.tar.gz 1557283 SHA256 f3ecfcd487dcd916748db38b4138c1e72c86347d6328b11dfe1d0af2821b8366 SHA512 fcce82419a058f5210f8b6167a10e52eb572c93cda3ec941bf11e5bfcf8395ce2f816cba4f5f9a02920eb023fe7dfbd8192d5664ce5bab29bf88506b67ec34e3 WHIRLPOOL 188d5117c1b669e1ab6c11d4d66431e3c59e50b21b39db5e6e9df3d3e3f1905c75be46e101e10483f4de2547a40e894b474eef35e001744bfdeb4a7f4c128dd1 |
24 |
DIST vpnc-scripts-20140806.tar.gz 20070 SHA256 1f61a6c5ec8a2dab7d5f12c9b438d931e41c6c1c258801ee978d5ed460f4d35f SHA512 bfa230d6eb2db0696a23228cef6e742dcf5e609c25de725c23e2c7bee96d00045ea656d6c7025cdf7785f70baeb8a8d79af6aec93d7285bcb3c029dc744e5380 WHIRLPOOL 78d0c5e23f408167904639a7804859a1d6b89668feab6834a589a3d9f7abf4f9d1da984553a8871b6a16af39a03e5a6f3f6506dd77f7f960c7fcdd56f0683e27 |
25 |
|
26 |
diff --git a/net-misc/openconnect/openconnect-7.07.ebuild b/net-misc/openconnect/openconnect-7.07.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..20c579a |
29 |
--- /dev/null |
30 |
+++ b/net-misc/openconnect/openconnect-7.07.ebuild |
31 |
@@ -0,0 +1,159 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+PYTHON_REQ_USE="xml" |
40 |
+ |
41 |
+inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo-r1 |
42 |
+ |
43 |
+if [[ ${PV} == 9999 ]]; then |
44 |
+ EGIT_REPO_URI="git://git.infradead.org/users/dwmw2/${PN}.git" |
45 |
+ inherit git-r3 autotools |
46 |
+else |
47 |
+ ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz" |
48 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
49 |
+fi |
50 |
+VPNC_VER=20140806 |
51 |
+SRC_URI="${ARCHIVE_URI} |
52 |
+ ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz" |
53 |
+ |
54 |
+DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software" |
55 |
+HOMEPAGE="http://www.infradead.org/openconnect.html" |
56 |
+ |
57 |
+LICENSE="LGPL-2.1 GPL-2" |
58 |
+SLOT="0/5" |
59 |
+IUSE="doc +gnutls gssapi java libressl libproxy nls smartcard static-libs stoken" |
60 |
+ |
61 |
+DEPEND="dev-libs/libxml2 |
62 |
+ sys-libs/zlib |
63 |
+ !gnutls? ( |
64 |
+ !libressl? ( >=dev-libs/openssl-1.0.1h:0[static-libs?] ) |
65 |
+ libressl? ( dev-libs/libressl[static-libs?] ) |
66 |
+ ) |
67 |
+ gnutls? ( |
68 |
+ >=net-libs/gnutls-3:0=[static-libs?] dev-libs/nettle |
69 |
+ app-misc/ca-certificates |
70 |
+ ) |
71 |
+ gssapi? ( virtual/krb5 ) |
72 |
+ libproxy? ( net-libs/libproxy ) |
73 |
+ nls? ( virtual/libintl ) |
74 |
+ smartcard? ( sys-apps/pcsc-lite:0= ) |
75 |
+ stoken? ( app-crypt/stoken )" |
76 |
+RDEPEND="${DEPEND} |
77 |
+ sys-apps/iproute2 |
78 |
+ !<sys-apps/openrc-0.13" |
79 |
+DEPEND="${DEPEND} |
80 |
+ virtual/pkgconfig |
81 |
+ doc? ( ${PYTHON_DEPS} sys-apps/groff ) |
82 |
+ java? ( >=virtual/jdk-1.6 ) |
83 |
+ nls? ( sys-devel/gettext )" |
84 |
+ |
85 |
+CONFIG_CHECK="~TUN" |
86 |
+ |
87 |
+pkg_pretend() { |
88 |
+ check_extra_config |
89 |
+} |
90 |
+ |
91 |
+pkg_setup() { |
92 |
+ java-pkg-opt-2_pkg_setup |
93 |
+} |
94 |
+ |
95 |
+src_unpack() { |
96 |
+ if [[ ${PV} == 9999 ]]; then |
97 |
+ git-r3_src_unpack |
98 |
+ fi |
99 |
+ default |
100 |
+} |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ if [[ ${PV} == 9999 ]]; then |
105 |
+ eautoreconf |
106 |
+ fi |
107 |
+} |
108 |
+ |
109 |
+src_configure() { |
110 |
+ if [[ ${LINGUAS+set} == set ]]; then |
111 |
+ strip-linguas -u po |
112 |
+ echo "${LINGUAS}" > po/LINGUAS || die |
113 |
+ fi |
114 |
+ |
115 |
+ if use doc; then |
116 |
+ python_setup |
117 |
+ else |
118 |
+ # If the python cannot be found, the docs will not build |
119 |
+ sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die |
120 |
+ fi |
121 |
+ |
122 |
+ # liboath not in portage |
123 |
+ econf \ |
124 |
+ --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh" \ |
125 |
+ $(use_enable static-libs static) \ |
126 |
+ $(use_enable nls ) \ |
127 |
+ $(use_with !gnutls openssl) \ |
128 |
+ $(use_with gnutls ) \ |
129 |
+ $(use_with libproxy) \ |
130 |
+ $(use_with gssapi) \ |
131 |
+ $(use_with smartcard libpcsclite) \ |
132 |
+ $(use_with stoken) \ |
133 |
+ $(use_with java) |
134 |
+} |
135 |
+ |
136 |
+DOC_CONTENTS="The init script for openconnect supports multiple vpn tunnels. |
137 |
+ |
138 |
+You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d |
139 |
+instead of calling it directly: |
140 |
+ |
141 |
+ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0 |
142 |
+ |
143 |
+You can then start the vpn tunnel like this: |
144 |
+ |
145 |
+/etc/init.d/openconnect.vpn0 start |
146 |
+ |
147 |
+If you would like to run preup, postup, predown, and/or postdown scripts, |
148 |
+You need to create a directory in /etc/openconnect with the name of the vpn: |
149 |
+ |
150 |
+mkdir /etc/openconnect/vpn0 |
151 |
+ |
152 |
+Then add executable shell files: |
153 |
+ |
154 |
+mkdir /etc/openconnect/vpn0 |
155 |
+cd /etc/openconnect/vpn0 |
156 |
+echo '#!/bin/sh' > preup.sh |
157 |
+cp preup.sh predown.sh |
158 |
+cp preup.sh postup.sh |
159 |
+cp preup.sh postdown.sh |
160 |
+chmod 755 /etc/openconnect/vpn0/* |
161 |
+" |
162 |
+ |
163 |
+src_install() { |
164 |
+ emake DESTDIR="${D}" install |
165 |
+ |
166 |
+ dodoc AUTHORS TODO |
167 |
+ newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect |
168 |
+ dodir /etc/openconnect |
169 |
+ insinto /etc/openconnect |
170 |
+ newconfd "${FILESDIR}"/openconnect.conf.in openconnect |
171 |
+ exeinto /etc/openconnect |
172 |
+ newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh |
173 |
+ insinto /etc/logrotate.d |
174 |
+ newins "${FILESDIR}"/openconnect.logrotate openconnect |
175 |
+ keepdir /var/log/openconnect |
176 |
+ |
177 |
+ # Remove useless .la files |
178 |
+ prune_libtool_files --all |
179 |
+ |
180 |
+ readme.gentoo_create_doc |
181 |
+} |
182 |
+ |
183 |
+pkg_postinst() { |
184 |
+ readme.gentoo_print_elog |
185 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
186 |
+ elog |
187 |
+ elog "You may want to consider installing the following optional packages." |
188 |
+ optfeature "resolvconf support" net-dns/openresolv |
189 |
+ fi |
190 |
+} |