]> git.pld-linux.org Git - packages/aircrack-ng.git/commitdiff
added use_standard_sleep.patch; added Requires for airmon-ng script; rel. 0.2
authorSzymon Siwek <sls@pld-linux.org>
Tue, 24 Nov 2015 12:11:32 +0000 (13:11 +0100)
committerSzymon Siwek <sls@pld-linux.org>
Tue, 24 Nov 2015 12:11:32 +0000 (13:11 +0100)
aircrack-ng.spec
use_standard_sleep.patch [new file with mode: 0644]

index 2cd075a368ade49078457b1fb3fd07c05d9f8468..ceda14641a3b30d56d62a3fee9a42d7e9d84f593 100644 (file)
@@ -16,7 +16,7 @@
 %bcond_with    ext_scripts             # build with extra scripts (NFY)
 
 %define        subver  rc2
-%define        rel     0.1
+%define        rel     0.2
 Summary:       Reliable 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker
 Summary(pl.UTF-8):     Pewny sniffer 802.11 (sieci bezprzewodowe) i łamacz kluczy WEP/WPA-PSK
 Name:          aircrack-ng
@@ -30,12 +30,17 @@ URL:                http://www.aircrack-ng.org/
 Patch0:                install.patch
 Patch1:                pldflags.patch
 Patch2:                install_besside_manual.patch
+Patch3:                use_standard_sleep.patch
 BuildRequires: libnl-devel
 BuildRequires: openssl-devel
 %{?with_pcre:BuildRequires:    pcre-devel}
 BuildRequires: pkgconfig
 %{?with_sqlite:BuildRequires:  sqlite3-devel}
 BuildRequires: zlib-devel
+Requires:      ethtool
+Requires:      grep
+Requires:      iw
+Requires:      usbutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -60,6 +65,7 @@ convert, etc.).
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__make} -j1 \
diff --git a/use_standard_sleep.patch b/use_standard_sleep.patch
new file mode 100644 (file)
index 0000000..46a6692
--- /dev/null
@@ -0,0 +1,20 @@
+--- aircrack-ng-1.2-rc2/scripts/airmon-ng.orig 2015-11-24 12:54:48.642540223 +0100
++++ aircrack-ng-1.2-rc2/scripts/airmon-ng      2015-11-24 12:57:14.755185878 +0100
+@@ -236,7 +236,7 @@ startMac80211Iface() {
+       IW_ERROR=$(iw phy ${PHYDEV} interface add ${1}mon type monitor 2>&1 | grep "nl80211 not found")
+       if [ x${IW_ERROR} = "x" ]
+       then
+-              sleep 1s
++              sleep 1
+               setChannelMac80211 ${1}mon
+               printf "\n\t\t(mac80211 monitor mode vif enabled for [${PHYDEV}]${1} on [${PHYDEV}]${1}mon)\n"
+       else
+@@ -1095,7 +1095,7 @@ do
+               #why, dear god why is there a random newline here?
+               printf "\n"
+-              sleep 1s
++              sleep 1
+               continue
+       fi
+ done
This page took 0.097185 seconds and 4 git commands to generate.