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