Gentoo Archives: gentoo-commits

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