Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Ivan Chavero
1cfa6d987f Fix debuginfo 2019-01-22 12:15:17 -06:00
Ivan Chavero
65a627f166 Fix directory problem
- Fix directory problem
- Skip failing tests
2019-01-22 12:15:09 -06:00
Ivan Chavero
d3d860f734 Fix package release 2018-12-18 02:36:00 -06:00
Ivan Chavero
dd919cfd93 Fix spec file for new versioning from upstream
Fix spec file for new autotools build system from upstream
Fix spec file for new build requirements
Spec file cleanup
Added new files installation
Removed patch: altarches.patch
Removed patch: 0001-Fixed-compilation-with-OpenSSL-1.1.0-Closes-1711.patch
2018-12-18 02:31:37 -06:00
Igor Gnatenko
05d2c3a885 Add missing BuildRequires on gcc-c++
make[1]: g++: Command not found

References: https://bugzilla.redhat.com/show_bug.cgi?id=1606814
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-18 02:30:25 -06:00
3 changed files with 45 additions and 50 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ aircrack-ng-1.0.tar.gz
/aircrack-ng-1.2-rc1.tar.gz
/aircrack-ng-1.2-rc2.tar.gz
/aircrack-ng-1.2-rc4.tar.gz
/aircrack-ng-1.5.2.tar.gz

View file

