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