pentoo-overlay/app-forensics/pcileech/pcileech-4.0.ebuild
2019-03-09 01:58:05 +08:00

32 lines
711 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Direct Memory Access (DMA) Attack Software"
HOMEPAGE="https://github.com/ufrisk/pcileech"
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="ft60x_driver"
DEPEND="virtual/libusb:1
dev-libs/LeechCore
ft60x_driver? ( sys-kernel/ft60x_driver )"
RDEPEND="${DEPEND}"
src_prepare() {
#https://github.com/ufrisk/pcileech/issues/82
sed -i "s|-l:../files/leechcore.so|-l:leechcore.so|" pcileech/Makefile
eapply_user
}
src_compile() {
emake -C pcileech
}
src_install(){
dobin files/pcileech
}