File aircrack-ng.spec of Package aircrack-ng (Revision 8cfeee1cf6ecfa62489e765f036687fd)
Currently displaying revision 8cfeee1cf6ecfa62489e765f036687fd , Show latest
157
1
#
2
# spec file for package aircrack-ng
3
#
4
# Copyright (c) 2018 Packman Team <packman@links2linux.de>
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.links2linux.org/
16
#
17
18
19
%bcond_without unstable
20
%bcond_without sqlite
21
Name: aircrack-ng
22
Version: 1.6
23
Release: 0
24
Summary: A set of tools for auditing wireless networks
25
License: GPL-2.0-or-later
26
Group: Productivity/Networking/Security
27
URL: https://www.aircrack-ng.org/
28
Source0: https://download.aircrack-ng.org/%{name}-%{version}.tar.gz
29
Source1: README.SUSE
30
BuildRequires: autoconf
31
BuildRequires: ethtool
32
BuildRequires: expect
33
BuildRequires: fdupes
34
BuildRequires: gcc-c++
35
BuildRequires: libgcrypt-devel
36
BuildRequires: libpcap-devel
37
BuildRequires: libtool
38
BuildRequires: pkgconfig
39
BuildRequires: python3-setuptools
40
BuildRequires: python3-graphviz
41
BuildRequires: pkgconfig(cmocka)
42
BuildRequires: pkgconfig(hwloc)
43
BuildRequires: pkgconfig(libnl-3.0)
44
BuildRequires: pkgconfig(libpcre)
45
BuildRequires: pkgconfig(sqlite3)
46
BuildRequires: pkgconfig(zlib)
47
Requires: wireless-tools
48
#Requires: python3-graphviz
49
50
%description
51
Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that
52
can recover keys once enough data packets have been captured.
53
It implements the standard FMS attack along with some optimizations
54
like KoreK attacks, as well as the PTW attack, thus making the attack
55
much faster compared to other WEP cracking tools.
56
57
In fact, Aircrack-ng is a set of tools for auditing wireless networks.
58
59
%prep
60
%setup -q
61
find patches/ -type f -exec sed -i 's|\r||g' {} \;
62
cp "%{SOURCE1}" .
63
# Force python3 interpreter
64
sed -i -e 's|#!%{_bindir}/env python|#!%{_bindir}/python3|g' scripts/versuck-ng/versuck-ng
65
# Drop shebang
66
find . -type f -name "lib*Parse.py" -exec sed -i -e '/^#!\//, 1d' {} \;
67
68
%build
69
# GCC LTO objects must be "fat" to avoid assembly errors
70
export CFLAGS="-ffat-lto-objects"
71
autoreconf -fiv
72
%configure \
73
--with-experimental=%{?with_unstable:yes --with-ext-scripts}%{?!with_unstable:no} \
74
--enable-static=yes \
75
--enable-shared=no \
76
--with-sqlite3=%{?with_sqlite:yes}%{?!with_sqlite:no} \
77
--with-gcrypt \
78
--enable-libnl
79
%make_build
80
81
%install
82
%make_install
83
rm patches/old/ieee80211_inject.patch
84
find %{buildroot} -type f \( -name "*.la" -o -name "*.a" \) -delete -print
85
rm -f %{buildroot}%{_prefix}/local/lib/python3*/site-packages/aircrack-ng/air*-install_files.txt
86
# Use correct path for docs
87
install -d %{buildroot}/%{_docdir}/%{name}/
88
mv -v %{buildroot}%{_datadir}/doc/aircrack-ng/* %{buildroot}/%{_docdir}/%{name}/
89
90
# Don't package headers for now
91
rm -rf %{buildroot}%{_includedir}/aircrack-ng/
92
93
## Those belong to python3-graphiz
94
#rm -f %{buildroot}%{python3_sitelib}/graphviz/__init__.py
95
#rm -f %{buildroot}%{python3_sitelib}/graphviz/__pycache__/__init__.cpython-37.pyc
96
97
## Drop airgraph-ng until dependecy issues with python-graphviz are fixed
98
rm -rf %{buildroot}%{python3_sitelib}/graphviz/
99
rm -rf %{buildroot}%{_bindir}/airgraph-ng
100
101
102
#%%check
103
#make check
104
105
%files
106
%license LICENSE LICENSE.OpenSSL
107
%doc AUTHORS ChangeLog README README.SUSE
108
%doc patches
109
%{_bindir}/aircrack-ng
110
%{_bindir}/airdecap-ng
111
%{_bindir}/airdecloak-ng
112
%doc %{_docdir}/%{name}/Apple.sample.txt
113
%doc %{_docdir}/%{name}/dropRules.conf.example
114
%{_bindir}/airdrop-ng
115
#%{_bindir}/airgraph-ng
116
%{_bindir}/airodump-join
117
%{_bindir}/besside-ng-crawler
118
%{_bindir}/versuck-ng
119
%{_sbindir}/airventriloquist-ng
120
%{_sbindir}/besside-ng
121
%if %{with unstable}
122
%{_bindir}/buddy-ng
123
%{_sbindir}/easside-ng
124
%{_sbindir}/tkiptun-ng
125
%{_sbindir}/wesside-ng
126
%endif
127
%{_bindir}/ivstools
128
%{_bindir}/kstats
129
%{_bindir}/makeivs-ng
130
%{_bindir}/packetforge-ng
131
%{_bindir}/wpaclean
132
%{_sbindir}/airbase-ng
133
%{_sbindir}/aireplay-ng
134
%{_sbindir}/airmon-ng
135
%{_sbindir}/airodump-ng
136
%{_sbindir}/airodump-ng-oui-update
137
%{_sbindir}/airserv-ng
138
%{_sbindir}/airtun-ng
139
%if %{with sqlite}
140
%{_bindir}/airolib-ng
141
%endif
142
%{_mandir}/man1/*.1%{?ext_man}
143
%{_mandir}/man8/*.8%{?ext_man}
144
%{python3_sitelib}/airdrop
145
%{python3_sitelib}/airdrop_ng*
146
%{python3_sitelib}/airgraph_ng*
147
#
148
#%%{python3_sitelib}/graphviz*
149
#%%{python3_sitelib}/graphviz/libDumpParse.py
150
#%%{python3_sitelib}/graphviz/libOuiParse.py
151
#%%{python3_sitelib}/graphviz/lib_Airgraphviz.py
152
#%%{python3_sitelib}/graphviz/__pycache__/libDumpParse.cpython-37.pyc
153
#%%{python3_sitelib}/graphviz/__pycache__/libOuiParse.cpython-37.pyc
154
#%%{python3_sitelib}/graphviz/__pycache__/lib_Airgraphviz.cpython-37.pyc
155
156
%changelog
157