1 |
hasufell 14/07/26 19:26:39 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: openconnect-6.00.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020) |
9 |
|
10 |
Revision Changes Path |
11 |
1.10 net-misc/openconnect/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/metadata.xml?rev=1.10&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/metadata.xml?rev=1.10&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/metadata.xml?r1=1.9&r2=1.10 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/openconnect/metadata.xml,v |
20 |
retrieving revision 1.9 |
21 |
retrieving revision 1.10 |
22 |
diff -u -r1.9 -r1.10 |
23 |
--- metadata.xml 6 Mar 2014 00:21:08 -0000 1.9 |
24 |
+++ metadata.xml 26 Jul 2014 19:26:38 -0000 1.10 |
25 |
@@ -13,6 +13,7 @@ |
26 |
</maintainer> |
27 |
<herd>proxy-maintainers</herd> |
28 |
<use> |
29 |
+ <flag name='gssapi'>Build GSSAPI support.</flag> |
30 |
<flag name='java'>Build JNI bindings using jni.h</flag> |
31 |
<flag name='libproxy'>Enable proxy support.</flag> |
32 |
</use> |
33 |
|
34 |
|
35 |
|
36 |
1.31 net-misc/openconnect/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?rev=1.31&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?rev=1.31&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?r1=1.30&r2=1.31 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v |
45 |
retrieving revision 1.30 |
46 |
retrieving revision 1.31 |
47 |
diff -u -r1.30 -r1.31 |
48 |
--- ChangeLog 17 Mar 2014 17:06:28 -0000 1.30 |
49 |
+++ ChangeLog 26 Jul 2014 19:26:38 -0000 1.31 |
50 |
@@ -1,6 +1,12 @@ |
51 |
# ChangeLog for net-misc/openconnect |
52 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v 1.30 2014/03/17 17:06:28 hasufell Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v 1.31 2014/07/26 19:26:38 hasufell Exp $ |
55 |
+ |
56 |
+*openconnect-6.00 (26 Jul 2014) |
57 |
+ |
58 |
+ 26 Jul 2014; Julian Ospald <hasufell@g.o> +openconnect-6.00.ebuild, |
59 |
+ metadata.xml: |
60 |
+ version bump |
61 |
|
62 |
*openconnect-5.99-r1 (17 Mar 2014) |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
1.1 net-misc/openconnect/openconnect-6.00.ebuild |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/openconnect-6.00.ebuild?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/openconnect-6.00.ebuild?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: openconnect-6.00.ebuild |
73 |
=================================================================== |
74 |
# Copyright 1999-2014 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/openconnect-6.00.ebuild,v 1.1 2014/07/26 19:26:38 hasufell Exp $ |
77 |
|
78 |
EAPI="5" |
79 |
|
80 |
PYTHON_COMPAT=( python2_{6,7} ) |
81 |
PYTHON_REQ_USE="xml" |
82 |
|
83 |
inherit eutils linux-info python-any-r1 |
84 |
|
85 |
DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software" |
86 |
HOMEPAGE="http://www.infradead.org/openconnect.html" |
87 |
# New versions of openconnect-script can be found here: |
88 |
# http://git.infradead.org/users/dwmw2/vpnc-scripts.git/history/HEAD:/vpnc-script |
89 |
SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz |
90 |
http://dev.gentoo.org/~hasufell/distfiles/openconnect-script-20140311.tar.xz" |
91 |
|
92 |
LICENSE="LGPL-2.1 GPL-2" |
93 |
SLOT="0" |
94 |
KEYWORDS="~amd64 ~ppc64 ~x86" |
95 |
IUSE="doc +gnutls gssapi java libproxy nls static-libs" |
96 |
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" |
97 |
for lang in $ILINGUAS; do |
98 |
IUSE="${IUSE} linguas_${lang}" |
99 |
done |
100 |
|
101 |
DEPEND="dev-libs/libxml2 |
102 |
sys-libs/zlib |
103 |
!gnutls? ( |
104 |
>=dev-libs/openssl-1.0.1h:0[static-libs?] |
105 |
) |
106 |
gnutls? ( |
107 |
>=net-libs/gnutls-3[static-libs?] dev-libs/nettle |
108 |
app-misc/ca-certificates |
109 |
) |
110 |
gssapi? ( app-crypt/mit-krb5 ) |
111 |
libproxy? ( net-libs/libproxy ) |
112 |
nls? ( virtual/libintl )" |
113 |
RDEPEND="${DEPEND} |
114 |
sys-apps/iproute2 |
115 |
java? ( virtual/jre )" |
116 |
DEPEND="${DEPEND} |
117 |
virtual/pkgconfig |
118 |
doc? ( ${PYTHON_DEPS} sys-apps/groff ) |
119 |
java? ( virtual/jdk ) |
120 |
nls? ( sys-devel/gettext )" |
121 |
|
122 |
tun_tap_check() { |
123 |
ebegin "Checking for TUN/TAP support" |
124 |
if { ! linux_chkconfig_present TUN; }; then |
125 |
eerror "Please enable TUN/TAP support in your kernel config, found at:" |
126 |
eerror |
127 |
eerror " Device Drivers --->" |
128 |
eerror " [*] Network device support --->" |
129 |
eerror " <*> Universal TUN/TAP device driver support" |
130 |
eerror |
131 |
eerror "and recompile your kernel ..." |
132 |
die "no CONFIG_TUN support detected!" |
133 |
fi |
134 |
eend $? |
135 |
} |
136 |
|
137 |
pkg_setup() { |
138 |
if use doc; then |
139 |
python-any-r1_pkg_setup |
140 |
fi |
141 |
|
142 |
if use kernel_linux; then |
143 |
get_version |
144 |
if linux_config_exists; then |
145 |
tun_tap_check |
146 |
else |
147 |
ewarn "Was unable to determine your kernel .config" |
148 |
ewarn "Please note that OpenConnect requires CONFIG_TUN to be set in your" |
149 |
ewarn "kernel .config, Without it, it will not work correctly." |
150 |
# We don't die here, so it's possible to compile this package without |
151 |
# kernel sources available. Required for cross-compilation. |
152 |
fi |
153 |
fi |
154 |
} |
155 |
|
156 |
src_configure() { |
157 |
strip-linguas $ILINGUAS |
158 |
echo ${LINGUAS} > po/LINGUAS |
159 |
# Override vpn-script test since the build system violates the sandbox and |
160 |
# needs the path set to the real default path after it's installed |
161 |
sed -e "s#-x \"\$with_vpnc_script\"#-n \"${WORKDIR}/openconnect-script\"#" \ |
162 |
-i configure || die |
163 |
if ! use doc; then |
164 |
# If the python cannot be found, the docs will not build |
165 |
sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die |
166 |
fi |
167 |
|
168 |
# stoken and liboath not in portage |
169 |
econf \ |
170 |
--with-vpnc-script=/etc/openconnect/openconnect.sh \ |
171 |
$(use_enable static-libs static) \ |
172 |
$(use_enable nls ) \ |
173 |
$(use_with !gnutls openssl) \ |
174 |
$(use_with gnutls ) \ |
175 |
$(use_with libproxy) \ |
176 |
--without-stoken \ |
177 |
--without-liboath \ |
178 |
$(use_with gssapi) \ |
179 |
$(use_with java) |
180 |
} |
181 |
|
182 |
src_install() { |
183 |
emake DESTDIR="${D}" install |
184 |
|
185 |
dodoc AUTHORS TODO |
186 |
newinitd "${FILESDIR}"/openconnect.init.in-r2 openconnect |
187 |
dodir /etc/openconnect |
188 |
insinto /etc/openconnect |
189 |
newconfd "${FILESDIR}"/openconnect.conf.in openconnect |
190 |
exeinto /etc/openconnect |
191 |
newexe "${WORKDIR}"/openconnect-script openconnect.sh |
192 |
insinto /etc/logrotate.d |
193 |
newins "${FILESDIR}"/openconnect.logrotate openconnect |
194 |
keepdir /var/log/openconnect |
195 |
|
196 |
# Remove useless .la files |
197 |
find "${D}" -name '*.la' -delete || die "la file removal failed" |
198 |
} |
199 |
|
200 |
pkg_postinst() { |
201 |
elog "The init script for openconnect has changed and now supports multiple vpn tunnels." |
202 |
elog |
203 |
elog "You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d" |
204 |
elog "instead of calling it directly:" |
205 |
elog |
206 |
elog "ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0" |
207 |
elog |
208 |
elog "You can then start the vpn tunnel like this:" |
209 |
elog |
210 |
elog "/etc/init.d/openconnect.vpn0 start" |
211 |
elog |
212 |
elog "If you would like to run preup, postup, predown, and/or postdown scripts," |
213 |
elog "You need to create a directory in /etc/openconnect with the name of the vpn:" |
214 |
elog |
215 |
elog "mkdir /etc/openconnect/vpn0" |
216 |
elog |
217 |
elog "Then add executable shell files:" |
218 |
elog |
219 |
elog "mkdir /etc/openconnect/vpn0" |
220 |
elog "cd /etc/openconnect/vpn0" |
221 |
elog "echo '#!/bin/sh' > preup.sh" |
222 |
elog "cp preup.sh predown.sh" |
223 |
elog "cp preup.sh postup.sh" |
224 |
elog "cp preup.sh postdown.sh" |
225 |
elog "chmod 755 /etc/openconnect/vpn0/*" |
226 |
} |