]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - PLD it more | |
4 | # - sbin/bin - change to bin? | |
5 | # - finish ext_scripts bcond: | |
6 | # -- check python related BR and R | |
7 | # -- fix packaging python releated stuff | |
8 | # -- create subpackage for airoscript | |
9 | # -- fix directory for airoscript*.conf files | |
10 | # -- fix installation of airoscript desktop files | |
11 | # | |
12 | # Conditional build: | |
13 | %bcond_without sqlite # build without sqlite support | |
14 | %bcond_without experimental | |
15 | %bcond_with ext_scripts # build with extra scripts (NFY) | |
16 | %define lib_ver 1.7.0 | |
17 | ||
18 | Summary: Reliable 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker | |
19 | Summary(pl.UTF-8): Pewny sniffer 802.11 (sieci bezprzewodowe) i łamacz kluczy WEP/WPA-PSK | |
20 | Name: aircrack-ng | |
21 | Version: 1.7 | |
22 | Release: 2 | |
23 | License: GPL | |
24 | Group: Applications/Networking | |
25 | Source0: http://download.aircrack-ng.org/%{name}-%{version}.tar.gz | |
26 | # Source0-md5: a918ea7146f91d8c799fb770c38f4bec | |
27 | URL: http://www.aircrack-ng.org/ | |
28 | BuildRequires: autoconf >= 2.52 | |
29 | BuildRequires: automake >= 1:1.14 | |
30 | BuildRequires: hwloc-devel | |
31 | BuildRequires: libgcrypt-devel >= 1.2.0 | |
32 | BuildRequires: libnl-devel >= 1:3.2 | |
33 | BuildRequires: libpcap-devel | |
34 | BuildRequires: libstdc++-devel >= 6:4.8.1 | |
35 | BuildRequires: libtool | |
36 | BuildRequires: pcre-devel | |
37 | BuildRequires: pkgconfig | |
38 | BuildRequires: python3 | |
39 | BuildRequires: rpmbuild(macros) >= 2.007 | |
40 | %{?with_sqlite:BuildRequires: sqlite3-devel} | |
41 | BuildRequires: zlib-devel | |
42 | Requires: awk | |
43 | Requires: coreutils | |
44 | Requires: ethtool | |
45 | Requires: grep | |
46 | Requires: iproute2 | |
47 | Requires: iw | |
48 | Requires: libnl >= 1:3.2 | |
49 | Requires: pciutils | |
50 | Requires: usbutils | |
51 | Requires: util-linux | |
52 | Requires: virtual(module-tools) | |
53 | Suggests: wireless-tools | |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
56 | %description | |
57 | aircrack-ng is a set of tools for auditing wireless networks. It's an | |
58 | enhanced/reborn version of aircrack. It consists of airodump-ng (an | |
59 | 802.11 packet capture program), aireplay-ng (an 802.11 packet | |
60 | injection program), aircrack (static WEP and WPA-PSK cracking), | |
61 | airdecap-ng (decrypts WEP/WPA capture files), and some tools to handle | |
62 | capture files (merge, convert, etc.). | |
63 | ||
64 | %description -l pl.UTF-8 | |
65 | aircrack-ng jest zestawem narzędzi do audytów sieci bezprzewodowych. | |
66 | Jest to ulepszona/odnowiona wersja aircracka. Składa sie z programów | |
67 | airodump-ng (do przechwytywania pakietów 802.11), aireplay-ng (do | |
68 | wstrzykiwania pakietów 802.11), aircrack (do statycznego łamania WEP i | |
69 | WPA-PSK), airdecap-ng (do odszyfrowywania przechwyconych plików | |
70 | WEP/WPA) i paru narzędzi do obsługi plików przechwytów (merge, | |
71 | convert, etc.). | |
72 | ||
73 | %package devel | |
74 | Summary: Development files for %{name} | |
75 | Summary(pl.UTF-8): Pliki deweloperskie dla %{name} | |
76 | Group: Development/Libraries | |
77 | Requires: %{name} = %{version} | |
78 | ||
79 | %description devel | |
80 | Development files for %{name}. | |
81 | ||
82 | %description devel -l pl.UTF-8 | |
83 | Pliki deweloperskie dla %{name} | |
84 | ||
85 | %prep | |
86 | %setup -q | |
87 | # Force python3 interpreter | |
88 | grep -r -l '#!/usr/bin/env python' scripts | xargs sed -i -e 's|#!/usr/bin/env python|#!%{__python3}|g' | |
89 | ||
90 | %build | |
91 | # GCC LTO objects must be "fat" to avoid assembly errors | |
92 | export CFLAGS="-ffat-lto-objects -fcommon" | |
93 | ||
94 | %{__libtoolize} | |
95 | %{__aclocal} -I build/m4/stubs -I build/m4 | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
99 | %configure \ | |
100 | PYTHON=%{__python3} \ | |
101 | ETHTOOL=/sbin/ethtool \ | |
102 | --disable-silent-rules \ | |
103 | --with-gcrypt \ | |
104 | --enable-libnl \ | |
105 | --with%{!?with_experimental:out}-experimental \ | |
106 | --with%{!?with_ext_scripts:out}-ext-scripts \ | |
107 | --with-%{!?with_sqlite:out}-sqlite3 \ | |
108 | ||
109 | %{__make} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
114 | ||
115 | %{__make} install \ | |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | find $RPM_BUILD_ROOT -type f \( -name "*.la" -o -name "*.a" \) -delete -print | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post -p /sbin/ldconfig | |
124 | %postun -p /sbin/ldconfig | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
128 | %doc AUTHORS ChangeLog README test patches | |
129 | %attr(755,root,root) %{_bindir}/aircrack-ng | |
130 | %attr(755,root,root) %{_bindir}/airdecap-ng | |
131 | %attr(755,root,root) %{_bindir}/airdecloak-ng | |
132 | %{?with_sqlite:%attr(755,root,root) %{_bindir}/airolib-ng} | |
133 | %attr(755,root,root) %{_bindir}/ivstools | |
134 | %attr(755,root,root) %{_bindir}/kstats | |
135 | %attr(755,root,root) %{_bindir}/makeivs-ng | |
136 | %attr(755,root,root) %{_bindir}/packetforge-ng | |
137 | %attr(755,root,root) %{_bindir}/wpaclean | |
138 | %attr(755,root,root) %{_sbindir}/airbase-ng | |
139 | %attr(755,root,root) %{_sbindir}/aireplay-ng | |
140 | %attr(755,root,root) %{_sbindir}/airmon-ng | |
141 | %attr(755,root,root) %{_sbindir}/airodump-ng | |
142 | %attr(755,root,root) %{_sbindir}/airodump-ng-oui-update | |
143 | %attr(755,root,root) %{_sbindir}/airventriloquist-ng | |
144 | %attr(755,root,root) %{_sbindir}/airserv-ng | |
145 | %attr(755,root,root) %{_sbindir}/airtun-ng | |
146 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-%{lib_ver}.so | |
147 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa.so | |
148 | %ifarch %{ix86} %{x8664} x32 | |
149 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-x86-avx-%{lib_ver}.so | |
150 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-x86-avx2-%{lib_ver}.so | |
151 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-x86-avx2.so | |
152 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-x86-avx.so | |
153 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-x86-sse2-%{lib_ver}.so | |
154 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-x86-sse2.so | |
155 | %endif | |
156 | %ifarch %{arm_with_neon} | |
157 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-arm-neon-%{lib_ver}.so | |
158 | %attr(755,root,root) %{_libdir}/libaircrack-ce-wpa-arm-neon.so | |
159 | %endif | |
160 | %attr(755,root,root) %{_libdir}/libaircrack-osdep-%{lib_ver}.so | |
161 | %attr(755,root,root) %{_libdir}/libaircrack-osdep.so | |
162 | ||
163 | %{_mandir}/man1/aircrack-ng.1* | |
164 | %{_mandir}/man1/airdecap-ng.1* | |
165 | %{_mandir}/man1/airdecloak-ng.1* | |
166 | %{?with_sqlite:%{_mandir}/man1/airolib-ng.1*} | |
167 | %{_mandir}/man1/besside-ng-crawler.1* | |
168 | %{_mandir}/man1/ivstools.1* | |
169 | %{_mandir}/man1/kstats.1* | |
170 | %{_mandir}/man1/makeivs-ng.1* | |
171 | %{_mandir}/man1/packetforge-ng.1* | |
172 | %{_mandir}/man1/wpaclean.1* | |
173 | %{_mandir}/man8/airbase-ng.8* | |
174 | %{_mandir}/man8/aireplay-ng.8* | |
175 | %{_mandir}/man8/airventriloquist-ng.8* | |
176 | %{_mandir}/man8/airmon-ng.8* | |
177 | %{_mandir}/man8/airodump-ng-oui-update.8* | |
178 | %{_mandir}/man8/airodump-ng.8* | |
179 | %{_mandir}/man8/airserv-ng.8* | |
180 | %{_mandir}/man8/airtun-ng.8* | |
181 | ||
182 | %if %{with experimental} | |
183 | %attr(755,root,root) %{_bindir}/besside-ng-crawler | |
184 | %attr(755,root,root) %{_bindir}/buddy-ng | |
185 | %attr(755,root,root) %{_sbindir}/besside-ng | |
186 | %attr(755,root,root) %{_sbindir}/easside-ng | |
187 | %attr(755,root,root) %{_sbindir}/tkiptun-ng | |
188 | %attr(755,root,root) %{_sbindir}/wesside-ng | |
189 | %{_mandir}/man1/buddy-ng.1* | |
190 | %{_mandir}/man8/besside-ng.8* | |
191 | %{_mandir}/man8/easside-ng.8* | |
192 | %{_mandir}/man8/tkiptun-ng.8* | |
193 | %{_mandir}/man8/wesside-ng.8* | |
194 | %endif | |
195 | ||
196 | %files devel | |
197 | %defattr(644,root,root,755) | |
198 | %{_includedir}/%{name} |