net-wireless/wepdecrypt: eapi bump
authorAlon Bar-Lev <alonbl@gentoo.org>
Sat, 4 Feb 2017 21:19:57 +0000 (23:19 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Sat, 4 Feb 2017 21:40:23 +0000 (23:40 +0200)
Package-Manager: portage-2.3.3

net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch
net-wireless/wepdecrypt/wepdecrypt-0.8-r2.ebuild

index 528816f147b58c27d644707bb6da4b4c59c897e2..4b8fb8d1223a26ed252505a15ac071e8dcb5424e 100644 (file)
@@ -1,5 +1,5 @@
---- src/wepclient.c    2006-07-08 19:48:08.000000000 -0400
-+++ src/wepclient.c.new        2010-12-10 13:16:32.000000000 -0500
+--- a/src/wepclient.c  2006-07-08 19:48:08.000000000 -0400
++++ b/src/wepclient.c  2010-12-10 13:16:32.000000000 -0500
 @@ -75,7 +75,7 @@
  int server_connection(unsigned char * server_host, int port, char * packet_file, unsigned char * init_key, unsigned char * end_key, unsigned char * decrypted_key, unsigned char * bssid, unsigned char * mode ,int option){
        int sd, read_bytes, write_bytes, i, fd;
index 473c8f2a2f0b6587706e21549175d2669c94c1fd..e08f59101bbd38aa4ff63bea54e879dd742ba3e2 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
+EAPI=6
 
 inherit eutils
 
@@ -15,30 +15,26 @@ SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
 IUSE="X"
 RDEPEND="
-       dev-libs/openssl
+       dev-libs/openssl:=
        net-libs/libpcap
        sys-libs/zlib
        X? ( x11-libs/fltk:1 )"
 DEPEND="${RDEPEND}"
 
-src_prepare() {
-       epatch \
-               "${FILESDIR}"/${P}-build.patch \
-               "${FILESDIR}"/${P}-fltk.patch
-
-       #Fix buffer size wrt bug 340148.
-       epatch "${FILESDIR}/${P}-buffer.patch"
+PATCHES=(
+       "${FILESDIR}/${P}-build.patch"
+       "${FILESDIR}/${P}-fltk.patch"
+       "${FILESDIR}/${P}-buffer.patch" # bug#340148.
+       "${FILESDIR}/${P}-dyn.patch"
+)
 
-       epatch "${FILESDIR}/${P}-dyn.patch"
+src_prepare() {
+       default
 
-       #Fix respect for jobserver
        sed -i 's/make/$(MAKE)/g' Makefile || die "Sed failed"
 }
 
 src_configure() {
-       # build system is broken and --enabled-gui doesn't work
-       local myconf=""
-       ! use X && myconf="--disable-gui"
-
-       econf ${myconf}
+       econf \
+               $(use X || echo --disable-gui)
 }