]> git.pld-linux.org Git - packages/aircrack-ng.git/commitdiff
added pldflags.patch
authorSzymon Siwek <sls@pld-linux.org>
Tue, 17 Nov 2015 12:29:11 +0000 (13:29 +0100)
committerSzymon Siwek <sls@pld-linux.org>
Tue, 17 Nov 2015 13:14:22 +0000 (14:14 +0100)
- switched seding common.mak to patching (in current version sed
won't apply anyway)
- TODO about optflags and cflags done (long time ago)

aircrack-ng.spec
pldflags.patch [new file with mode: 0644]

index 8161411d48e0f385e987861f36d935ec100cf098..a72f8d82a3f2150f259c30046fe1a06756af190c 100644 (file)
@@ -2,8 +2,6 @@
 # TODO:
 # - PLD it more
 # - Find more deps
-# - optflags
-# - cflags
 # - sbin/bin - change to bin?
 # - package airdrop-ng and airgraph-ng
 #
@@ -26,6 +24,7 @@ Source0:      http://download.aircrack-ng.org/%{name}-%{version}-%{subver}.tar.gz
 # Source0-md5: ebe9d537f06f4d6956213af09c4476da
 URL:           http://www.aircrack-ng.org/
 Patch0:                install.patch
+Patch1:                pldflags.patch
 BuildRequires: libnl-devel
 BuildRequires: openssl-devel
 BuildRequires: pkgconfig
@@ -53,8 +52,7 @@ convert, etc.).
 %prep
 %setup -q -n %{name}-%{version}-%{subver}
 %patch0 -p1
-
-sed -i -e 's#-Werror -O3#$(PLDFLAGS)#g' common.mak
+%patch1 -p1
 
 %build
 %{__make} -j1 \
diff --git a/pldflags.patch b/pldflags.patch
new file mode 100644 (file)
index 0000000..600f667
--- /dev/null
@@ -0,0 +1,11 @@
+--- aircrack-ng-1.2-rc2/common.mak.orig        2015-11-17 13:23:14.717899992 +0100
++++ aircrack-ng-1.2-rc2/common.mak     2015-11-17 13:24:33.161433664 +0100
+@@ -118,7 +118,7 @@ REVISION   = $(shell $(AC_ROOT)/evalrev $(
+ REVFLAGS      ?= -D_REVISION=$(REVISION)
+ OPTFLAGS        = -D_FILE_OFFSET_BITS=64
+-CFLAGS          ?= -g -W -Wall -O3
++CFLAGS          ?= -g -W -Wall $(PLDFLAGS)
+ CFLAGS          += $(OPTFLAGS) $(REVFLAGS) $(COMMON_CFLAGS)
+ prefix          = /usr/local
This page took 0.144751 seconds and 4 git commands to generate.