pcileech: add ft60x_driver

This commit is contained in:
blshkv 2018-06-01 12:22:25 +08:00
parent 11b89b5cba
commit 5f26ecf335
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
4 changed files with 38 additions and 2 deletions

View file

@ -10,9 +10,10 @@ SRC_URI="https://github.com/ufrisk/pcileech/archive/v${PV}.tar.gz -> ${P}.tar.gz
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="python"
IUSE="ft60x_driver"
DEPEND="virtual/libusb:1"
DEPEND="virtual/libusb:1
ft60x_driver? ( sys-kernel/ft60x_driver )"
RDEPEND="${DEPEND}"
src_compile() {

View file

@ -11,3 +11,5 @@ sys-kernel/ax88179_178a
sys-kernel/pf_ring-kmod
sys-kernel/minipli-sources
sys-kernel/ft60x_driver

View file

@ -0,0 +1 @@
DIST ft60x_driver-20180209.zip 17430 BLAKE2B f3f7fff75add035ec390982d9df9079f95970d12f877d6d1baa8ebbb54aa691eb5e93b60fb4191fae2cba86d22b2f385b9d21fe1eeec980d443de36e7150ae93 SHA512 0f9af5697486d645dd9c0b9995212df73b03a2f4559ef98d8bdec49cf5be4da11ca387712ebe3c66da0b34f363e1b4d8f77c7d3fd7e9ece4ba72e6cf4b476827

View file

@ -0,0 +1,32 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit linux-mod udev
MY_COMMIT="4299a497c043cc3ddf4cb8dfcc0d4a45d44b80f9"
DESCRIPTION="USB FT60x driver"
HOMEPAGE="https://github.com/lambdaconcept/ft60x_driver"
SRC_URI="https://github.com/lambdaconcept/ft60x_driver/archive/${MY_COMMIT}.zip -> ${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
IUSE=""
S="${WORKDIR}/${PN}-${MY_COMMIT}"
MODULE_NAMES="ft60x(usb:${S}:${S})"
BUILD_TARGETS="all"
pkg_setup() {
linux-mod_pkg_setup
}
src_install() {
linux-mod_src_install
udev_dorules 51-ft60x.rules
}