Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/aircrack-ng/, net-wireless/aircrack-ng/files/
Date: Tue, 02 Apr 2019 10:32:20
Message-Id: 1554201095.fa69420b6bde916fe20f6fb0fe16d2986caffe2a.alonbl@gentoo
1 commit: fa69420b6bde916fe20f6fb0fe16d2986caffe2a
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 2 10:30:17 2019 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 2 10:31:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa69420b
7
8 net-wireless/aircrack-ng: clean old
9
10 Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 net-wireless/aircrack-ng/Manifest | 3 -
14 .../aircrack-ng/aircrack-ng-1.2_rc1-r1.ebuild | 137 ------------
15 net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild | 119 ----------
16 net-wireless/aircrack-ng/aircrack-ng-1.4.ebuild | 116 ----------
17 .../aircrack-ng/files/aircrack-ng-1.3-8812au.patch | 245 ---------------------
18 net-wireless/aircrack-ng/metadata.xml | 1 -
19 6 files changed, 621 deletions(-)
20
21 diff --git a/net-wireless/aircrack-ng/Manifest b/net-wireless/aircrack-ng/Manifest
22 index da49239d733..b5f3291b13d 100644
23 --- a/net-wireless/aircrack-ng/Manifest
24 +++ b/net-wireless/aircrack-ng/Manifest
25 @@ -1,4 +1 @@
26 -DIST aircrack-ng-1.2-rc1.tar.gz 2046476 BLAKE2B aec848a3dedae564cc29fc94475d0dec9cfb33af5185a4bceb9f88c1a3cce7a910439405fd76390ca352e52393b9094e570bf54980af27a50709a36ffab33752 SHA512 897427c535846c0ede58b2f99ed469bc01f50f9b38fc70d5711261fca7342339192cc0c71a724fc04c99114db7534d825a44f09e7bc5754286ec44933a33e40d
27 -DIST aircrack-ng-1.3.tar.gz 4501507 BLAKE2B ae73303fbc0c632faa2468d5fbf0daa318767633bf92571cc53fd79d8df518c1fc03ad83397e12585a804f0171e3fe3865c070ccdb39cb43ae46edbfc880b37e SHA512 0c2376ac702cd36021b9017b40c5af9466c5689832a0e40debcb8c0a2cd13ec942170930903c4e2e06678c429a89cd4d78ab43e925b707f816bf48d6c9514ec9
28 -DIST aircrack-ng-1.4.tar.gz 7138756 BLAKE2B 35a499877671be99271116eb4c5a26c7c803485e46d5e8e429b5beafe900455e88d52350107f96f5fb1f46643120a1ad63c96ab45672efdcbd23bdcc54aeedf4 SHA512 cad82b6fcd64c094d427a985cd1f5bc95434f83db1811e2c8798932983759e0846cf66034e444ba8ec861547d3107560e0f1430ec03e3d3a080c5fb1207a2a09
29 DIST aircrack-ng-1.5.2.tar.gz 7138360 BLAKE2B cfc178d76273bb1cf6c34b1656a710d046a094f9c772a562f19ae783c30810cf7b6aa8668566ef6998af79090266771aeea8037b446eb0b9755b602ddcebc0d2 SHA512 72c249782dda3a875fbec98e4fe0e6044a6f123ebd36341a5f42733dfe6c26d96b5c74f67c0547b81c5dd5e2f52a6f475b424885f8e6fa21279ac539228038f5
30
31 diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.2_rc1-r1.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.2_rc1-r1.ebuild
32 deleted file mode 100644
33 index 9354eacf13e..00000000000
34 --- a/net-wireless/aircrack-ng/aircrack-ng-1.2_rc1-r1.ebuild
35 +++ /dev/null
36 @@ -1,137 +0,0 @@
37 -# Copyright 1999-2019 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI="5"
41 -
42 -PYTHON_COMPAT=( python2_7 )
43 -DISTUTILS_OPTIONAL=1
44 -
45 -inherit toolchain-funcs distutils-r1 flag-o-matic
46 -
47 -DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
48 -HOMEPAGE="http://www.aircrack-ng.org"
49 -
50 -if [[ ${PV} == "9999" ]] ; then
51 - inherit subversion
52 - ESVN_REPO_URI="http://svn.aircrack-ng.org/trunk"
53 - KEYWORDS=""
54 - S="${WORKDIR}/${PN}"
55 -else
56 - MY_PV=${PV/_/-}
57 - SRC_URI="http://download.${PN}.org/${PN}-${MY_PV}.tar.gz"
58 - KEYWORDS="amd64 arm ~ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
59 - S="${WORKDIR}/${PN}-${MY_PV}"
60 -fi
61 -
62 -LICENSE="GPL-2"
63 -SLOT="0"
64 -
65 -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD +netlink +pcre +sqlite +unstable"
66 -
67 -DEPEND="net-libs/libpcap
68 - dev-libs/openssl:*
69 - netlink? ( dev-libs/libnl:3 )
70 - pcre? ( dev-libs/libpcre )
71 - airdrop-ng? ( ${PYTHON_DEPS} )
72 - airgraph-ng? ( ${PYTHON_DEPS} )
73 - sqlite? ( >=dev-db/sqlite-3.4 )
74 - unstable? ( sys-libs/zlib )"
75 -RDEPEND="${DEPEND}
76 - kernel_linux? (
77 - net-wireless/iw
78 - net-wireless/wireless-tools
79 - sys-apps/ethtool
80 - sys-apps/usbutils
81 - sys-apps/pciutils )
82 - sys-apps/hwids
83 - airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )"
84 -
85 -REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} )
86 - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )"
87 -
88 -src_compile() {
89 - if [[ $($(tc-getCC) --version) == clang* ]] ; then
90 - die "Please use gcc, upstream bug http://trac.aircrack-ng.org/ticket/1144"
91 - fi
92 -
93 - if [[ ${PV} == "9999" ]] ; then
94 - liveflags=REVFLAGS=-D_REVISION="${ESVN_WC_REVISION}"
95 - fi
96 -
97 - emake \
98 - CC="$(tc-getCC)" \
99 - AR="$(tc-getAR)" \
100 - LD="$(tc-getLD)" \
101 - RANLIB="$(tc-getRANLIB)" \
102 - libnl=$(usex netlink true false) \
103 - pcre=$(usex pcre true false) \
104 - sqlite=$(usex sqlite true false) \
105 - unstable=$(usex unstable true false) \
106 - ${liveflags}
107 -
108 - if use airgraph-ng; then
109 - cd "${S}/scripts/airgraph-ng"
110 - distutils-r1_src_compile
111 - fi
112 - if use airdrop-ng; then
113 - cd "${S}/scripts/airdrop-ng"
114 - distutils-r1_src_compile
115 - fi
116 -}
117 -
118 -src_test() {
119 - if [[ ${PV} == "9999" ]] ; then
120 - liveflags=REVFLAGS=-D_REVISION="${ESVN_WC_REVISION}"
121 - fi
122 -
123 - emake check \
124 - libnl=$(usex netlink true false) \
125 - pcre=$(usex pcre true false) \
126 - sqlite=$(usex sqlite true false) \
127 - unstable=$(usex unstable true false) \
128 - ${liveflags}
129 -}
130 -
131 -src_install() {
132 - if [[ ${PV} == "9999" ]] ; then
133 - liveflags=REVFLAGS=-D_REVISION="${ESVN_WC_REVISION}"
134 - fi
135 -
136 - emake \
137 - prefix="${ED}/usr" \
138 - libnl=$(usex netlink true false) \
139 - pcre=$(usex pcre true false) \
140 - sqlite=$(usex sqlite true false) \
141 - unstable=$(usex unstable true false) \
142 - ${liveflags} \
143 - install
144 -
145 - dodoc AUTHORS ChangeLog INSTALLING README
146 -
147 - if use airgraph-ng; then
148 - cd "${S}/scripts/airgraph-ng"
149 - distutils-r1_src_install
150 - fi
151 - if use airdrop-ng; then
152 - cd "${S}/scripts/airdrop-ng"
153 - distutils-r1_src_install
154 - fi
155 -
156 - #we don't need aircrack-ng's oui updater, we have our own
157 - rm "${ED}"/usr/sbin/airodump-ng-oui-update
158 -}
159 -
160 -pkg_postinst() {
161 - # Message is (c) FreeBSD
162 - # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5
163 - if use kernel_FreeBSD ; then
164 - einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor"
165 - einfo "mode of your wireless card. So do not care about what the manpages say about"
166 - einfo "airmon-ng, airodump-ng sets monitor mode automatically."
167 - echo
168 - einfo "To return from monitor mode, issue the following command:"
169 - einfo " ifconfig \${INTERFACE} -mediaopt monitor"
170 - einfo
171 - einfo "For aireplay-ng you need FreeBSD >= 7.0."
172 - fi
173 -}
174
175 diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild
176 deleted file mode 100644
177 index 5e921f46691..00000000000
178 --- a/net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild
179 +++ /dev/null
180 @@ -1,119 +0,0 @@
181 -# Copyright 1999-2018 Gentoo Authors
182 -# Distributed under the terms of the GNU General Public License v2
183 -
184 -EAPI=7
185 -
186 -PYTHON_COMPAT=( python2_7 )
187 -DISTUTILS_OPTIONAL=1
188 -
189 -inherit toolchain-funcs distutils-r1 flag-o-matic autotools
190 -
191 -DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
192 -HOMEPAGE="http://www.aircrack-ng.org"
193 -
194 -if [[ ${PV} == "9999" ]] ; then
195 - inherit git-r3
196 - EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git"
197 - KEYWORDS="amd64 arm x86"
198 -else
199 - MY_PV=${PV/_/-}
200 - SRC_URI="https://download.aircrack-ng.org/${P}.tar.gz"
201 - KEYWORDS="amd64 arm ~ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
202 -fi
203 -
204 -LICENSE="GPL-2"
205 -SLOT="0"
206 -
207 -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD libressl +netlink +pcre +sqlite +experimental"
208 -
209 -DEPEND="net-libs/libpcap
210 - !libressl? ( dev-libs/openssl:0= )
211 - libressl? ( dev-libs/libressl:0= )
212 - netlink? ( dev-libs/libnl:3 )
213 - pcre? ( dev-libs/libpcre )
214 - airdrop-ng? ( ${PYTHON_DEPS} )
215 - airgraph-ng? ( ${PYTHON_DEPS} )
216 - experimental? ( sys-libs/zlib )
217 - sqlite? ( >=dev-db/sqlite-3.4 )"
218 -RDEPEND="${DEPEND}"
219 -PDEPEND="kernel_linux? (
220 - net-wireless/iw
221 - net-wireless/wireless-tools
222 - sys-apps/ethtool
223 - sys-apps/usbutils
224 - sys-apps/pciutils )
225 - sys-apps/hwids
226 - airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )"
227 -
228 -REQUIRED_USE="
229 - airdrop-ng? ( ${PYTHON_REQUIRED_USE} )
230 - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )"
231 -
232 -PATCHES=(
233 - "${FILESDIR}/${P}-8812au.patch"
234 -)
235 -
236 -src_prepare() {
237 - default
238 - eautoreconf
239 -}
240 -
241 -src_configure() {
242 - econf \
243 - --disable-asan \
244 - --enable-shared \
245 - --disable-static \
246 - --without-opt \
247 - $(use_enable netlink libnl) \
248 - $(use_with experimental) \
249 - $(use_with sqlite sqlite3)
250 -}
251 -
252 -src_compile() {
253 - if [[ $($(tc-getCC) --version) == clang* ]] ; then
254 - #https://bugs.gentoo.org/show_bug.cgi?id=472890
255 - filter-flags -frecord-gcc-switches
256 - fi
257 -
258 - default
259 -
260 - if use airgraph-ng; then
261 - cd "${S}/scripts/airgraph-ng"
262 - distutils-r1_src_compile
263 - fi
264 - if use airdrop-ng; then
265 - cd "${S}/scripts/airdrop-ng"
266 - distutils-r1_src_compile
267 - fi
268 -}
269 -
270 -src_install() {
271 - default
272 -
273 - if use airgraph-ng; then
274 - cd "${S}/scripts/airgraph-ng"
275 - distutils-r1_src_install
276 - fi
277 - if use airdrop-ng; then
278 - cd "${S}/scripts/airdrop-ng"
279 - distutils-r1_src_install
280 - fi
281 -
282 - # we don't need aircrack-ng's oui updater, we have our own
283 - rm "${ED}"/usr/sbin/airodump-ng-oui-update
284 -}
285 -
286 -pkg_postinst() {
287 - # Message is (c) FreeBSD
288 - # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5
289 - if use kernel_FreeBSD ; then
290 - einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor"
291 - einfo "mode of your wireless card. So do not care about what the manpages say about"
292 - einfo "airmon-ng, airodump-ng sets monitor mode automatically."
293 - echo
294 - einfo "To return from monitor mode, issue the following command:"
295 - einfo " ifconfig \${INTERFACE} -mediaopt monitor"
296 - einfo
297 - einfo "For aireplay-ng you need FreeBSD >= 7.0."
298 - fi
299 -}
300
301 diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.4.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.4.ebuild
302 deleted file mode 100644
303 index f5006d8091e..00000000000
304 --- a/net-wireless/aircrack-ng/aircrack-ng-1.4.ebuild
305 +++ /dev/null
306 @@ -1,116 +0,0 @@
307 -# Copyright 1999-2018 Gentoo Authors
308 -# Distributed under the terms of the GNU General Public License v2
309 -
310 -EAPI=7
311 -
312 -PYTHON_COMPAT=( python2_7 )
313 -DISTUTILS_OPTIONAL=1
314 -
315 -inherit toolchain-funcs distutils-r1 flag-o-matic autotools
316 -
317 -DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
318 -HOMEPAGE="http://www.aircrack-ng.org"
319 -
320 -if [[ ${PV} == "9999" ]] ; then
321 - inherit git-r3
322 - EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git"
323 - KEYWORDS=""
324 -else
325 - MY_PV=${PV/_/-}
326 - SRC_URI="https://download.aircrack-ng.org/${P}.tar.gz"
327 - KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
328 -fi
329 -
330 -LICENSE="GPL-2"
331 -SLOT="0"
332 -
333 -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD libressl +netlink +pcre +sqlite +experimental"
334 -
335 -DEPEND="net-libs/libpcap
336 - sys-apps/hwloc
337 - !libressl? ( dev-libs/openssl:0= )
338 - libressl? ( dev-libs/libressl:0= )
339 - netlink? ( dev-libs/libnl:3 )
340 - pcre? ( dev-libs/libpcre )
341 - airdrop-ng? ( ${PYTHON_DEPS} )
342 - airgraph-ng? ( ${PYTHON_DEPS} )
343 - experimental? ( sys-libs/zlib )
344 - sqlite? ( >=dev-db/sqlite-3.4 )"
345 -RDEPEND="${DEPEND}"
346 -PDEPEND="kernel_linux? (
347 - net-wireless/iw
348 - net-wireless/wireless-tools
349 - sys-apps/ethtool
350 - sys-apps/usbutils
351 - sys-apps/pciutils )
352 - sys-apps/hwids
353 - airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )"
354 -
355 -REQUIRED_USE="
356 - airdrop-ng? ( ${PYTHON_REQUIRED_USE} )
357 - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )"
358 -
359 -src_prepare() {
360 - default
361 - eautoreconf
362 -}
363 -
364 -src_configure() {
365 - econf \
366 - --disable-asan \
367 - --enable-shared \
368 - --disable-static \
369 - --without-opt \
370 - $(use_enable netlink libnl) \
371 - $(use_with experimental) \
372 - $(use_with sqlite sqlite3)
373 -}
374 -
375 -src_compile() {
376 - if [[ $($(tc-getCC) --version) == clang* ]] ; then
377 - #https://bugs.gentoo.org/show_bug.cgi?id=472890
378 - filter-flags -frecord-gcc-switches
379 - fi
380 -
381 - default
382 -
383 - if use airgraph-ng; then
384 - cd "${S}/scripts/airgraph-ng"
385 - distutils-r1_src_compile
386 - fi
387 - if use airdrop-ng; then
388 - cd "${S}/scripts/airdrop-ng"
389 - distutils-r1_src_compile
390 - fi
391 -}
392 -
393 -src_install() {
394 - default
395 -
396 - if use airgraph-ng; then
397 - cd "${S}/scripts/airgraph-ng"
398 - distutils-r1_src_install
399 - fi
400 - if use airdrop-ng; then
401 - cd "${S}/scripts/airdrop-ng"
402 - distutils-r1_src_install
403 - fi
404 -
405 - # we don't need aircrack-ng's oui updater, we have our own
406 - rm "${ED}"/usr/sbin/airodump-ng-oui-update
407 -}
408 -
409 -pkg_postinst() {
410 - # Message is (c) FreeBSD
411 - # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5
412 - if use kernel_FreeBSD ; then
413 - einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor"
414 - einfo "mode of your wireless card. So do not care about what the manpages say about"
415 - einfo "airmon-ng, airodump-ng sets monitor mode automatically."
416 - echo
417 - einfo "To return from monitor mode, issue the following command:"
418 - einfo " ifconfig \${INTERFACE} -mediaopt monitor"
419 - einfo
420 - einfo "For aireplay-ng you need FreeBSD >= 7.0."
421 - fi
422 -}
423
424 diff --git a/net-wireless/aircrack-ng/files/aircrack-ng-1.3-8812au.patch b/net-wireless/aircrack-ng/files/aircrack-ng-1.3-8812au.patch
425 deleted file mode 100644
426 index e5343023aae..00000000000
427 --- a/net-wireless/aircrack-ng/files/aircrack-ng-1.3-8812au.patch
428 +++ /dev/null
429 @@ -1,245 +0,0 @@
430 -diff --git a/scripts/airmon-ng.linux b/scripts/airmon-ng.linux
431 -index 7f488391..4d0a5e0c 100755
432 ---- a/scripts/airmon-ng.linux
433 -+++ b/scripts/airmon-ng.linux
434 -@@ -106,7 +106,18 @@ else
435 - fi
436 -
437 - if [ -d /sys/bus/pci ] || [ -d /sys/bus/pci_express ] || [ -d /proc/bus/pci ]; then
438 -- if [ ! -x "$(command -v lspci 2>&1)" ]; then
439 -+ PCI_DEVICES=0
440 -+ if [ -d /sys/bus/pci/devices ] && [ "$(ls -1 /sys/bus/pci/devices 2>/dev/null | wc -l)" != '0' ]; then
441 -+ PCI_DEVICES=1
442 -+ elif [ -r /proc/bus/pci/devices ] && [ -n "$(cat /proc/bus/pci/devices 2>/dev/null)" ]; then
443 -+ PCI_DEVICES=1
444 -+ elif [ -d /sys/bus/pci_express/devices ] && [ -n "$(ls -1 /sys/bus/pci_express/devices 2>/dev/null | wc -l)" != '0' ]; then
445 -+ PCI_DEVICES=1
446 -+ fi
447 -+
448 -+ if [ ${PCI_DEVICES} -eq 0 ]; then
449 -+ LSPCI=0
450 -+ elif [ ! -x "$(command -v lspci 2>&1)" ]; then
451 - printf "Please install lspci from your distro's package manager.\n"
452 - exit 1
453 - else
454 -@@ -347,21 +358,21 @@ ifaceIsUp() {
455 - # fi
456 - #}
457 -
458 --#startDeprecatedIface() {
459 --# iwconfig ${1} mode monitor > /dev/null 2>&1
460 --# if [ -n "${2}" ]; then
461 --# if [ ${2} -lt 1000 ]; then
462 --# iwconfig ${1} channel ${2} > /dev/null 2>&1
463 --# else
464 --# iwconfig ${1} freq ${2}000000 > /dev/null 2>&1
465 --# fi
466 --# else
467 --# iwconfig ${1} channel ${CH} > /dev/null 2>&1
468 --# fi
469 --# iwconfig ${1} key off > /dev/null 2>&1
470 --# setLink ${1} up
471 --# printf " (monitor mode enabled)"
472 --#}
473 -+startDeprecatedIface() {
474 -+ iwconfig ${1} mode monitor > /dev/null 2>&1
475 -+ if [ -n "${2}" ]; then
476 -+ if [ ${2} -lt 1000 ]; then
477 -+ iwconfig ${1} channel ${2} > /dev/null 2>&1
478 -+ else
479 -+ iwconfig ${1} freq ${2}000000 > /dev/null 2>&1
480 -+ fi
481 -+ else
482 -+ iwconfig ${1} channel ${CH} > /dev/null 2>&1
483 -+ fi
484 -+ iwconfig ${1} key off > /dev/null 2>&1
485 -+ setLink ${1} up
486 -+ printf " (monitor mode enabled)"
487 -+}
488 -
489 - yesorno() {
490 - read input
491 -@@ -419,7 +430,7 @@ startMac80211Iface() {
492 - done
493 - fi
494 - #we didn't bail means we need a monitor interface
495 -- if [ ${#1} -gt 12 ]; then
496 -+ if [ ${#1} -gt 12 ]; then
497 - printf "Interface ${1}mon is too long for linux so it will be renamed to the old style (wlan#) name.\n"
498 - findFreeInterface monitor
499 - else
500 -@@ -431,10 +442,16 @@ startMac80211Iface() {
501 - fi
502 - #we didn't bail means our target interface is available
503 - setLink ${1} down
504 -+ if [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ]; then
505 -+ #grumble grumble, seriously crap vendor driver
506 -+ startDeprecatedIface ${1}
507 -+ setChannelMac80211 ${1}
508 -+ return
509 -+ fi
510 - IW_ERROR="$(iw phy ${PHYDEV} interface add ${1}mon type monitor 2>&1)"
511 - if [ -z "${IW_ERROR}" ]; then
512 - sleep 1
513 -- if [ "$(cat /sys/class/ieee80211/${PHYDEV}/device/net/${1}mon/type)" = "803" ]; then
514 -+ if [ -r "/sys/class/ieee80211/${PHYDEV}/device/net/${1}mon/type" ] && [ "$(cat /sys/class/ieee80211/${PHYDEV}/device/net/${1}mon/type)" = "803" ]; then
515 - setChannelMac80211 ${1}mon
516 - else
517 - printf "\nNewly created monitor mode interface ${1}mon is *NOT* in monitor mode.\n"
518 -@@ -456,15 +473,12 @@ startMac80211Iface() {
519 - printf "\nPlease run \"airmon-ng check kill\" and/or kill your network manager."
520 - fi
521 - else
522 -- iw ${1} del
523 -+ isRPiWireless && iw ${1} del
524 - printf "\t\t(mac80211 station mode vif disabled for [${PHYDEV}]${1})\n"
525 - fi
526 - }
527 -
528 --NEXMON_FIRMWARE_DIR=/opt
529 --NEXMON_DRIVER_DIR=/opt
530 --
531 --hasRPiWireless() {
532 -+isRPiWireless() {
533 - local HW_REV=$(grep Revision /proc/cpuinfo | awk '{print $3}')
534 - [ -z "${HW_REV}" ] && return 0
535 - # http://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/
536 -@@ -475,29 +489,6 @@ hasRPiWireless() {
537 - return 0
538 - }
539 -
540 --isNexutilPresent() {
541 -- type nexutil >/dev/null 2>/dev/null
542 -- if [ $? -eq 0 ]; then
543 -- return 1
544 -- fi
545 -- return 0
546 --}
547 --
548 --startNexmonIface() {
549 -- [ -z $1 ] && return
550 --
551 -- if [ -n "$(iwconfig $1 | grep 'Mode:Monitor')" ] && [ -n "$(nexutil -m | grep 'monitor: 2')" ]; then
552 -- printf "\n\tInterface $1 is already in monitor mode\n"
553 -- else
554 -- ifconfig $1 up 2>/dev/null
555 -- iwconfig $1 mode monitor 2>/dev/null
556 -- [ "$1" = "wlan0" ] && nexutil -m2
557 -- [ "$1" = "wlan0" ] || nexutil -m2 -I $1
558 -- iwconfig $1 channel ${CH}
559 -- printf "\n\t\t(monitor mode enabled for [${PHYDEV}]${1})\n"
560 -- fi
561 --}
562 --
563 - startwlIface() {
564 - if [ -f "/proc/brcm_monitor0" ]; then
565 - if [ -r "/proc/brcm_monitor0" ]; then
566 -@@ -587,12 +578,12 @@ setChannelMac80211() {
567 - fi
568 - }
569 -
570 --#stopDeprecatedIface() {
571 --# setLink $1 down
572 --# iwconfig $1 mode Managed > /dev/null 2>&1
573 --# setLink $1 up
574 --# printf " (monitor mode disabled)"
575 --#}
576 -+stopDeprecatedIface() {
577 -+ setLink $1 down
578 -+ iwconfig $1 mode Managed > /dev/null 2>&1
579 -+ setLink $1 up
580 -+ printf " (monitor mode disabled)"
581 -+}
582 -
583 - stopMac80211Iface() {
584 - if [ -f /sys/class/net/${1}/type ]; then
585 -@@ -605,6 +596,11 @@ stopMac80211Iface() {
586 - printf "please report it.\n"
587 - exit 1
588 - else
589 -+ if [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ]; then
590 -+ #grumble grumble, seriously crap vendor driver
591 -+ stopDeprecatedIface ${1}
592 -+ return
593 -+ fi
594 - if [ "${ELITE}" = "0" ]; then
595 - local need_sta=1
596 - if [ -d /sys/class/ieee80211/${PHYDEV}/device/net ]; then
597 -@@ -665,18 +661,6 @@ stopMac80211Iface() {
598 - fi
599 - }
600 -
601 --stopNexmonIface() {
602 -- [ -z $1 ] && return
603 -- ifconfig $1 down
604 -- # Running nexutil is not necessary, it gets reset when putting interface down
605 -- [ "$1" = "wlan0" ] && nexutil -m0
606 -- [ "$1" = "wlan0" ] || nexutil -m0 -I $1
607 -- ifconfig $1 down
608 -- ifconfig $1 up 2> /dev/null
609 -- iwconfig $1 mode managed 2> /dev/null
610 -- printf "\n\t\t(monitor mode disabled for [${PHYDEV}]${1})\n"
611 --}
612 --
613 - stopwlIface() {
614 - if [ -f "/proc/brcm_monitor0" ]; then
615 - if [ -r "/proc/brcm_monitor0" ]; then
616 -@@ -751,6 +735,12 @@ getDriver() {
617 - if [ "$DRIVER" = "rtl8187" ] && [ "$STACK" = "ieee80211" ]; then
618 - DRIVER="r8187"
619 - fi
620 -+ if [ "$DRIVER" = "rtl88xxau" ]; then
621 -+ DRIVER="88XXau"
622 -+ fi
623 -+ if [ "$DRIVER" = "rtl8812au" ]; then
624 -+ DRIVER="8812au"
625 -+ fi
626 -
627 - #Here we will catch the broken lying drivers not caught above
628 - #currently this only functions for pci devices and not usb since lsusb has no -k option
629 -@@ -795,6 +785,8 @@ getFrom() {
630 - FROM="V"
631 - elif [ "$DRIVER" = "rt5390sta" ]; then
632 - FROM="V"
633 -+ elif [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ]; then
634 -+ FROM="V"
635 - fi
636 - elif modinfo -F filename $DRIVER 2>&1 | grep -q 'updates/drivers'
637 - then
638 -@@ -1346,8 +1338,10 @@ if [ "$DEBUG" = "1" ]; then
639 - fi
640 - fi
641 - if [ "$VERBOSE" = "1" ]; then
642 -- lsb_release -a
643 -- printf "\n"
644 -+ if [ -n "$(command -v lsb_release 2> /dev/null)" ]; then
645 -+ lsb_release -a
646 -+ printf "\n"
647 -+ fi
648 - uname -a
649 -
650 - checkvm
651 -@@ -1493,23 +1487,6 @@ for iface in $(printf "${iface_list}"); do
652 - if [ "$1" = "stop" ] && [ "$2" = "$iface" ]; then
653 - stopwlIface $iface
654 - fi
655 -- elif [ "${CHIPSET}" = 'Broadcom 43430' ] || [ "${CHIPSET}" = 'Broadcom 43455' ]; then
656 -- hasRPiWireless
657 -- if [ $? -eq 0 ]; then
658 -- printf "\n\tNot a Raspberry Pi 3, 3B+ or Zero Wireless, cannot put in monitor mode.\n"
659 -- else
660 -- isNexutilPresent
661 -- if [ $? -eq 0 ]; then
662 -- printf "\n\tMissing nexutil, cannot switch to monitor mode.\n"
663 -- else
664 -- if [ "$1" = "start" ] && [ "$2" = "$iface" ]; then
665 -- startNexmonIface $iface
666 -- fi
667 -- if [ "$1" = "stop" ] && [ "$2" = "$iface" ]; then
668 -- stopNexmonIface $iface
669 -- fi
670 -- fi
671 -- fi
672 - elif [ "$MAC80211" = "1" ]; then
673 - if [ "$1" = "start" ] && [ "$2" = "$iface" ]; then
674 - startMac80211Iface $iface
675
676 diff --git a/net-wireless/aircrack-ng/metadata.xml b/net-wireless/aircrack-ng/metadata.xml
677 index 7e8481fd0b0..79298996015 100644
678 --- a/net-wireless/aircrack-ng/metadata.xml
679 +++ b/net-wireless/aircrack-ng/metadata.xml
680 @@ -24,6 +24,5 @@
681 <flag name="airgraph-ng">Build airgraph-ng</flag>
682 <flag name="experimental">Build the "experimental" tools which may randomly fail to run properly</flag>
683 <flag name="netlink">Use netlink for channel control instead of WEXT</flag>
684 - <flag name="unstable">Build the "unstable" tools which may randomly fail to run properly</flag>
685 </use>
686 </pkgmetadata>