net-wireless/reaver: bump to 1.6.5
authorMaxim Koltsov <maksbotan@gentoo.org>
Fri, 25 Oct 2019 20:43:09 +0000 (23:43 +0300)
committerMaxim Koltsov <maksbotan@gentoo.org>
Fri, 25 Oct 2019 21:13:39 +0000 (00:13 +0300)
Thanks to Oleh Kravchenko.

Closes: https://bugs.gentoo.org/696672
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Maxim Koltsov <maksbotan@gentoo.org>
net-wireless/reaver/Manifest
net-wireless/reaver/files/reaver-1.6.5-confdir.patch [new file with mode: 0644]
net-wireless/reaver/reaver-1.6.5.ebuild [new file with mode: 0644]

index 413daae1a1a6197a685507088f506a3c55a3cf37..1404ddcf15b4f721a35269a54b4b47de5b3cfdd8 100644 (file)
@@ -1 +1,2 @@
 DIST reaver-1.4.tar.gz 766603 BLAKE2B 4a488364718a17ec29c1d8da4bc7032b65e4597b89c2949e7108d625276e60d0b424f3b87a3d6baa30d5909ac206d6f7793f5e4514c307cc54784386ce5ce422 SHA512 59f2d6f8aa6228988ce5d1c102d9a48b2a23e582ff3d9afe39d7c9717b7e4be059362fdd21a3e5f5d59948df1a7616acdaa6df20f139e9c5aa9bd673f764dfbc
+DIST reaver-1.6.5.tar.gz 479441 BLAKE2B 21a1c54da559be4346b0c874947e982ea49ec6f20e612e3699d25524d49681a197a2a8cad0a31dd8dba919d065de48082572a471aa4f736397066edf7f7d8a43 SHA512 3e70d9fffefee3f6d60e72d7d7b1da91032e184c7d27f94b9f26e2260b7274d491f2e41f8056b386a211b9838d21afc6b65a8a826d310b51fc1065fa9e135dc0
diff --git a/net-wireless/reaver/files/reaver-1.6.5-confdir.patch b/net-wireless/reaver/files/reaver-1.6.5-confdir.patch
new file mode 100644 (file)
index 0000000..d5673d8
--- /dev/null
@@ -0,0 +1,10 @@
+--- src/config.mak.in  2019-10-25 23:32:43.196353940 +0300
++++ src/config.mak.in  2019-10-25 23:32:33.935249226 +0300
+@@ -1,6 +1,6 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-CONFDIR=@localstatedir@/lib/@target@
++CONFDIR=@localstatedir@/@target@
+ CC=@CC@
+ CFLAGS_USER=@CFLAGS@
diff --git a/net-wireless/reaver/reaver-1.6.5.ebuild b/net-wireless/reaver/reaver-1.6.5.ebuild
new file mode 100644 (file)
index 0000000..dd1c568
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="reaver-wps-fork-t6x"
+
+DESCRIPTION="Brute force attack against Wifi Protected Setup"
+HOMEPAGE="https://github.com/t6x/${MY_PN}"
+SRC_URI="https://github.com/t6x/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+DEPEND="net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}/src"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-confdir.patch
+)
+
+src_install() {
+       # Upstream's Makefile does the same but in non-standard way.
+       dobin wash reaver
+
+       doman ../docs/reaver.1
+       dodoc ../docs/README ../docs/README.REAVER ../docs/README.WASH
+
+       keepdir /var/lib/reaver
+}