]> git.pld-linux.org Git - packages/aircrack-ng.git/blame - aircrack-ng.spec
ext_scripts bcond needs more work
[packages/aircrack-ng.git] / aircrack-ng.spec
CommitLineData
8ac129fd 1#
2# TODO:
3# - PLD it more
4# - Find more deps
fdaae083 5# - optflags
74b62dd0 6# - cflags
7# - sbin/bin - change to bin?
a181b2f8 8# - package airdrop-ng and airgraph-ng
8ac129fd 9#
05fa9722
SS
10# Conditional build:
11%bcond_without sqlite # build without sqlite support
12%bcond_without pcre # build without pcre support
13%bcond_without experimental
9a781134 14%bcond_with ext_scripts # build with extra scripts (NFY)
05fa9722 15#
8ac129fd 16Summary: Reliable 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker
1b61970c 17Summary(pl.UTF-8): Pewny sniffer 802.11 (sieci bezprzewodowe) i łamacz kluczy WEP/WPA-PSK
8ac129fd 18Name: aircrack-ng
083b3040
SS
19Version: 1.2
20%define subver rc2
21%define rel 0.1
22Release: %{subver}.%{rel}
8ac129fd 23License: GPL
24Group: Applications/Networking
083b3040
SS
25Source0: http://download.aircrack-ng.org/%{name}-%{version}-%{subver}.tar.gz
26# Source0-md5: ebe9d537f06f4d6956213af09c4476da
fdaae083 27URL: http://www.aircrack-ng.org/
b235dc0a 28Patch0: install.patch
f8ad8da7 29BuildRequires: libnl-devel
8b33c69f 30BuildRequires: openssl-devel
f8ad8da7 31BuildRequires: pkgconfig
05fa9722
SS
32%{?with_pcre:BuildRequires: pcre-devel}
33%{?with_sqlite:BuildRequires: sqlite3-devel}
8ac129fd 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37aircrack-ng is a set of tools for auditing wireless networks. It's an
38enhanced/reborn version of aircrack. It consists of airodump-ng (an
39802.11 packet capture program), aireplay-ng (an 802.11 packet
40injection program), aircrack (static WEP and WPA-PSK cracking),
41airdecap-ng (decrypts WEP/WPA capture files), and some tools to handle
42capture files (merge, convert, etc.).
43
00504ee3
JR
44%description -l pl.UTF-8
45aircrack-ng jest zestawem narzędzi do audytów sieci bezprzewodowych.
46Jest to ulepszona/odnowiona wersja aircracka. Składa sie z programów
47airodump-ng (do przechwytywania pakietów 802.11), aireplay-ng (do
48wstrzykiwania pakietów 802.11), aircrack (do statycznego łamania WEP i
49WPA-PSK), airdecap-ng (do odszyfrowywania przechwyconych plików
50WEP/WPA) i paru narzędzi do obsługi plików przechwytów (merge,
fdaae083 51convert, etc.).
8ac129fd 52
53%prep
215cb537 54%setup -q -n %{name}-%{version}-%{subver}
b235dc0a 55%patch0 -p1
8ac129fd 56
eaff7cfd
AM
57sed -i -e 's#-Werror -O3#$(PLDFLAGS)#g' common.mak
58
8ac129fd 59%build
5c6bb606 60%{__make} -j1 \
05fa9722
SS
61 %{?with_experimental: experimental=true} \
62 %{?with_ext_scripts: ext_scripts=true} \
63 %{?with_pcre: pcre=true} \
64 %{?with_sqlite: sqlite=true} \
eaff7cfd
AM
65 CC="%{__cc}" \
66 PLDFLAGS="%{rpmcppflags} %{rpmcflags}"
8ac129fd 67
68%install
69rm -rf $RPM_BUILD_ROOT
fdaae083 70install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
8ac129fd 71
74b62dd0 72%{__make} install \
05fa9722
SS
73 %{?with_experimental: experimental=true} \
74 %{?with_ext_scripts: ext_scripts=true} \
75 %{?with_pcre: pcre=true} \
76 %{?with_sqlite: sqlite=true} \
74b62dd0 77 prefix=%{_prefix} \
78 DESTDIR=$RPM_BUILD_ROOT
8ac129fd 79
80%clean
81rm -rf $RPM_BUILD_ROOT
82
83%files
84%defattr(644,root,root,755)
69aba94a 85%doc AUTHORS ChangeLog README test patches
a1116914
SS
86%attr(755,root,root) %{_bindir}/aircrack-ng
87%attr(755,root,root) %{_bindir}/airdecap-ng
88%attr(755,root,root) %{_bindir}/airdecloak-ng
05fa9722 89%{?with_sqlite:%attr(755,root,root) %{_bindir}/airolib-ng}
a1116914
SS
90%attr(755,root,root) %{_bindir}/ivstools
91%attr(755,root,root) %{_bindir}/kstats
92%attr(755,root,root) %{_bindir}/makeivs-ng
93%attr(755,root,root) %{_bindir}/packetforge-ng
94%attr(755,root,root) %{_bindir}/wpaclean
95%attr(755,root,root) %{_sbindir}/airbase-ng
96%attr(755,root,root) %{_sbindir}/aireplay-ng
97%attr(755,root,root) %{_sbindir}/airmon-ng
98%attr(755,root,root) %{_sbindir}/airodump-ng
99%attr(755,root,root) %{_sbindir}/airodump-ng-oui-update
100%attr(755,root,root) %{_sbindir}/airserv-ng
101%attr(755,root,root) %{_sbindir}/airtun-ng
102%{_mandir}/man1/aircrack-ng.1*
103%{_mandir}/man1/airdecap-ng.1*
104%{_mandir}/man1/airdecloak-ng.1*
05fa9722 105%{?with_sqlite:%{_mandir}/man1/airolib-ng.1*}
a1116914
SS
106%{_mandir}/man1/besside-ng-crawler.1*
107%{_mandir}/man1/ivstools.1*
108%{_mandir}/man1/kstats.1*
109%{_mandir}/man1/makeivs-ng.1*
110%{_mandir}/man1/packetforge-ng.1*
111%{_mandir}/man1/wpaclean.1*
112%{_mandir}/man8/airbase-ng.8*
113%{_mandir}/man8/aireplay-ng.8*
114%{_mandir}/man8/airmon-ng.8*
115%{_mandir}/man8/airodump-ng-oui-update.8*
116%{_mandir}/man8/airodump-ng.8*
117%{_mandir}/man8/airserv-ng.8*
118%{_mandir}/man8/airtun-ng.8*
119%{_mandir}/man8/besside-ng.8*
05fa9722
SS
120
121%if %{with experimental}
122%attr(755,root,root) %{_bindir}/buddy-ng
123%attr(755,root,root) %{_sbindir}/besside-ng
124%attr(755,root,root) %{_sbindir}/easside-ng
125%attr(755,root,root) %{_sbindir}/tkiptun-ng
126%attr(755,root,root) %{_sbindir}/wesside-ng
127%{_mandir}/man1/buddy-ng.1*
128%{_mandir}/man8/easside-ng.8*
129%{_mandir}/man8/tkiptun-ng.8*
130%{_mandir}/man8/wesside-ng.8*
131%endif
This page took 0.067263 seconds and 4 git commands to generate.