From patchwork Fri Apr 21 14:12:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 753421 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w8d3y0Szbz9s1h for ; Sat, 22 Apr 2017 00:12:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 94BFB8A93E; Fri, 21 Apr 2017 14:12:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id amat-1GSCFrW; Fri, 21 Apr 2017 14:12:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 58F7A8A4A9; Fri, 21 Apr 2017 14:12:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 3F40C1C21E2 for ; Fri, 21 Apr 2017 14:12:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 395A58A4A9 for ; Fri, 21 Apr 2017 14:12:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SSaD-bqP3cRr for ; Fri, 21 Apr 2017 14:12:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by hemlock.osuosl.org (Postfix) with ESMTPS id 589298A37A for ; Fri, 21 Apr 2017 14:12:36 +0000 (UTC) Received: from fwd32.aul.t-online.de (fwd32.aul.t-online.de [172.20.26.144]) by mailout11.t-online.de (Postfix) with SMTP id D2F40427944F; Fri, 21 Apr 2017 16:12:34 +0200 (CEST) Received: from fli4l.lan.fli4l (EY2X6sZc8hnHfJXhYFI5r73x1FJwfjzwYvJ0t-g3aOykBPEYa-6HPvFGXE9lzsJw8k@[79.228.27.202]) by fwd32.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1d1ZIY-1tno1o0; Fri, 21 Apr 2017 16:12:34 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:36428 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.89) (envelope-from ) id 1d1ZIX-0007zA-Jh; Fri, 21 Apr 2017 16:12:34 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Fri, 21 Apr 2017 16:12:33 +0200 Message-Id: <20170421141233.24645-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.11.0 X-ID: EY2X6sZc8hnHfJXhYFI5r73x1FJwfjzwYvJ0t-g3aOykBPEYa-6HPvFGXE9lzsJw8k X-TOI-MSGID: eac39519-02da-45f6-8e20-15f127b237b9 Subject: [Buildroot] [PATCH 1/1] package/aircrack-ng: bump version to 1.2-rc4 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Removed patches applied upstream: 0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch http://trac.aircrack-ng.org/changeset/2445 0002-Optionally-use-LIBPCAP-for-required-libpcap-libraries.patch http://trac.aircrack-ng.org/changeset/2446 0003-Wesside-ng-Use-termios-instead-of-sys-termios.patch http://trac.aircrack-ng.org/changeset/2533 Added option to disable stack-protector support auto-detection in gcc. Signed-off-by: Bernd Kuhls --- ...pkg-config-to-find-libpcre-it-s-more-cros.patch | 39 --------------- package/aircrack-ng/0001-stack-protector.patch | 58 ++++++++++++++++++++++ ...se-LIBPCAP-for-required-libpcap-libraries.patch | 33 ------------ ...ide-ng-Use-termios-instead-of-sys-termios.patch | 27 ---------- package/aircrack-ng/aircrack-ng.hash | 4 +- package/aircrack-ng/aircrack-ng.mk | 8 ++- 6 files changed, 67 insertions(+), 102 deletions(-) delete mode 100644 package/aircrack-ng/0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch create mode 100644 package/aircrack-ng/0001-stack-protector.patch delete mode 100644 package/aircrack-ng/0002-Optionally-use-LIBPCAP-for-required-libpcap-libraries.patch delete mode 100644 package/aircrack-ng/0003-Wesside-ng-Use-termios-instead-of-sys-termios.patch diff --git a/package/aircrack-ng/0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch b/package/aircrack-ng/0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch deleted file mode 100644 index 733e0c06d..000000000 --- a/package/aircrack-ng/0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 98149c7664e99cc8ce9c9b1abf2fa90d9cd68e0d Mon Sep 17 00:00:00 2001 -From: Gustavo Zacarias -Date: Wed, 5 Nov 2014 09:38:12 -0300 -Subject: [PATCH] Makefile: use pkg-config to find libpcre, it's more - cross-compile friendly - -Signed-off-by: Gustavo Zacarias ---- -Status: Upstream http://trac.aircrack-ng.org/ticket/1526 - -diff --git a/common.mak b/common.mak -index 6e5694b..d875708 100644 ---- a/common.mak -+++ b/common.mak -@@ -39,7 +39,7 @@ PCRE = true - endif - - ifeq ($(PCRE), true) --COMMON_CFLAGS += $(shell pcre-config --cflags) -DHAVE_PCRE -+COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcre) -DHAVE_PCRE - endif - - ifeq ($(OSNAME), cygwin) -diff --git a/src/Makefile b/src/Makefile -index f9217f9..14350b6 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -16,7 +16,7 @@ BINFILES = aircrack-ng$(EXE) airdecap-ng$(EXE) packetforge-ng$(EXE) \ - - LIBPCRE = - ifeq ($(PCRE), true) -- LIBPCRE = $(shell pcre-config --libs) -+ LIBPCRE = $(shell $(PKG_CONFIG) --libs libpcre) - endif - - ifneq ($(OSNAME), cygwin) #There is yet no libpcap support for windows, so we skip the crawler --- -2.0.4 - diff --git a/package/aircrack-ng/0001-stack-protector.patch b/package/aircrack-ng/0001-stack-protector.patch new file mode 100644 index 000000000..5f2bd1b18 --- /dev/null +++ b/package/aircrack-ng/0001-stack-protector.patch @@ -0,0 +1,58 @@ +Added option to disable stack-protector support auto-detection in gcc. + +Downloaded from upstream commit: +http://trac.aircrack-ng.org/changeset/2889/ + +Signed-off-by: Bernd Kuhls + +Index: /trunk/INSTALLING +=================================================================== +--- trunk/INSTALLING (revision 2888) ++++ trunk/INSTALLING (revision 2889) +@@ -83,4 +83,6 @@ + * macport: Set this flag to true to compile on OS X with macports. + ++* stackprotector: Allows to enable/disable auto-detection of stack-protector support in gcc ++ + Example: + +Index: /trunk/common.mak +=================================================================== +--- trunk/common.mak (revision 2888) ++++ trunk/common.mak (revision 2889) +@@ -64,4 +64,13 @@ + ifeq ($(PCRE), true) + COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcre) -DHAVE_PCRE ++endif ++ ++STACK_PROTECTOR = true ++ifeq ($(stackprotector), false) ++ STACK_PROTECTOR = false ++endif ++ ++ifeq ($(STACKPROTECTOR), false) ++ STACK_PROTECTOR = false + endif + +@@ -235,12 +244,14 @@ + endif + +-ifeq ($(GCC_OVER49), 0) +- ifeq ($(GCC_OVER41), 1) +- COMMON_CFLAGS += -fstack-protector ++ifeq ($(STACK_PROTECTOR), true) ++ ifeq ($(GCC_OVER49), 0) ++ ifeq ($(GCC_OVER41), 1) ++ COMMON_CFLAGS += -fstack-protector ++ endif + endif +-endif +- +-ifeq ($(GCC_OVER49), 1) +- COMMON_CFLAGS += -fstack-protector-strong ++ ++ ifeq ($(GCC_OVER49), 1) ++ COMMON_CFLAGS += -fstack-protector-strong ++ endif + endif + diff --git a/package/aircrack-ng/0002-Optionally-use-LIBPCAP-for-required-libpcap-libraries.patch b/package/aircrack-ng/0002-Optionally-use-LIBPCAP-for-required-libpcap-libraries.patch deleted file mode 100644 index c92bb8df8..000000000 --- a/package/aircrack-ng/0002-Optionally-use-LIBPCAP-for-required-libpcap-libraries.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 1abf7a6aad3d7931de2c01b578f62986b75de2f5 Mon Sep 17 00:00:00 2001 -From: Gustavo Zacarias -Date: Tue, 11 Nov 2014 16:23:42 -0300 -Subject: [PATCH] Optionally use LIBPCAP for required libpcap libraries - -Signed-off-by: Gustavo Zacarias ---- -Status: Reported http://trac.aircrack-ng.org/ticket/1528 - -diff --git a/src/Makefile b/src/Makefile -index 14350b6..7bd4271 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -23,6 +23,7 @@ ifneq ($(OSNAME), cygwin) #There is yet no libpcap support for windows, so we sk - HAVE_PCAP = $(shell ld -lpcap 2> /dev/null && echo yes) - ifeq ($(HAVE_PCAP), yes) #cannot link with -lpcap, skip crawler - BINFILES += besside-ng-crawler$(EXE) -+ LIBPCAP = -lpcap - endif - endif - -@@ -168,7 +169,7 @@ besside-ng$(EXE): $(OBJS_BS) $(LIBOSD) - $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BS) -o $(@) $(LIBS) $(LIBSSL) -lz $(LIBPCRE) - - besside-ng-crawler$(EXE): $(OBJS_BC) -- $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BC) -o $(@) -lpcap -+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BC) -o $(@) $(LIBPCAP) - - makeivs-ng$(EXE): $(OBJS_MI) - $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_MI) -o $(@) $(LDFLAGS) --- -2.0.4 - diff --git a/package/aircrack-ng/0003-Wesside-ng-Use-termios-instead-of-sys-termios.patch b/package/aircrack-ng/0003-Wesside-ng-Use-termios-instead-of-sys-termios.patch deleted file mode 100644 index a10ee4543..000000000 --- a/package/aircrack-ng/0003-Wesside-ng-Use-termios-instead-of-sys-termios.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 42de9f800056601443ac12edbba7bd5802740db2 Mon Sep 17 00:00:00 2001 -From: Thomas d'Otreppe -Date: Wed, 8 Apr 2015 01:25:07 +0000 -Subject: [PATCH] Wesside-ng: Use termios instead of sys/termios. - -git-svn-id: http://svn.aircrack-ng.org/trunk@2533 28c6078b-6c39-48e3-add9-af49d547ecab -Signed-off-by: Romain Naour ---- - src/wesside-ng.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/wesside-ng.c b/src/wesside-ng.c -index 711d8b7..f44438a 100644 ---- a/src/wesside-ng.c -+++ b/src/wesside-ng.c -@@ -33,7 +33,7 @@ - - #include - #include --#include -+#include - #include - #include - #include --- -2.4.3 - diff --git a/package/aircrack-ng/aircrack-ng.hash b/package/aircrack-ng/aircrack-ng.hash index 1ed27fc4e..e210ad2e4 100644 --- a/package/aircrack-ng/aircrack-ng.hash +++ b/package/aircrack-ng/aircrack-ng.hash @@ -1,3 +1,3 @@ # From http://www.aircrack-ng.org/downloads.html -sha1 b5ff7d0fffb72095311bbe8824ab98aaac62db8f aircrack-ng-1.2-rc1.tar.gz -md5 c2f8648c92f7e46051c86c618d4fb0d5 aircrack-ng-1.2-rc1.tar.gz +sha1 2b2fbe50fedb606b3bd96a34d49f07760e8e618a aircrack-ng-1.2-rc4.tar.gz +md5 3bbc7d5035a98ec01e78774d05c3fcce aircrack-ng-1.2-rc4.tar.gz diff --git a/package/aircrack-ng/aircrack-ng.mk b/package/aircrack-ng/aircrack-ng.mk index 8cf1f471f..b72862400 100644 --- a/package/aircrack-ng/aircrack-ng.mk +++ b/package/aircrack-ng/aircrack-ng.mk @@ -4,7 +4,7 @@ # ################################################################################ -AIRCRACK_NG_VERSION = 1.2-rc1 +AIRCRACK_NG_VERSION = 1.2-rc4 AIRCRACK_NG_SITE = http://download.aircrack-ng.org AIRCRACK_NG_LICENSE = GPL-2.0+ AIRCRACK_NG_LICENSE_FILES = LICENSE @@ -24,6 +24,12 @@ AIRCRACK_NG_MAKE_OPTS += libnl=true AIRCRACK_NG_DEPENDENCIES += libnl endif +ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y) +AIRCRACK_NG_MAKE_OPTS += STACK_PROTECTOR=true +else +AIRCRACK_NG_MAKE_OPTS += STACK_PROTECTOR=false +endif + ifeq ($(BR2_PACKAGE_LIBPCAP),y) AIRCRACK_NG_DEPENDENCIES += libpcap AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=yes \