1 |
ago 13/02/25 13:27:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openconnect-4.99.ebuild |
5 |
Log: |
6 |
Version bump, wrt to bug #457068 |
7 |
|
8 |
(Portage version: 2.1.11.50/cvs/Linux ppc64, signed Manifest commit with key 7194459F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.10 net-misc/openconnect/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?rev=1.10&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?rev=1.10&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/ChangeLog?r1=1.9&r2=1.10 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v |
20 |
retrieving revision 1.9 |
21 |
retrieving revision 1.10 |
22 |
diff -u -r1.9 -r1.10 |
23 |
--- ChangeLog 30 Jan 2013 15:29:35 -0000 1.9 |
24 |
+++ ChangeLog 25 Feb 2013 13:27:48 -0000 1.10 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-misc/openconnect |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v 1.9 2013/01/30 15:29:35 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/ChangeLog,v 1.10 2013/02/25 13:27:48 ago Exp $ |
30 |
+ |
31 |
+*openconnect-4.99 (25 Feb 2013) |
32 |
+ |
33 |
+ 25 Feb 2013; Agostino Sarubbo <ago@g.o> +openconnect-4.99.ebuild: |
34 |
+ Version bump, wrt to bug #457068 |
35 |
|
36 |
30 Jan 2013; Agostino Sarubbo <ago@g.o> openconnect-4.07-r3.ebuild: |
37 |
Stable for x86, wrt bug #453936 |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-misc/openconnect/openconnect-4.99.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/openconnect-4.99.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openconnect/openconnect-4.99.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: openconnect-4.99.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/openconnect-4.99.ebuild,v 1.1 2013/02/25 13:27:48 ago Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
|
54 |
PYTHON_COMPAT=( python2_{6,7} ) |
55 |
|
56 |
inherit eutils linux-info python-any-r1 |
57 |
|
58 |
DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software" |
59 |
HOMEPAGE="http://www.infradead.org/openconnect.html" |
60 |
# New versions of openconnect-script can be found here: |
61 |
# http://git.infradead.org/users/dwmw2/vpnc-scripts.git/history/HEAD:/vpnc-script |
62 |
SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz |
63 |
http://dev.gentoo.org/~hwoarang/distfiles/openconnect-script-20121108205904.tar.gz" |
64 |
|
65 |
LICENSE="LGPL-2.1" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
IUSE="doc static-libs nls -gnutls" |
69 |
ILINGUAS="ar as ast bg bg_BG bn bn_IN bs ca ca@valencia cs da de el en_GB en_US eo es es_CR |
70 |
es_MX et eu fa fi fr gd gl gu he hi hi_IN hu id it ja km kn ko ku lo lt lv ml mr |
71 |
ms nb nl nn no or pa pl pt pt_BR pt_PT ro ru sk sl sq sr sr@latin sv ta te |
72 |
tg th tl tr ug uk ur_PK vi vi_VN wa zh_CN zh_HK zh_TW" |
73 |
for lang in $ILINGUAS; do |
74 |
IUSE="${IUSE} linguas_${lang}" |
75 |
done |
76 |
|
77 |
DEPEND="dev-libs/libxml2 |
78 |
net-libs/libproxy |
79 |
sys-libs/zlib |
80 |
!gnutls? ( dev-libs/openssl[static-libs?] ) |
81 |
gnutls? ( |
82 |
|| ( |
83 |
( >=net-libs/gnutls-3[static-libs?] dev-libs/nettle ) |
84 |
( =net-libs/gnutls-2.12*[nettle,static-libs?] dev-libs/nettle ) |
85 |
( =net-libs/gnutls-2.12*[-nettle,static-libs?] dev-libs/libgcrypt[static-libs?] ) |
86 |
) |
87 |
app-misc/ca-certificates |
88 |
) |
89 |
doc? ( ${PYTHON_DEPS} )" |
90 |
|
91 |
RDEPEND="${DEPEND} |
92 |
sys-apps/iproute2" |
93 |
|
94 |
tun_tap_check() { |
95 |
ebegin "Checking for TUN/TAP support" |
96 |
if { ! linux_chkconfig_present TUN; }; then |
97 |
eerror "Please enable TUN/TAP support in your kernel config, found at:" |
98 |
eerror |
99 |
eerror " Device Drivers --->" |
100 |
eerror " [*] Network device support --->" |
101 |
eerror " <*> Universal TUN/TAP device driver support" |
102 |
eerror |
103 |
eerror "and recompile your kernel ..." |
104 |
die "no CONFIG_TUN support detected!" |
105 |
fi |
106 |
eend $? |
107 |
} |
108 |
|
109 |
pkg_setup() { |
110 |
if use doc; then |
111 |
python-any-r1_pkg_setup |
112 |
fi |
113 |
|
114 |
if use kernel_linux; then |
115 |
get_version |
116 |
if linux_config_exists; then |
117 |
tun_tap_check |
118 |
else |
119 |
ewarn "Was unable to determine your kernel .config" |
120 |
ewarn "Please note that OpenConnect requires CONFIG_TUN to be set in your" |
121 |
ewarn "kernel .config, Without it, it will not work correctly." |
122 |
# We don't die here, so it's possible to compile this package without |
123 |
# kernel sources available. Required for cross-compilation. |
124 |
fi |
125 |
fi |
126 |
} |
127 |
|
128 |
src_configure() { |
129 |
strip-linguas $ILINGUAS |
130 |
echo ${LINGUAS} > po/LINGUAS |
131 |
# Override vpn-script test since the build system violates the sandbox and |
132 |
# needs the path set to the real default path after it's installed |
133 |
sed -e "s#-x \"\$with_vpnc_script\"#-n \"${WORKDIR}/openconnect-script\"#" \ |
134 |
-i configure || die |
135 |
if ! use doc; then |
136 |
# If the python cannot be found, the docs will not build |
137 |
sed -e 's#"${ac_cv_path_PYTHON}"#""#' -i configure || die |
138 |
fi |
139 |
econf \ |
140 |
--with-vpnc-script=/etc/openconnect/openconnect.sh \ |
141 |
$(use_enable static-libs static) \ |
142 |
$(use_enable nls ) \ |
143 |
$(use_with !gnutls openssl) \ |
144 |
$(use_with gnutls ) |
145 |
} |
146 |
|
147 |
src_install() { |
148 |
emake DESTDIR="${D}" install |
149 |
|
150 |
dodoc AUTHORS TODO |
151 |
newinitd "${FILESDIR}"/openconnect.init.in openconnect |
152 |
dodir /etc/openconnect |
153 |
insinto /etc/openconnect |
154 |
newconfd "${FILESDIR}"/openconnect.conf.in openconnect |
155 |
exeinto /etc/openconnect |
156 |
newexe "${WORKDIR}"/openconnect-script openconnect.sh |
157 |
insinto /etc/logrotate.d |
158 |
newins "${FILESDIR}"/openconnect.logrotate openconnect |
159 |
keepdir /var/log/openconnect |
160 |
|
161 |
# Remove useless .la files |
162 |
find "${D}" -name '*.la' -delete || die "la file removal failed" |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
elog "The init script for openconnect has changed and now supports multiple vpn tunnels." |
167 |
elog |
168 |
elog "You need to create a symbolic link to /etc/init.d/openconnect in /etc/init.d" |
169 |
elog "instead of calling it directly:" |
170 |
elog |
171 |
elog "ln -s /etc/init.d/openconnect /etc/init.d/openconnect.vpn0" |
172 |
elog |
173 |
elog "You can then start the vpn tunnel like this:" |
174 |
elog |
175 |
elog "/etc/init.d/openconnect.vpn0 start" |
176 |
elog |
177 |
elog "If you would like to run preup, postup, predown, and/or postdown scripts," |
178 |
elog "You need to create a directory in /etc/openconnect with the name of the vpn:" |
179 |
elog |
180 |
elog "mkdir /etc/openconnect/vpn0" |
181 |
elog |
182 |
elog "Then add executable shell files:" |
183 |
elog |
184 |
elog "mkdir /etc/openconnect/vpn0" |
185 |
elog "cd /etc/openconnect/vpn0" |
186 |
elog "echo '#!/bin/sh' > preup.sh" |
187 |
elog "cp preup.sh predown.sh" |
188 |
elog "cp preup.sh postup.sh" |
189 |
elog "cp preup.sh postdown.sh" |
190 |
elog "chmod 755 /etc/openconnect/vpn0/*" |
191 |
} |