Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046525
en ru br
ALT Linux repos
S:1.7-alt2
4.1: 0.9.1-alt1
4.0: 0.9.1-alt1

Other repositories
Upstream:0.9.3

Group :: Networking/Other
RPM: aircrack-ng

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

# LTO causes errors, disable it

%global optflags_lto %nil

Name: aircrack-ng
Version: 1.7
Release: alt2

Summary: 802.11 WEP and WPA-PSK key recovery program
License: GPLv2+
Group: Networking/Other

Url: http://aircrack-ng.org

# https://github.com/aircrack-ng/aircrack-ng.git

Source: %name-%version.tar
Patch0: %name-%version-alt-build.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: libssl-devel libsqlite3-devel
BuildRequires: libnl-devel
BuildRequires: libpcre-devel
BuildRequires: libpcap-devel
BuildRequires: zlib-devel
BuildRequires: ethtool

Requires: iw rfkill ethtool

%description
Aircrack is an 802.11 WEP and WPA-PSK keys cracking program that can
recover keys once enough data packets have been captured.
It implements the standard FMS attack along with some optimizations
like KoreK attacks, thus making the attack much faster compared to
other WEP cracking tools. In fact aircrack is a set of tools for
auditing wireless networks.

%package devel
Group: Development/C++
Summary: Development files for %name

%description devel
Development files for %name

%prep
%setup
%patch0 -p1

# change python shebangs to python3

find . -name '*.py' | xargs sed -i \
-e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' \
-e '1s|^#!/usr/bin/python$|#!/usr/bin/python3|' \
%nil

find scripts -type f | xargs sed -i \
-e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' \
-e '1s|^#!/usr/bin/python$|#!/usr/bin/python3|' \
%nil

%build
export PYTHON=%__python3

%autoreconf
%configure --with-sqlite3 --with-experimental --with-ext-scripts
%make_build

%install
%makeinstall_std

%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
mkdir -pv %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir/
%endif

%files
%_bindir/*
%_sbindir/*
%_libdir/*.so*
%_man1dir/*
%_man8dir/*
%python3_sitelibdir/*
%_defaultdocdir/%name

%files devel
%_includedir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin