parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 1479b60d3bf24f390470638846f894d81a58257d
parent aa041f31c9bda11a1adbacd6ea4d9eaf0baf4ceb
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 10 Oct 2016 14:44:38 +0200

net-wireless/reaver-wps-fork-t6x: Fix musl-libc compilation.

Diffstat:
Anet-wireless/reaver-wps-fork-t6x/files/0100-Include-sys-types.h-for-definition-of-u_char.patch | 27+++++++++++++++++++++++++++
Dnet-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-1.5.2_p20160220.ebuild | 47-----------------------------------------------
Mnet-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-9999.ebuild | 6++++--
3 files changed, 31 insertions(+), 49 deletions(-)

diff --git a/net-wireless/reaver-wps-fork-t6x/files/0100-Include-sys-types.h-for-definition-of-u_char.patch b/net-wireless/reaver-wps-fork-t6x/files/0100-Include-sys-types.h-for-definition-of-u_char.patch @@ -0,0 +1,27 @@ +From 811f5c0b0a226edfbf5aa2f316e083f30ec3cd8d Mon Sep 17 00:00:00 2001 +From: Yousong Zhou <yszhou4tech@gmail.com> +Date: Tue, 18 Aug 2015 14:34:26 +0800 +Subject: [PATCH] Include <sys/types.h> for definition of u_char. + +Fixes build with musl-libc. + +Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> +--- + src/libwps/libwps.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/libwps/libwps.h b/src/libwps/libwps.h +index b04dd8b..bdd7b9a 100755 +--- a/src/libwps/libwps.h ++++ b/src/libwps/libwps.h +@@ -17,6 +17,7 @@ + #include <stdio.h> + #include <string.h> + #include <arpa/inet.h> ++#include <sys/types.h> + + #define LIBWPS_MAX_STR_LEN 256 + +-- +1.7.10.4 + diff --git a/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-1.5.2_p20160220.ebuild b/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-1.5.2_p20160220.ebuild @@ -1,47 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -AUTOTOOLS_IN_SOURCE_BUILD="1" -inherit autotools-utils eutils git-r3 - -DESCRIPTION="Utilise Pixie Dust Attack to find the correct WPS PIN." -HOMEPAGE="https://github.com/t6x/reaver-wps-fork-t6x" -EGIT_REPO_URI="https://github.com/t6x/reaver-wps-fork-t6x.git" -EGIT_COMMIT="6e60ee25e86ec798de2e23971b029d555e9dc398" - -ECONF_SOURCE="${S}/src" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="!net-wireless/reaver - net-libs/libpcap - dev-db/sqlite:3" -RDEPEND="${DEPEND}" - -#S="${WORKDIR}/${P}/src" - -ECONF_SOURCE="${S}/src" - -#these patches need to be verified and pushed upstream -#src_prepare() { -# epatch "${FILESDIR}" /000[1-4]*.patch - #http://code.google.com/p/reaver-wps/issues/detail?id=420 -# epatch "${FILESDIR}" /0005-soreau-show-status-r2.patch -#} - -src_install() { - cd src - dobin wash reaver - - insinto "/etc/reaver" - doins reaver.db - - doman ../docs/reaver.1.gz - dodoc ../docs/README ../docs/README.REAVER ../docs/README.WASH -} diff --git a/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-9999.ebuild b/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-9999.ebuild @@ -31,11 +31,13 @@ RDEPEND="${DEPEND}" ECONF_SOURCE="${S}/src" #these patches need to be verified and pushed upstream -#src_prepare() { +src_prepare() { # epatch "${FILESDIR}" /000[1-4]*.patch #http://code.google.com/p/reaver-wps/issues/detail?id=420 # epatch "${FILESDIR}" /0005-soreau-show-status-r2.patch -#} + + epatch "${FILESDIR}"/0100-Include-sys-types.h-for-definition-of-u_char.patch +} src_install() { cd src