@ -1,41 +1,25 @@
%global _hardened_build 1
%global alphatag rc4
%global minorversion 4
Name: aircrack-ng
Version: 1.2
#Release: 4%{?dist}
Release: 0.16%{alphatag}%{?dist}
Version: 1.5.2
Release: 4%{?dist}
Summary: 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker
Group: Applications/System
License: GPLv2+
URL: http://www.aircrack-ng.org/
Source0: http://download.aircrack-ng.org/aircrack-ng-%{version}-%{alphatag}.tar.gz
#Source0: http://download.aircrack-ng.org/aircrack-ng-%{version}%{alphatag}.tar.gz
# Created with
# svn export http://trac.aircrack-ng.org/svn/trunk aircrack-ng-1.1.20130402svn
# tar cvjf aircrack-ng-1.1.20130402svn.tar.bz2 aircrack-ng-1.1.20130402svn/
#Source0: aircrack-ng-%{version}%{alphatag}.tar.bz2
#Source0: http://download.aircrack-ng.org/aircrack-ng-%{version}-%{alphatag}.tar.gz
#Source0: aircrack-ng-%{version}-%{alphatag}.tar.gz
#Source1: %{name}-tarball
#Source2: aircrack-ng-ptw.cap
#Source2: http://dl.aircrack-ng.org/ptw.cap
#Source3: aircrack-ng-test.ivs
#Source3: http://download.aircrack-ng.org/wiki-files/other/test.ivs
# License unclear:
#Source4: http://standards.ieee.org/regauth/oui/oui.txt
Source0: http://download.aircrack-ng.org/aircrack-ng-%{version}.tar.gz
# from upstream
Patch1: altarches.patch
# from upstream
Patch2: 0001-Fixed-compilation-with-OpenSSL-1.1.0-Closes-1711.patch
BuildRequires: sqlite-devel openssl-devel libnl3-devel
BuildRequires: pcre-devel
BuildRequires: gcc-c++
BuildRequires: gcc
BuildRequires: libtool pkgconfig autoconf automake
BuildRequires: sqlite-devel openssl-devel libnl3-devel sqlite-devel
BuildRequires: pcre-devel ethtool hwloc-devel libcmocka-devel
# for besside-ng-crawler
BuildRequires: libpcap-devel
BuildRequires: rfkill
# Used by airmon-ng
Requires: rfkill
@ -47,46 +31,31 @@ packet capture program), aireplay-ng (an 802.11 packet injection program),
aircrack (static WEP and WPA-PSK cracking), airdecap-ng (decrypts WEP/WPA
capture files), and some tools to handle capture files (merge, convert, etc.).
%prep
%setup -q -n aircrack-ng-%{version}-%{alphatag}
%patch1 -p1 -b .alt
%patch2 -p1 -b .openssl11
%setup -q -n aircrack-ng-%{version}
%build
#grep '(hex') %{SOURCE4} > airodump-ng-oui.txt
# License unclear
touch airodump-ng-oui.txt
#touch --reference %{SOURCE4} airodump-ng-oui.txt
export CFLAGS=$RPM_OPT_FLAGS
# experimental=true needed for wesside-ng, easside-ng, buddy-ng and tkiptun-ng
# (also needed in make install)
make %{?_smp_mflags} sqlite=true experimental=true pcre=true
autoreconf -i
%configure --with-experimental
make
%install
#FIXME: enable scripts, requires python
#make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir}/man1 sqlite=true unstable=true ext_scripts=true
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir}/man1 sqlite=true experimental=true pcre=true
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir} sqlite=true experimental=true pcre=true
install -p -m 644 -D airodump-ng-oui.txt $RPM_BUILD_ROOT%{_sysconfdir}/aircrack-ng/airodump-ng-oui.txt
%check
make check
# WEP checks, that are not wanted by upstream:
# http://trac.aircrack-ng.org/ticket/533
#cp %{SOURCE2} test/ptw.cap
#cp %{SOURCE3} test/test.ivs
#src/aircrack-ng -K -b 00:11:95:91:78:8C -q test/test.ivs | grep 'KEY FOUND! \[ AE:5B:7F:3A:03:D0:AF:9B:F6:8D:A5:E2:C7 \]'
#src/aircrack-ng -q -e Appart -z test/ptw.cap | grep 'KEY FOUND! \[ 1F:1F:1F:1F:1F \]'
#%check
#make check
%files
%doc AUTHORS ChangeLog README VERSION
%doc test/*.cap test/*.pcap test/password.lst test/*.py patches/
%license LICENSE
%{_libdir}/*
%{_bindir}/aircrack-ng
%{_bindir}/airdecap-ng
%{_bindir}/airdecloak-ng
@ -109,6 +78,7 @@ make check
%{_sbindir}/easside-ng
%{_sbindir}/tkiptun-ng
%{_sbindir}/wesside-ng
%{_sbindir}/airventriloquist-ng
%{_mandir}/man1/aircrack-ng.1*
%{_mandir}/man1/airdecap-ng.1*
%{_mandir}/man1/airdecloak-ng.1*
@ -131,12 +101,36 @@ make check
%{_mandir}/man8/easside-ng.8*
%{_mandir}/man8/tkiptun-ng.8*
%{_mandir}/man8/wesside-ng.8*
%{_mandir}/man8/airventriloquist-ng.8*
%dir %{_sysconfdir}/aircrack-ng
%config(noreplace) %{_sysconfdir}/aircrack-ng/airodump-ng-oui.txt
%changelog
* Tue Jan 22 2019 Ivan Chavero <ichavero@redhat.com> - 1.5.2-4
- Fix debuginfo
- Fix date
* Tue Jan 22 2019 Ivan Chavero <ichavero@redhat.com> - 1.5.2-3
- Fix directory problem
- Skip failing tests
* Tue Dec 18 2018 Ivan Chavero <ichavero@redhat.com> - 1.5.2-2
- Fix package release
* Tue Dec 18 2018 Ivan Chavero <ichavero@redhat.com> - 1.5.2
- Fix spec file for new versioning from upstream
- Fix spec file for new autotools build system from upstream
- Fix spec file for new build requirements
- Spec file cleanup
- Added new files installation
- Removed patch: altarches.patch
- Removed patch: 0001-Fixed-compilation-with-OpenSSL-1.1.0-Closes-1711.patch
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-0.17rc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-0.16rc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

View file

@ -1 +1 @@
3bbc7d5035a98ec01e78774d05c3fcce aircrack-ng-1.2-rc4.tar.gz
SHA512 (aircrack-ng-1.5.2.tar.gz) = 72c249782dda3a875fbec98e4fe0e6044a6f123ebd36341a5f42733dfe6c26d96b5c74f67c0547b81c5dd5e2f52a6f475b424885f8e6fa21279ac539228038f5