[packages/aircrack-ng] added use_standard_sleep.patch; added Requires for airmon-ng script; rel. 0.2

sls sls at pld-linux.org
Tue Nov 24 15:53:46 CET 2015


commit ca994d524e0888f8d7c65f568f6f64c9291a85a3
Author: Szymon Siwek <sls at pld-linux.org>
Date:   Tue Nov 24 13:11:32 2015 +0100

    added use_standard_sleep.patch; added Requires for airmon-ng script; rel. 0.2

 aircrack-ng.spec         |  8 +++++++-
 use_standard_sleep.patch | 20 ++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/aircrack-ng.spec b/aircrack-ng.spec
index 2cd075a..ceda146 100644
--- a/aircrack-ng.spec
+++ b/aircrack-ng.spec
@@ -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
index 0000000..46a6692
--- /dev/null
+++ b/use_standard_sleep.patch
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aircrack-ng.git/commitdiff/ca994d524e0888f8d7c65f568f6f64c9291a85a3



More information about the pld-cvs-commit mailing list