mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 11:00:48 +02:00
28 lines
609 B
Bash
28 lines
609 B
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
DESCRIPTION="Small tool to capture packets from wlan devices"
|
|
HOMEPAGE="https://github.com/ZerBea/hcxdumptool"
|
|
SRC_URI="https://github.com/ZerBea/hcxdumptool/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
IUSE="gpio"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_configure(){
|
|
local GPIOSUPPORT
|
|
if use gpio; then
|
|
GPIOSUPPORT="GPIOSUPPORT=on"
|
|
fi
|
|
emake ${GPIOSUPPORT}
|
|
}
|
|
|
|
src_install(){
|
|
emake ${GPIOSUPPORT} DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" install
|
|
}
|