1 |
gurligebis 14/06/06 16:42:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wpa_supplicant-2.2.ebuild |
5 |
Removed: wpa_supplicant-2.1-r1.ebuild |
6 |
Log: |
7 |
Bumping to 2.2, fixing #512574 |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux i686, signed Manifest commit with key 15AE484C) |
10 |
|
11 |
Revision Changes Path |
12 |
1.213 net-wireless/wpa_supplicant/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog?rev=1.213&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog?rev=1.213&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog?r1=1.212&r2=1.213 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v |
21 |
retrieving revision 1.212 |
22 |
retrieving revision 1.213 |
23 |
diff -u -r1.212 -r1.213 |
24 |
--- ChangeLog 14 Apr 2014 07:05:47 -0000 1.212 |
25 |
+++ ChangeLog 6 Jun 2014 16:42:05 -0000 1.213 |
26 |
@@ -1,6 +1,21 @@ |
27 |
# ChangeLog for net-wireless/wpa_supplicant |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.212 2014/04/14 07:05:47 alexxy Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/ChangeLog,v 1.213 2014/06/06 16:42:05 gurligebis Exp $ |
31 |
+ |
32 |
+*wpa_supplicant-2.2 (06 Jun 2014) |
33 |
+ |
34 |
+ 06 Jun 2014; <gurligebis@g.o> -wpa_supplicant-2.1-r1.ebuild, |
35 |
+ +wpa_supplicant-2.2.ebuild, -files/wpa_supplicant-2.1-NFC-fix.patch, |
36 |
+ -files/wpa_supplicant-2.1-WPA-fix.patch, |
37 |
+ -files/wpa_supplicant-2.1-dbus-path-fix.patch, |
38 |
+ -files/wpa_supplicant-2.1-do-not-call-dbus-functions-with-NULL-path.patch, |
39 |
+ -files/wpa_supplicant-2.1-fix-undefined-reference-to-random_get_bytes.patch, |
40 |
+ -files/wpa_supplicant-2.1-generate-libeap-peer.patch, |
41 |
+ +files/wpa_supplicant-2.2-dbus-path-fix.patch, |
42 |
+ +files/wpa_supplicant-2.2-do-not-call-dbus-functions-with-NULL-path.patch, |
43 |
+ +files/wpa_supplicant-2.2-fix-undefined-reference-to-random_get_bytes.patch, |
44 |
+ +files/wpa_supplicant-2.2-generate-libeap-peer.patch: |
45 |
+ Bumping to 2.2, fixing #512574 |
46 |
|
47 |
14 Apr 2014; Alexey Shvetsov <alexxy@g.o> metadata.xml: |
48 |
Drop me from maintainers |
49 |
|
50 |
|
51 |
|
52 |
1.1 net-wireless/wpa_supplicant/wpa_supplicant-2.2.ebuild |
53 |
|
54 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-2.2.ebuild?rev=1.1&view=markup |
55 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-2.2.ebuild?rev=1.1&content-type=text/plain |
56 |
|
57 |
Index: wpa_supplicant-2.2.ebuild |
58 |
=================================================================== |
59 |
# Copyright 1999-2014 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/wpa_supplicant-2.2.ebuild,v 1.1 2014/06/06 16:42:05 gurligebis Exp $ |
62 |
|
63 |
EAPI=4 |
64 |
|
65 |
inherit eutils toolchain-funcs qt4-r2 systemd multilib |
66 |
|
67 |
DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers" |
68 |
HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/" |
69 |
SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" |
70 |
LICENSE="|| ( GPL-2 BSD )" |
71 |
|
72 |
SLOT="0" |
73 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
74 |
IUSE="ap dbus gnutls eap-sim fasteap p2p ps3 qt4 readline selinux smartcard ssl wimax wps kernel_linux kernel_FreeBSD" |
75 |
REQUIRED_USE="fasteap? ( !gnutls !ssl ) smartcard? ( ssl )" |
76 |
|
77 |
RDEPEND="dbus? ( sys-apps/dbus ) |
78 |
kernel_linux? ( |
79 |
eap-sim? ( sys-apps/pcsc-lite ) |
80 |
dev-libs/libnl:3 |
81 |
net-wireless/crda |
82 |
) |
83 |
!kernel_linux? ( net-libs/libpcap ) |
84 |
qt4? ( |
85 |
dev-qt/qtgui:4 |
86 |
dev-qt/qtsvg:4 |
87 |
) |
88 |
readline? ( |
89 |
sys-libs/ncurses |
90 |
sys-libs/readline |
91 |
) |
92 |
ssl? ( dev-libs/openssl ) |
93 |
!ssl? ( gnutls? ( net-libs/gnutls ) ) |
94 |
!ssl? ( !gnutls? ( dev-libs/libtommath ) ) |
95 |
selinux? ( sec-policy/selinux-networkmanager )" |
96 |
DEPEND="${RDEPEND} |
97 |
virtual/pkgconfig" |
98 |
|
99 |
S="${WORKDIR}/${P}/${PN}" |
100 |
|
101 |
pkg_setup() { |
102 |
if use gnutls && use ssl ; then |
103 |
elog "You have both 'gnutls' and 'ssl' USE flags enabled: defaulting to USE=\"ssl\"" |
104 |
fi |
105 |
} |
106 |
|
107 |
src_prepare() { |
108 |
# net/bpf.h needed for net-libs/libpcap on Gentoo/FreeBSD |
109 |
sed -i \ |
110 |
-e "s:\(#include <pcap\.h>\):#include <net/bpf.h>\n\1:" \ |
111 |
../src/l2_packet/l2_packet_freebsd.c || die |
112 |
|
113 |
# People seem to take the example configuration file too literally (bug #102361) |
114 |
sed -i \ |
115 |
-e "s:^\(opensc_engine_path\):#\1:" \ |
116 |
-e "s:^\(pkcs11_engine_path\):#\1:" \ |
117 |
-e "s:^\(pkcs11_module_path\):#\1:" \ |
118 |
wpa_supplicant.conf || die |
119 |
|
120 |
# Change configuration to match Gentoo locations (bug #143750) |
121 |
sed -i \ |
122 |
-e "s:/usr/lib/opensc:/usr/$(get_libdir):" \ |
123 |
-e "s:/usr/lib/pkcs11:/usr/$(get_libdir):" \ |
124 |
wpa_supplicant.conf || die |
125 |
|
126 |
if use dbus; then |
127 |
epatch "${FILESDIR}/${P}-dbus-path-fix.patch" |
128 |
fi |
129 |
|
130 |
# systemd entries to D-Bus service files (bug #372877) |
131 |
echo 'SystemdService=wpa_supplicant.service' \ |
132 |
| tee -a dbus/*.service >/dev/null || die |
133 |
|
134 |
cd "${WORKDIR}/${P}" |
135 |
|
136 |
if use wimax; then |
137 |
# generate-libeap-peer.patch comes before |
138 |
# fix-undefined-reference-to-random_get_bytes.patch |
139 |
epatch "${FILESDIR}/${P}-generate-libeap-peer.patch" |
140 |
epatch "${FILESDIR}/${P}-fix-undefined-reference-to-random_get_bytes.patch" |
141 |
|
142 |
# multilib-strict fix (bug #373685) |
143 |
sed -e "s/\/usr\/lib/\/usr\/$(get_libdir)/" -i src/eap_peer/Makefile |
144 |
fi |
145 |
|
146 |
# bug (320097) |
147 |
epatch "${FILESDIR}/${P}-do-not-call-dbus-functions-with-NULL-path.patch" |
148 |
|
149 |
# TODO - NEED TESTING TO SEE IF STILL NEEDED, NOT COMPATIBLE WITH 1.0 OUT OF THE BOX, |
150 |
# SO WOULD BE NICE TO JUST DROP IT, IF IT IS NOT NEEDED. |
151 |
# bug (374089) |
152 |
#epatch "${FILESDIR}/${P}-dbus-WPAIE-fix.patch" |
153 |
} |
154 |
|
155 |
src_configure() { |
156 |
# Toolchain setup |
157 |
tc-export CC |
158 |
|
159 |
# Basic setup |
160 |
echo "CONFIG_CTRL_IFACE=y" >> .config |
161 |
echo "CONFIG_BACKEND=file" >> .config |
162 |
|
163 |
# Basic authentication methods |
164 |
# NOTE: we don't set GPSK or SAKE as they conflict |
165 |
# with the below options |
166 |
echo "CONFIG_EAP_GTC=y" >> .config |
167 |
echo "CONFIG_EAP_MD5=y" >> .config |
168 |
echo "CONFIG_EAP_OTP=y" >> .config |
169 |
echo "CONFIG_EAP_PAX=y" >> .config |
170 |
echo "CONFIG_EAP_PSK=y" >> .config |
171 |
echo "CONFIG_EAP_TLV=y" >> .config |
172 |
echo "CONFIG_EAP_EXE=y" >> .config |
173 |
echo "CONFIG_IEEE8021X_EAPOL=y" >> .config |
174 |
echo "CONFIG_PKCS12=y" >> .config |
175 |
echo "CONFIG_PEERKEY=y" >> .config |
176 |
echo "CONFIG_EAP_LEAP=y" >> .config |
177 |
echo "CONFIG_EAP_MSCHAPV2=y" >> .config |
178 |
echo "CONFIG_EAP_PEAP=y" >> .config |
179 |
echo "CONFIG_EAP_TLS=y" >> .config |
180 |
echo "CONFIG_EAP_TTLS=y" >> .config |
181 |
|
182 |
# Enabling background scanning. |
183 |
echo "CONFIG_BGSCAN_SIMPLE=y" >> .config |
184 |
echo "CONFIG_BGSCAN_LEARN=y" >> .config |
185 |
|
186 |
if use dbus ; then |
187 |
echo "CONFIG_CTRL_IFACE_DBUS=y" >> .config |
188 |
echo "CONFIG_CTRL_IFACE_DBUS_NEW=y" >> .config |
189 |
echo "CONFIG_CTRL_IFACE_DBUS_INTRO=y" >> .config |
190 |
fi |
191 |
|
192 |
# Enable support for writing debug info to a log file. |
193 |
echo "CONFIG_DEBUG_FILE=y" >> .config |
194 |
|
195 |
if use eap-sim ; then |
196 |
# Smart card authentication |
197 |
echo "CONFIG_EAP_SIM=y" >> .config |
198 |
echo "CONFIG_EAP_AKA=y" >> .config |
199 |
echo "CONFIG_EAP_AKA_PRIME=y" >> .config |
200 |
echo "CONFIG_PCSC=y" >> .config |
201 |
fi |
202 |
|
203 |
if use fasteap ; then |
204 |
echo "CONFIG_EAP_FAST=y" >> .config |
205 |
fi |
206 |
|
207 |
if use readline ; then |
208 |
# readline/history support for wpa_cli |
209 |
echo "CONFIG_READLINE=y" >> .config |
210 |
fi |
211 |
|
212 |
# SSL authentication methods |
213 |
if use ssl ; then |
214 |
echo "CONFIG_TLS=openssl" >> .config |
215 |
elif use gnutls ; then |
216 |
echo "CONFIG_TLS=gnutls" >> .config |
217 |
echo "CONFIG_GNUTLS_EXTRA=y" >> .config |
218 |
else |
219 |
echo "CONFIG_TLS=internal" >> .config |
220 |
fi |
221 |
|
222 |
if use smartcard ; then |
223 |
echo "CONFIG_SMARTCARD=y" >> .config |
224 |
fi |
225 |
|
226 |
if use kernel_linux ; then |
227 |
# Linux specific drivers |
228 |
echo "CONFIG_DRIVER_ATMEL=y" >> .config |
229 |
echo "CONFIG_DRIVER_HOSTAP=y" >> .config |
230 |
echo "CONFIG_DRIVER_IPW=y" >> .config |
231 |
echo "CONFIG_DRIVER_NL80211=y" >> .config |
232 |
echo "CONFIG_DRIVER_RALINK=y" >> .config |
233 |
echo "CONFIG_DRIVER_WEXT=y" >> .config |
234 |
echo "CONFIG_DRIVER_WIRED=y" >> .config |
235 |
|
236 |
if use ps3 ; then |
237 |
echo "CONFIG_DRIVER_PS3=y" >> .config |
238 |
fi |
239 |
|
240 |
elif use kernel_FreeBSD ; then |
241 |
# FreeBSD specific driver |
242 |
echo "CONFIG_DRIVER_BSD=y" >> .config |
243 |
fi |
244 |
|
245 |
# Wi-Fi Protected Setup (WPS) |
246 |
if use wps ; then |
247 |
echo "CONFIG_WPS=y" >> .config |
248 |
echo "CONFIG_WPS2=y" >> .config |
249 |
# USB Flash Drive |
250 |
echo "CONFIG_WPS_UFD=y" >> .config |
251 |
# External Registrar |
252 |
echo "CONFIG_WPS_ER=y" >> .config |
253 |
# Universal Plug'n'Play |
254 |
echo "CONFIG_WPS_UPNP=y" >> .config |
255 |
# Near Field Communication |
256 |
echo "CONFIG_WPS_NFC=y" >> .config |
257 |
fi |
258 |
|
259 |
# Wi-Fi Direct (WiDi) |
260 |
if use p2p ; then |
261 |
echo "CONFIG_P2P=y" >> .config |
262 |
fi |
263 |
|
264 |
# Access Point Mode |
265 |
if use ap ; then |
266 |
echo "CONFIG_AP=y" >> .config |
267 |
fi |
268 |
|
269 |
# Enable mitigation against certain attacks against TKIP |
270 |
echo "CONFIG_DELAYED_MIC_ERROR_REPORT=y" >> .config |
271 |
|
272 |
# If we are using libnl 2.0 and above, enable support for it |
273 |
# Bug 382159 |
274 |
# Removed for now, since the 3.2 version is broken, and we don't |
275 |
# support it. |
276 |
if has_version ">=dev-libs/libnl-3.2"; then |
277 |
echo "CONFIG_LIBNL32=y" >> .config |
278 |
fi |
279 |
|
280 |
if use qt4 ; then |
281 |
pushd "${S}"/wpa_gui-qt4 > /dev/null |
282 |
eqmake4 wpa_gui.pro |
283 |
popd > /dev/null |
284 |
fi |
285 |
} |
286 |
|
287 |
src_compile() { |
288 |
einfo "Building wpa_supplicant" |
289 |
emake V=1 |
290 |
|
291 |
if use wimax; then |
292 |
emake -C ../src/eap_peer clean |
293 |
emake -C ../src/eap_peer |
294 |
fi |
295 |
|
296 |
if use qt4 ; then |
297 |
pushd "${S}"/wpa_gui-qt4 > /dev/null |
298 |
einfo "Building wpa_gui" |
299 |
emake |
300 |
popd > /dev/null |
301 |
fi |
302 |
} |
303 |
|
304 |
src_install() { |
305 |
dosbin wpa_supplicant |
306 |
dobin wpa_cli wpa_passphrase |
307 |
|
308 |
# baselayout-1 compat |
309 |
if has_version "<sys-apps/baselayout-2.0.0"; then |
310 |
dodir /sbin |
311 |
dosym /usr/sbin/wpa_supplicant /sbin/wpa_supplicant |
312 |
dodir /bin |
313 |
dosym /usr/bin/wpa_cli /bin/wpa_cli |
314 |
fi |
315 |
|
316 |
if has_version ">=sys-apps/openrc-0.5.0"; then |
317 |
newinitd "${FILESDIR}/${PN}-init.d" wpa_supplicant |
318 |
newconfd "${FILESDIR}/${PN}-conf.d" wpa_supplicant |
319 |
fi |
320 |
|
321 |
exeinto /etc/wpa_supplicant/ |
322 |
newexe "${FILESDIR}/wpa_cli.sh" wpa_cli.sh |
323 |
|
324 |
dodoc ChangeLog {eap_testing,todo}.txt README{,-WPS} \ |
325 |
wpa_supplicant.conf |
326 |
|
327 |
doman doc/docbook/*.{5,8} |
328 |
|
329 |
if use qt4 ; then |
330 |
into /usr |
331 |
dobin wpa_gui-qt4/wpa_gui |
332 |
doicon wpa_gui-qt4/icons/wpa_gui.svg |
333 |
make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;" |
334 |
fi |
335 |
|
336 |
use wimax && emake DESTDIR="${D}" -C ../src/eap_peer install |
337 |
|
338 |
if use dbus ; then |
339 |
pushd "${S}"/dbus > /dev/null |
340 |
insinto /etc/dbus-1/system.d |
341 |
newins dbus-wpa_supplicant.conf wpa_supplicant.conf |
342 |
insinto /usr/share/dbus-1/system-services |
343 |
doins fi.epitest.hostap.WPASupplicant.service fi.w1.wpa_supplicant1.service |
344 |
popd > /dev/null |
345 |
fi |
346 |
|
347 |
# systemd stuff |
348 |
systemd_dounit "${FILESDIR}"/wpa_supplicant.service |
349 |
systemd_newunit "${FILESDIR}"/wpa_supplicant_at.service 'wpa_supplicant@.service' |
350 |
} |
351 |
|
352 |
pkg_postinst() { |
353 |
elog "If this is a clean installation of wpa_supplicant, you" |
354 |
elog "have to create a configuration file named" |
355 |
elog "/etc/wpa_supplicant/wpa_supplicant.conf" |
356 |
elog |
357 |
elog "An example configuration file is available for reference in" |
358 |
elog "/usr/share/doc/${PF}/" |
359 |
|
360 |
if [[ -e ${ROOT}etc/wpa_supplicant.conf ]] ; then |
361 |
echo |
362 |
ewarn "WARNING: your old configuration file ${ROOT}etc/wpa_supplicant.conf" |
363 |
ewarn "needs to be moved to ${ROOT}etc/wpa_supplicant/wpa_supplicant.conf" |
364 |
fi |
365 |
|
366 |
# Mea culpa, feel free to remove that after some time --mgorny. |
367 |
local fn |
368 |
for fn in wpa_supplicant{,@wlan0}.service; do |
369 |
if [[ -e "${ROOT}"/etc/systemd/system/network.target.wants/${fn} ]] |
370 |
then |
371 |
ebegin "Moving ${fn} to multi-user.target" |
372 |
mv "${ROOT}"/etc/systemd/system/network.target.wants/${fn} \ |
373 |
"${ROOT}"/etc/systemd/system/multi-user.target.wants/ |
374 |
eend ${?} \ |
375 |
"Please try to re-enable ${fn}" |
376 |
fi |
377 |
done |
378 |
} |