From 43793fab84041cfc5c60c0151d1591b8a69fb24a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Aug 2018 07:36:27 +0100 Subject: gentoo resync : 25.08.2018 --- net-wireless/aircrack-ng/Manifest | 12 +- net-wireless/aircrack-ng/aircrack-ng-1.2.ebuild | 131 ----------------- .../aircrack-ng/aircrack-ng-1.2_rc4-r1.ebuild | 117 --------------- net-wireless/aircrack-ng/aircrack-ng-1.3-r1.ebuild | 131 ----------------- net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild | 120 ++++++++++++++++ net-wireless/aircrack-ng/aircrack-ng-9999.ebuild | 46 +++--- .../aircrack-ng/files/aircrack-ng-1.3-8812au.patch | 157 +++++++++++++++++++-- 7 files changed, 282 insertions(+), 432 deletions(-) delete mode 100644 net-wireless/aircrack-ng/aircrack-ng-1.2.ebuild delete mode 100644 net-wireless/aircrack-ng/aircrack-ng-1.2_rc4-r1.ebuild delete mode 100644 net-wireless/aircrack-ng/aircrack-ng-1.3-r1.ebuild create mode 100644 net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild (limited to 'net-wireless/aircrack-ng') diff --git a/net-wireless/aircrack-ng/Manifest b/net-wireless/aircrack-ng/Manifest index 5a2a8e3d40ce..e499f7bf2983 100644 --- a/net-wireless/aircrack-ng/Manifest +++ b/net-wireless/aircrack-ng/Manifest @@ -1,13 +1,9 @@ AUX aircrack-ng-1.2-no-force-stack-protector.patch 2245 BLAKE2B a7f200711a4e24cc92d4626d24c62abe11a2d378e8876a801a516aa2023b7aa7566c868e890186cebf9dacecc59037b23c39380b1b435b0f0985a02f939ccfec SHA512 35e5f717bc3b90507a879bbd4ffd3bb88c7bc98676abac1241cbc50dbb1bcf2c53e5c45514b643d7ad7d86d0b74e662803de155ae6bbf430a1fdb32e50682068 AUX aircrack-ng-1.2_rc4-openssl.patch 1227 BLAKE2B ac474222d14a25d6ea4f95c313f0f660940cdacd0ed4295e869a91a81f30284a669fd1e49959d1f6c7fd0c015cbc93464181b3e79571751d400400323b276934 SHA512 142542996e83f729bf8c7e77ac0d4be428b60368c7c005c2dda6c7fe7d45cbe029381523059566a35f1c8d748c0aaf9e46086cbf9ce429f22b2c61ae78a6ba1c -AUX aircrack-ng-1.3-8812au.patch 3453 BLAKE2B 6cc77e78bd1598d9ce1c4accb1ea79d68eb9f3cde9d4306f0d06ec81ad1d3d52b7b6d3de20144de7de5ee9e14274e95bc33fc976d5b34624006f32934c2a6d7f SHA512 9fc1effa2498f8f5f055d50431bb9268ca7307005cc7e9f9e8c91dc296ab352645f883bacbc84464b06faf955a7ad34a2d042ed495f576a7f679c75f291464cb +AUX aircrack-ng-1.3-8812au.patch 7279 BLAKE2B 80ce8246b2719bf897c22d727beb3fe71d58e9866e35e9d4930535b4695044d9183d4e7f781c97ed5ab3dd45e59453d10239482073baa75f3b2c9be0e02556b9 SHA512 53cecc21d6b091e3ebbd2c163a918513382d35697f7df5e2462a774863e3cbbfdecd5aebe341b9b62bb1987ee8d22acbd962526e78b6f6537185bcb286ffcbc3 DIST aircrack-ng-1.2-rc1.tar.gz 2046476 BLAKE2B aec848a3dedae564cc29fc94475d0dec9cfb33af5185a4bceb9f88c1a3cce7a910439405fd76390ca352e52393b9094e570bf54980af27a50709a36ffab33752 SHA512 897427c535846c0ede58b2f99ed469bc01f50f9b38fc70d5711261fca7342339192cc0c71a724fc04c99114db7534d825a44f09e7bc5754286ec44933a33e40d -DIST aircrack-ng-1.2-rc4.tar.gz 4379880 BLAKE2B 8034e99a9a7117b0552ecd82603883661d7442970a24d26f4754122abd07cc661fbeb57519cecbefb6eea1fc0e8b0f228a116a04f07e1a7d2eb41ea4b5f6040b SHA512 f1e1d465813a5f00fd8f8b287353033ea30b657a4c3a9fe81281ab2546d3238690f0659076bff53703fbc796ba40efb16115804d21f8516adca2c774fefea20c -DIST aircrack-ng-1.2.tar.gz 4517658 BLAKE2B 1a3d17608dafe69a7a500526807310bf9ae8f0f14ed4198d06fc1cd6287fa25aeed996bad85c82b9ed87c214951e2bbc73384513361b7e8ce6ba05ef32f6530c SHA512 efc8cd17994fd74dcdd60e4ff26f81dc4f090a368668c2b1d62e204d2a9c001f2614a9d2ad0e4ae0ae38fb71e1957e0342f8216d757e38db105b1e467de82bd9 -DIST aircrack-ng-1.3.tar.gz 4182502 BLAKE2B d18d3644fd5bad7a45d8684a50a42d84d9e0e832e88876a34cb7b308c4496c7b1d39159cb24c19097b7ca4286f62560b509e84e816d65c77d2f72883dd3c9457 SHA512 bc092f84fb204b5764a16a230695b69ff916aceae865bf73827c56b155100e7bd64941d0c5f999585d25ee8faad2d35a3c580a57b60c320f7857bd8750558961 -EBUILD aircrack-ng-1.2.ebuild 3179 BLAKE2B afccc183aff511d9cbe26c50580b7a9ca3d69d152980927fa9b66f8d7d0feff53142e65e986f64fe46ee5e989a05275f7ec2770478c914f04e451c938ba0ddec SHA512 fa5e63c1fca15ea1830d2ab2a566a65e05d684623ae6cab72f8aa0c3dd3923fd6d01baac519c55134dd05993d801caa93f6e9ce761b4ebe6c1ffc82941bc776a +DIST aircrack-ng-1.3.tar.gz 4501507 BLAKE2B ae73303fbc0c632faa2468d5fbf0daa318767633bf92571cc53fd79d8df518c1fc03ad83397e12585a804f0171e3fe3865c070ccdb39cb43ae46edbfc880b37e SHA512 0c2376ac702cd36021b9017b40c5af9466c5689832a0e40debcb8c0a2cd13ec942170930903c4e2e06678c429a89cd4d78ab43e925b707f816bf48d6c9514ec9 EBUILD aircrack-ng-1.2_rc1-r1.ebuild 3523 BLAKE2B eeda867b14d763a397287928b64217635a2b4b11250b98fc818ce0910c9fa9e30e68a78c02a741c79a653f6c9177d733caaae7e63748c20f29ebd6c4819f007f SHA512 151fec44861e17742ec7cbbbc7198eaf24f9cdd4ceee78902c248fced3ab6df49ed1da466b39f203201e9c9124b5e8b1042df75ef705a7024205c5276853a0d7 -EBUILD aircrack-ng-1.2_rc4-r1.ebuild 2918 BLAKE2B f8f585175b7899e3e367875c23642a60a733118677c91daa68ea3087671cbdd3e853a02f48733080bcc3bf7c3040fb9777409a84e2275d1042b73733e03943b8 SHA512 2e396a16de545a0b39f38ffc243b35f041ecc1f4a62c1b2596a13d91793def3dbaba74a873ac635cbc684dec0c8ea21410ee35994ed3af0c00ed6a1d718ca33f -EBUILD aircrack-ng-1.3-r1.ebuild 3181 BLAKE2B 2fb30fed14d679e0392a0c6a4f40e2b61e6f329b1bc59f80a9a1eafe0ba8d48ff8f32dca509d8c429ed80a407408ae6a7b94a512488f9307ef043c46f561dfed SHA512 a766354d39a2d4c7f51883c121d3a15a125e2cf7bb035dfb98af0ed2e7143b3a098c5e979142ce0549afbbe1c1c891da99a99478763d516710aa46a27b5285fb -EBUILD aircrack-ng-9999.ebuild 3110 BLAKE2B 9ca03f75ab07f78157a6cf27014e83c45a3928d0d0a457993e5e86201a30b06cea11485d060cfd7597556dbe227a3ae4915aa0a8cc7a0ee8bde151cff49de848 SHA512 4904ffb8f45ff1e7c63fb033b77543db69b9813e8549a1ef0c4e70da268563058d6d076f51b463c26151f47105aeacf237e70df6f4e54304f13721e66ea9278a +EBUILD aircrack-ng-1.3-r3.ebuild 2913 BLAKE2B 525fa4983a8796bda57f24583bde0de564e93d649255fea2df1151d6ade8c20a44c5ee3452e20d1704c01d17ab8cd7b5d22f1b192fb30b03cd6e94734ca277de SHA512 171a67bd916ad7e3a22f6ae7c338797b94edad98f22eb0f08876a2efee26ce265fe720901bf78c0107af0a3213081b0f9731c3b45748c307ed5f39b858585e7f +EBUILD aircrack-ng-9999.ebuild 2860 BLAKE2B f827952b3e4619b7271a31fe6db719b829ef338deaaadf8b61821705ae40c533f14df7bbf8f4c0aa1fbf32d8eb04cf881ab472a257031d9abfe0943f2af6f654 SHA512 ff0e04780dcc94123e8f2e1ca40d279207fdd0a87d443092051ab37187e3df1efb0f9d005d1b47be4135e03a33ae7e84937c0e9d6756028c858e848102384e9e MISC metadata.xml 1130 BLAKE2B 9d3c0463a4a1cf4360ce77c550a701a805cd3db5f06ee895aa8888180246d6b51970d23b74b723a241e09bb6dde426055ca8f1288afffa90e8e4abc7d9c4b92a SHA512 0ca935ebf651d221657fda9320fc8a8f8dbabd9d10fc4eebb8b301b63ca8f9316069bee16b2468d227ea5acf53a28747c8479eb776983334b9496d68fefa76ee diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.2.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.2.ebuild deleted file mode 100644 index 972e687e1ba3..000000000000 --- a/net-wireless/aircrack-ng/aircrack-ng-1.2.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -PYTHON_COMPAT=( python2_7 ) -DISTUTILS_OPTIONAL=1 - -inherit toolchain-funcs distutils-r1 flag-o-matic autotools - -DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" -HOMEPAGE="http://www.aircrack-ng.org" - -if [[ ${PV} == "9999" ]] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git" - KEYWORDS="" -else - MY_PV=${PV/_/-} - SRC_URI="http://download.${PN}.org/${PN}-${MY_PV}.tar.gz" - KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="GPL-2" -SLOT="0" - -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD +netlink +pcre +sqlite +experimental" - -DEPEND="net-libs/libpcap - dev-libs/openssl:0= - netlink? ( dev-libs/libnl:3 ) - pcre? ( dev-libs/libpcre ) - airdrop-ng? ( ${PYTHON_DEPS} ) - airgraph-ng? ( ${PYTHON_DEPS} ) - experimental? ( sys-libs/zlib ) - sqlite? ( >=dev-db/sqlite-3.4 )" -RDEPEND="${DEPEND}" -PDEPEND="kernel_linux? ( - net-wireless/iw - net-wireless/wireless-tools - sys-apps/ethtool - sys-apps/usbutils - sys-apps/pciutils ) - sys-apps/hwids - airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" - -REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )" - -pkg_setup() { - MAKE_COMMON=( - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - LD="$(tc-getLD)" \ - RANLIB="$(tc-getRANLIB)" \ - DESTDIR="${ED}" - ) -} - -src_prepare() { - epatch "${FILESDIR}"/aircrack-ng-1.2-no-force-stack-protector.patch - eapply_user - eautoreconf -} - -src_configure() { - econf \ - --disable-asan \ - $(use_enable netlink libnl) \ - $(use_with experimental) \ - $(use_with sqlite sqlite3) \ - --enable-shared \ - --disable-static \ - --without-opt -} - -src_compile() { - if [[ $($(tc-getCC) --version) == clang* ]] ; then - #https://bugs.gentoo.org/show_bug.cgi?id=472890 - filter-flags -frecord-gcc-switches - fi - - emake "${MAKE_COMMON[@]}" - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_compile - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_compile - fi -} - -src_test() { - emake "${MAKE_COMMON[@]}" check -} - -src_install() { - einstalldocs - emake "${MAKE_COMMON[@]}" install - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_install - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_install - fi - - #we don't need aircrack-ng's oui updater, we have our own - rm "${ED}"/usr/sbin/airodump-ng-oui-update -} - -pkg_postinst() { - # Message is (c) FreeBSD - # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5 - if use kernel_FreeBSD ; then - einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor" - einfo "mode of your wireless card. So do not care about what the manpages say about" - einfo "airmon-ng, airodump-ng sets monitor mode automatically." - echo - einfo "To return from monitor mode, issue the following command:" - einfo " ifconfig \${INTERFACE} -mediaopt monitor" - einfo - einfo "For aireplay-ng you need FreeBSD >= 7.0." - fi -} diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.2_rc4-r1.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.2_rc4-r1.ebuild deleted file mode 100644 index 0ea4750ff5b3..000000000000 --- a/net-wireless/aircrack-ng/aircrack-ng-1.2_rc4-r1.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -PYTHON_COMPAT=( python2_7 ) -DISTUTILS_OPTIONAL=1 - -inherit toolchain-funcs distutils-r1 flag-o-matic - -DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" -HOMEPAGE="http://www.aircrack-ng.org" - -MY_PV=${PV/_/-} -SRC_URI="http://download.${PN}.org/${PN}-${MY_PV}.tar.gz" -KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" - -LICENSE="GPL-2" -SLOT="0" - -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD +netlink +pcre +sqlite +experimental" - -DEPEND="net-libs/libpcap - dev-libs/openssl:0= - netlink? ( dev-libs/libnl:3 ) - pcre? ( dev-libs/libpcre ) - airdrop-ng? ( ${PYTHON_DEPS} ) - airgraph-ng? ( ${PYTHON_DEPS} ) - experimental? ( sys-libs/zlib ) - sqlite? ( >=dev-db/sqlite-3.4 )" -RDEPEND="${DEPEND} - kernel_linux? ( - net-wireless/iw - net-wireless/wireless-tools - sys-apps/ethtool - sys-apps/usbutils - sys-apps/pciutils ) - sys-apps/hwids - airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" - -REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )" - -PATCHES=( - "${FILESDIR}/${P}-openssl.patch" -) - -S="${WORKDIR}/${PN}-${MY_PV}" - -pkg_setup() { - MAKE_COMMON=( - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - LD="$(tc-getLD)" \ - RANLIB="$(tc-getRANLIB)" \ - libnl=$(usex netlink true false) \ - pcre=$(usex pcre true false) \ - sqlite=$(usex sqlite true false) \ - experimental=$(usex experimental true false) - prefix="${ED}/usr" \ - ) -} - -src_compile() { - if [[ $($(tc-getCC) --version) == clang* ]] ; then - #https://bugs.gentoo.org/show_bug.cgi?id=472890 - filter-flags -frecord-gcc-switches - fi - - emake "${MAKE_COMMON[@]}" - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_compile - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_compile - fi -} - -src_test() { - emake "${MAKE_COMMON[@]}" check -} - -src_install() { - einstalldocs - emake "${MAKE_COMMON[@]}" install - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_install - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_install - fi - - #we don't need aircrack-ng's oui updater, we have our own - rm "${ED}"/usr/sbin/airodump-ng-oui-update -} - -pkg_postinst() { - # Message is (c) FreeBSD - # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5 - if use kernel_FreeBSD ; then - einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor" - einfo "mode of your wireless card. So do not care about what the manpages say about" - einfo "airmon-ng, airodump-ng sets monitor mode automatically." - echo - einfo "To return from monitor mode, issue the following command:" - einfo " ifconfig \${INTERFACE} -mediaopt monitor" - einfo - einfo "For aireplay-ng you need FreeBSD >= 7.0." - fi -} diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.3-r1.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.3-r1.ebuild deleted file mode 100644 index c35e3fb3d4af..000000000000 --- a/net-wireless/aircrack-ng/aircrack-ng-1.3-r1.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -PYTHON_COMPAT=( python2_7 ) -DISTUTILS_OPTIONAL=1 - -inherit toolchain-funcs distutils-r1 flag-o-matic autotools - -DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" -HOMEPAGE="http://www.aircrack-ng.org" - -if [[ ${PV} == "9999" ]] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git" - KEYWORDS="" -else - MY_PV=${PV/_/-} - SRC_URI="https://github.com/aircrack-ng/aircrack-ng/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="GPL-2" -SLOT="0" - -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD +netlink +pcre +sqlite +experimental" - -DEPEND="net-libs/libpcap - dev-libs/openssl:0= - netlink? ( dev-libs/libnl:3 ) - pcre? ( dev-libs/libpcre ) - airdrop-ng? ( ${PYTHON_DEPS} ) - airgraph-ng? ( ${PYTHON_DEPS} ) - experimental? ( sys-libs/zlib ) - sqlite? ( >=dev-db/sqlite-3.4 )" -RDEPEND="${DEPEND}" -PDEPEND="kernel_linux? ( - net-wireless/iw - net-wireless/wireless-tools - sys-apps/ethtool - sys-apps/usbutils - sys-apps/pciutils ) - sys-apps/hwids - airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" - -REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )" - -pkg_setup() { - MAKE_COMMON=( - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - LD="$(tc-getLD)" \ - RANLIB="$(tc-getRANLIB)" \ - DESTDIR="${ED}" - ) -} - -src_prepare() { - eapply "${FILESDIR}/${P}-8812au.patch" - eapply_user - eautoreconf -} - -src_configure() { - econf \ - --disable-asan \ - $(use_enable netlink libnl) \ - $(use_with experimental) \ - $(use_with sqlite sqlite3) \ - --enable-shared \ - --disable-static \ - --without-opt -} - -src_compile() { - if [[ $($(tc-getCC) --version) == clang* ]] ; then - #https://bugs.gentoo.org/show_bug.cgi?id=472890 - filter-flags -frecord-gcc-switches - fi - - emake "${MAKE_COMMON[@]}" - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_compile - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_compile - fi -} - -src_test() { - emake "${MAKE_COMMON[@]}" check -} - -src_install() { - einstalldocs - emake "${MAKE_COMMON[@]}" install - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_install - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_install - fi - - #we don't need aircrack-ng's oui updater, we have our own - rm "${ED}"/usr/sbin/airodump-ng-oui-update -} - -pkg_postinst() { - # Message is (c) FreeBSD - # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5 - if use kernel_FreeBSD ; then - einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor" - einfo "mode of your wireless card. So do not care about what the manpages say about" - einfo "airmon-ng, airodump-ng sets monitor mode automatically." - echo - einfo "To return from monitor mode, issue the following command:" - einfo " ifconfig \${INTERFACE} -mediaopt monitor" - einfo - einfo "For aireplay-ng you need FreeBSD >= 7.0." - fi -} diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild new file mode 100644 index 000000000000..e5103942e69c --- /dev/null +++ b/net-wireless/aircrack-ng/aircrack-ng-1.3-r3.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_OPTIONAL=1 + +inherit toolchain-funcs distutils-r1 flag-o-matic autotools + +DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" +HOMEPAGE="http://www.aircrack-ng.org" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git" + KEYWORDS="amd64 x86" +else + MY_PV=${PV/_/-} + SRC_URI="https://download.aircrack-ng.org/${P}.tar.gz" + KEYWORDS="amd64 ~arm ~ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD libressl +netlink +pcre +sqlite +experimental" + +DEPEND="net-libs/libpcap + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + netlink? ( dev-libs/libnl:3 ) + pcre? ( dev-libs/libpcre ) + airdrop-ng? ( ${PYTHON_DEPS} ) + airgraph-ng? ( ${PYTHON_DEPS} ) + experimental? ( sys-libs/zlib ) + sqlite? ( >=dev-db/sqlite-3.4 )" +RDEPEND="${DEPEND}" +PDEPEND="kernel_linux? ( + net-wireless/iw + net-wireless/wireless-tools + sys-apps/ethtool + sys-apps/usbutils + sys-apps/pciutils ) + sys-apps/hwids + airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" + +REQUIRED_USE=" + airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) + airgraph-ng? ( ${PYTHON_REQUIRED_USE} ) +" + +PATCHES=( + "${FILESDIR}/${P}-8812au.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --disable-asan \ + --enable-shared \ + --disable-static \ + --without-opt \ + $(use_enable netlink libnl) \ + $(use_with experimental) \ + $(use_with sqlite sqlite3) +} + +src_compile() { + if [[ $($(tc-getCC) --version) == clang* ]] ; then + #https://bugs.gentoo.org/show_bug.cgi?id=472890 + filter-flags -frecord-gcc-switches + fi + + default + + if use airgraph-ng; then + cd "${S}/scripts/airgraph-ng" + distutils-r1_src_compile + fi + if use airdrop-ng; then + cd "${S}/scripts/airdrop-ng" + distutils-r1_src_compile + fi +} + +src_install() { + default + + if use airgraph-ng; then + cd "${S}/scripts/airgraph-ng" + distutils-r1_src_install + fi + if use airdrop-ng; then + cd "${S}/scripts/airdrop-ng" + distutils-r1_src_install + fi + + # we don't need aircrack-ng's oui updater, we have our own + rm "${ED}"/usr/sbin/airodump-ng-oui-update +} + +pkg_postinst() { + # Message is (c) FreeBSD + # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5 + if use kernel_FreeBSD ; then + einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor" + einfo "mode of your wireless card. So do not care about what the manpages say about" + einfo "airmon-ng, airodump-ng sets monitor mode automatically." + echo + einfo "To return from monitor mode, issue the following command:" + einfo " ifconfig \${INTERFACE} -mediaopt monitor" + einfo + einfo "For aireplay-ng you need FreeBSD >= 7.0." + fi +} diff --git a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild index 1d10edd8197a..82a54cb816c4 100644 --- a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild +++ b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild @@ -17,18 +17,18 @@ if [[ ${PV} == "9999" ]] ; then KEYWORDS="" else MY_PV=${PV/_/-} - SRC_URI="http://download.${PN}.org/${PN}-${MY_PV}.tar.gz" + SRC_URI="https://download.aircrack-ng.org/${P}.tar.gz" KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" - S="${WORKDIR}/${PN}-${MY_PV}" fi LICENSE="GPL-2" SLOT="0" -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD +netlink +pcre +sqlite +experimental" +IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD libressl +netlink +pcre +sqlite +experimental" DEPEND="net-libs/libpcap - dev-libs/openssl:0= + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) netlink? ( dev-libs/libnl:3 ) pcre? ( dev-libs/libpcre ) airdrop-ng? ( ${PYTHON_DEPS} ) @@ -45,34 +45,25 @@ PDEPEND="kernel_linux? ( sys-apps/hwids airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" -REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )" - -pkg_setup() { - MAKE_COMMON=( - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - LD="$(tc-getLD)" \ - RANLIB="$(tc-getRANLIB)" \ - DESTDIR="${ED}" - ) -} +REQUIRED_USE=" + airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) + airgraph-ng? ( ${PYTHON_REQUIRED_USE} ) +" src_prepare() { - eapply_user + default eautoreconf } src_configure() { econf \ --disable-asan \ - $(use_enable netlink libnl) \ - $(use_with experimental) \ - $(use_with sqlite sqlite3) \ --enable-shared \ --disable-static \ - --without-opt + --without-opt \ + $(use_enable netlink libnl) \ + $(use_with experimental) \ + $(use_with sqlite sqlite3) } src_compile() { @@ -81,7 +72,7 @@ src_compile() { filter-flags -frecord-gcc-switches fi - emake "${MAKE_COMMON[@]}" + default if use airgraph-ng; then cd "${S}/scripts/airgraph-ng" @@ -93,13 +84,8 @@ src_compile() { fi } -src_test() { - emake "${MAKE_COMMON[@]}" check -} - src_install() { - einstalldocs - emake "${MAKE_COMMON[@]}" install + default if use airgraph-ng; then cd "${S}/scripts/airgraph-ng" @@ -110,7 +96,7 @@ src_install() { distutils-r1_src_install fi - #we don't need aircrack-ng's oui updater, we have our own + # we don't need aircrack-ng's oui updater, we have our own rm "${ED}"/usr/sbin/airodump-ng-oui-update } 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 index 6ce0fbc51eba..e5343023aaec 100644 --- a/net-wireless/aircrack-ng/files/aircrack-ng-1.3-8812au.patch +++ b/net-wireless/aircrack-ng/files/aircrack-ng-1.3-8812au.patch @@ -1,14 +1,28 @@ -commit 3cc9de5e7cbe6565c7e1fe12ebbcf2c6f7413c8d -Author: Rick Farina (Zero_Chaos) -Date: Tue Aug 7 01:27:05 2018 +0000 - - airmon-ng support 8812au - diff --git a/scripts/airmon-ng.linux b/scripts/airmon-ng.linux -index 14e4bdcd..d7328f4b 100755 +index 7f488391..4d0a5e0c 100755 --- a/scripts/airmon-ng.linux +++ b/scripts/airmon-ng.linux -@@ -354,21 +354,21 @@ ifaceIsUp() { +@@ -106,7 +106,18 @@ else + fi + + if [ -d /sys/bus/pci ] || [ -d /sys/bus/pci_express ] || [ -d /proc/bus/pci ]; then +- if [ ! -x "$(command -v lspci 2>&1)" ]; then ++ PCI_DEVICES=0 ++ if [ -d /sys/bus/pci/devices ] && [ "$(ls -1 /sys/bus/pci/devices 2>/dev/null | wc -l)" != '0' ]; then ++ PCI_DEVICES=1 ++ elif [ -r /proc/bus/pci/devices ] && [ -n "$(cat /proc/bus/pci/devices 2>/dev/null)" ]; then ++ PCI_DEVICES=1 ++ elif [ -d /sys/bus/pci_express/devices ] && [ -n "$(ls -1 /sys/bus/pci_express/devices 2>/dev/null | wc -l)" != '0' ]; then ++ PCI_DEVICES=1 ++ fi ++ ++ if [ ${PCI_DEVICES} -eq 0 ]; then ++ LSPCI=0 ++ elif [ ! -x "$(command -v lspci 2>&1)" ]; then + printf "Please install lspci from your distro's package manager.\n" + exit 1 + else +@@ -347,21 +358,21 @@ ifaceIsUp() { # fi #} @@ -45,7 +59,7 @@ index 14e4bdcd..d7328f4b 100755 yesorno() { read input -@@ -426,7 +426,7 @@ startMac80211Iface() { +@@ -419,7 +430,7 @@ startMac80211Iface() { done fi #we didn't bail means we need a monitor interface @@ -54,11 +68,11 @@ index 14e4bdcd..d7328f4b 100755 printf "Interface ${1}mon is too long for linux so it will be renamed to the old style (wlan#) name.\n" findFreeInterface monitor else -@@ -438,10 +438,16 @@ startMac80211Iface() { +@@ -431,10 +442,16 @@ startMac80211Iface() { fi #we didn't bail means our target interface is available setLink ${1} down -+ if [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ] || [ "${DRIVER}" = "rtl8812au" ]; then ++ if [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ]; then + #grumble grumble, seriously crap vendor driver + startDeprecatedIface ${1} + setChannelMac80211 ${1} @@ -72,7 +86,55 @@ index 14e4bdcd..d7328f4b 100755 setChannelMac80211 ${1}mon else printf "\nNewly created monitor mode interface ${1}mon is *NOT* in monitor mode.\n" -@@ -569,12 +575,12 @@ setChannelMac80211() { +@@ -456,15 +473,12 @@ startMac80211Iface() { + printf "\nPlease run \"airmon-ng check kill\" and/or kill your network manager." + fi + else +- iw ${1} del ++ isRPiWireless && iw ${1} del + printf "\t\t(mac80211 station mode vif disabled for [${PHYDEV}]${1})\n" + fi + } + +-NEXMON_FIRMWARE_DIR=/opt +-NEXMON_DRIVER_DIR=/opt +- +-hasRPiWireless() { ++isRPiWireless() { + local HW_REV=$(grep Revision /proc/cpuinfo | awk '{print $3}') + [ -z "${HW_REV}" ] && return 0 + # http://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/ +@@ -475,29 +489,6 @@ hasRPiWireless() { + return 0 + } + +-isNexutilPresent() { +- type nexutil >/dev/null 2>/dev/null +- if [ $? -eq 0 ]; then +- return 1 +- fi +- return 0 +-} +- +-startNexmonIface() { +- [ -z $1 ] && return +- +- if [ -n "$(iwconfig $1 | grep 'Mode:Monitor')" ] && [ -n "$(nexutil -m | grep 'monitor: 2')" ]; then +- printf "\n\tInterface $1 is already in monitor mode\n" +- else +- ifconfig $1 up 2>/dev/null +- iwconfig $1 mode monitor 2>/dev/null +- [ "$1" = "wlan0" ] && nexutil -m2 +- [ "$1" = "wlan0" ] || nexutil -m2 -I $1 +- iwconfig $1 channel ${CH} +- printf "\n\t\t(monitor mode enabled for [${PHYDEV}]${1})\n" +- fi +-} +- + startwlIface() { + if [ -f "/proc/brcm_monitor0" ]; then + if [ -r "/proc/brcm_monitor0" ]; then +@@ -587,12 +578,12 @@ setChannelMac80211() { fi } @@ -91,11 +153,11 @@ index 14e4bdcd..d7328f4b 100755 stopMac80211Iface() { if [ -f /sys/class/net/${1}/type ]; then -@@ -587,6 +593,11 @@ stopMac80211Iface() { +@@ -605,6 +596,11 @@ stopMac80211Iface() { printf "please report it.\n" exit 1 else -+ if [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ] || [ "${DRIVER}" = "rtl8812au" ]; then ++ if [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ]; then + #grumble grumble, seriously crap vendor driver + stopDeprecatedIface ${1} + return @@ -103,7 +165,48 @@ index 14e4bdcd..d7328f4b 100755 if [ "${ELITE}" = "0" ]; then local need_sta=1 if [ -d /sys/class/ieee80211/${PHYDEV}/device/net ]; then -@@ -1316,8 +1327,10 @@ if [ "$DEBUG" = "1" ]; then +@@ -665,18 +661,6 @@ stopMac80211Iface() { + fi + } + +-stopNexmonIface() { +- [ -z $1 ] && return +- ifconfig $1 down +- # Running nexutil is not necessary, it gets reset when putting interface down +- [ "$1" = "wlan0" ] && nexutil -m0 +- [ "$1" = "wlan0" ] || nexutil -m0 -I $1 +- ifconfig $1 down +- ifconfig $1 up 2> /dev/null +- iwconfig $1 mode managed 2> /dev/null +- printf "\n\t\t(monitor mode disabled for [${PHYDEV}]${1})\n" +-} +- + stopwlIface() { + if [ -f "/proc/brcm_monitor0" ]; then + if [ -r "/proc/brcm_monitor0" ]; then +@@ -751,6 +735,12 @@ getDriver() { + if [ "$DRIVER" = "rtl8187" ] && [ "$STACK" = "ieee80211" ]; then + DRIVER="r8187" + fi ++ if [ "$DRIVER" = "rtl88xxau" ]; then ++ DRIVER="88XXau" ++ fi ++ if [ "$DRIVER" = "rtl8812au" ]; then ++ DRIVER="8812au" ++ fi + + #Here we will catch the broken lying drivers not caught above + #currently this only functions for pci devices and not usb since lsusb has no -k option +@@ -795,6 +785,8 @@ getFrom() { + FROM="V" + elif [ "$DRIVER" = "rt5390sta" ]; then + FROM="V" ++ elif [ "${DRIVER}" = "8812au" ] || [ "${DRIVER}" = "8814au" ]; then ++ FROM="V" + fi + elif modinfo -F filename $DRIVER 2>&1 | grep -q 'updates/drivers' + then +@@ -1346,8 +1338,10 @@ if [ "$DEBUG" = "1" ]; then fi fi if [ "$VERBOSE" = "1" ]; then @@ -116,3 +219,27 @@ index 14e4bdcd..d7328f4b 100755 uname -a checkvm +@@ -1493,23 +1487,6 @@ for iface in $(printf "${iface_list}"); do + if [ "$1" = "stop" ] && [ "$2" = "$iface" ]; then + stopwlIface $iface + fi +- elif [ "${CHIPSET}" = 'Broadcom 43430' ] || [ "${CHIPSET}" = 'Broadcom 43455' ]; then +- hasRPiWireless +- if [ $? -eq 0 ]; then +- printf "\n\tNot a Raspberry Pi 3, 3B+ or Zero Wireless, cannot put in monitor mode.\n" +- else +- isNexutilPresent +- if [ $? -eq 0 ]; then +- printf "\n\tMissing nexutil, cannot switch to monitor mode.\n" +- else +- if [ "$1" = "start" ] && [ "$2" = "$iface" ]; then +- startNexmonIface $iface +- fi +- if [ "$1" = "stop" ] && [ "$2" = "$iface" ]; then +- stopNexmonIface $iface +- fi +- fi +- fi + elif [ "$MAC80211" = "1" ]; then + if [ "$1" = "start" ] && [ "$2" = "$iface" ]; then + startMac80211Iface $iface -- cgit v1.2.3