diff options
author | Rick Farina <zerochaos@gentoo.org> | 2023-04-25 15:10:30 -0400 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2023-04-25 15:13:15 -0400 |
commit | f03395527ef657d411375a51f9ad536f160507e3 (patch) | |
tree | 987288c3208cbb8b64251c2bd5a7cbbf4050e8d6 /net-wireless | |
parent | app-misc/pdfpc: Fix build failure with vala-0.56.7 (diff) | |
download | gentoo-f03395527ef657d411375a51f9ad536f160507e3.tar.gz gentoo-f03395527ef657d411375a51f9ad536f160507e3.tar.bz2 gentoo-f03395527ef657d411375a51f9ad536f160507e3.zip |
net-wireless/aircrack-ng: modernize, fix qa
removed a bunch of unneeded code and further modernized ebuild
Thanks to significant help from mgorny and Arfrever
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/aircrack-ng/aircrack-ng-1.7-r3.ebuild (renamed from net-wireless/aircrack-ng/aircrack-ng-1.7-r2.ebuild) | 38 | ||||
-rw-r--r-- | net-wireless/aircrack-ng/aircrack-ng-9999.ebuild | 38 |
2 files changed, 34 insertions, 42 deletions
diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.7-r2.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.7-r3.ebuild index a4fe5c4ec493..6020f6024964 100644 --- a/net-wireless/aircrack-ng/aircrack-ng-1.7-r2.ebuild +++ b/net-wireless/aircrack-ng/aircrack-ng-1.7-r3.ebuild @@ -3,12 +3,11 @@ EAPI=8 -#this doesn't work because of multiple calls to distutils-r1_src_compile -#DISTUTILS_USE_PEP517=setuptools +DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_OPTIONAL=1 -inherit toolchain-funcs distutils-r1 flag-o-matic autotools +inherit distutils-r1 autotools DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" HOMEPAGE="http://www.aircrack-ng.org" @@ -50,8 +49,8 @@ RDEPEND="${CDEPEND} sys-apps/pciutils ) sys-apps/hwdata airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" -#BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} ) -# airgraph-ng? ( ${DISTUTILS_DEPS} )" +BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} ) + airgraph-ng? ( ${DISTUTILS_DEPS} )" REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) airgraph-ng? ( ${PYTHON_REQUIRED_USE} )" @@ -61,6 +60,9 @@ RESTRICT="!test? ( test )" src_prepare() { default eautoreconf + if use airgraph-ng || use airdrop-ng; then + distutils-r1_src_prepare + fi } src_configure() { @@ -76,33 +78,27 @@ src_configure() { $(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 - +python_compile() { if use airgraph-ng; then cd "${S}/scripts/airgraph-ng" || die - distutils-r1_src_compile + distutils-r1_python_compile fi if use airdrop-ng; then cd "${S}/scripts/airdrop-ng" || die + distutils-r1_python_compile + fi +} + +src_compile() { + default + if use airgraph-ng || use airdrop-ng; then distutils-r1_src_compile fi } src_install() { default - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" || die - distutils-r1_src_install - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" || die + if use airgraph-ng || use airdrop-ng; then distutils-r1_src_install fi diff --git a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild index 41428d7587ed..b66df597673b 100644 --- a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild +++ b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild @@ -3,12 +3,11 @@ EAPI=8 -#this doesn't work because of multiple calls to distutils-r1_src_compile -#DISTUTILS_USE_PEP517=setuptools +DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_OPTIONAL=1 -inherit toolchain-funcs distutils-r1 flag-o-matic autotools +inherit distutils-r1 autotools DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" HOMEPAGE="http://www.aircrack-ng.org" @@ -50,8 +49,8 @@ RDEPEND="${CDEPEND} sys-apps/pciutils ) sys-apps/hwdata airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" -#BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} ) -# airgraph-ng? ( ${DISTUTILS_DEPS} )" +BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} ) + airgraph-ng? ( ${DISTUTILS_DEPS} )" REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) airgraph-ng? ( ${PYTHON_REQUIRED_USE} )" @@ -61,6 +60,9 @@ RESTRICT="!test? ( test )" src_prepare() { default eautoreconf + if use airgraph-ng || use airdrop-ng; then + distutils-r1_src_prepare + fi } src_configure() { @@ -76,33 +78,27 @@ src_configure() { $(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 - +python_compile() { if use airgraph-ng; then cd "${S}/scripts/airgraph-ng" || die - distutils-r1_src_compile + distutils-r1_python_compile fi if use airdrop-ng; then cd "${S}/scripts/airdrop-ng" || die + distutils-r1_python_compile + fi +} + +src_compile() { + default + if use airgraph-ng || use airdrop-ng; then distutils-r1_src_compile fi } src_install() { default - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" || die - distutils-r1_src_install - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" || die + if use airgraph-ng || use airdrop-ng; then distutils-r1_src_install fi |