mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 18:40:19 +02:00
commit
22a66596d2
4 changed files with 72 additions and 34 deletions
|
|
@ -1 +1 @@
|
|||
DIST chipsec-1.10.4.tar.gz 1006573 BLAKE2B 37fd423200a8bcdaeb8f66ea505d86872c8e863a5149f6c9778cd97f545f4406433a5145af191c23711990acb22e437373bd7ed28ef2b848d77073210b8b66d2 SHA512 dc5e70dfd18273ebcf7eee22061acc87f28a949dd4ebf629235973578e55ec75d7b53a87b7d2176b5143c8dd983ef007bacc3d4a1264dc828c5bf536f415e687
|
||||
DIST chipsec-1.13.3.tar.gz 3486337 BLAKE2B ac55a15e6e82a926044be7c951e0388855b31825f901bd11b0b574c48c0c25943c6935ae9e15eb593db51998143345294fe2a6173016c109e7335e520d49e66f SHA512 e73c9cc5b5a357c14bf080ae0cc109921fbceeba55afa25af720c7640cdd2227cba8da25b38cd6bf6fdbccda7f5f3ddb40afb1b7da182b7bc0829fd34e1eee68
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# https://projects.gentoo.org/python/guide/distutils.html#pep-517-build-systems
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Platform Security Assessment Framework"
|
||||
HOMEPAGE="https://github.com/chipsec/chipsec"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-arch/brotli[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
#distutils_enable_tests pytest
|
||||
|
||||
src_prepare(){
|
||||
# https://github.com/chipsec/chipsec/issues/1755
|
||||
sed -i "/data_files/d" setup.py || die
|
||||
|
||||
# https://github.com/chipsec/chipsec/pull/1743
|
||||
cp -r "${FILESDIR}/Include" ./chipsec_tools/compression/ || die
|
||||
eapply_user
|
||||
}
|
||||
56
dev-util/chipsec/chipsec-1.13.3.ebuild
Normal file
56
dev-util/chipsec/chipsec-1.13.3.ebuild
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit linux-mod-r1 distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Platform Security Assessment Framework"
|
||||
HOMEPAGE="https://github.com/chipsec/chipsec"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~x86"
|
||||
IUSE="+chipsec-driver"
|
||||
|
||||
RDEPEND="app-arch/brotli[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# compile against selected (not running) target
|
||||
pkg_setup() {
|
||||
if use chipsec-driver; then
|
||||
linux-mod-r1_pkg_setup
|
||||
else
|
||||
die "Could not determine proper ${PN} package"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare(){
|
||||
# https://github.com/chipsec/chipsec/issues/1755
|
||||
sed -i "/data_files/d" setup.py || die
|
||||
# https://github.com/chipsec/chipsec/pull/1743 (still not fixed, despite being merged)
|
||||
cp -r "${FILESDIR}/Include" ./chipsec_tools/compression/ || die
|
||||
distutils-r1_src_prepare
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use chipsec-driver; then
|
||||
local modlist=( chipsec=misc:drivers/linux )
|
||||
local modargs=( KVER="${KV_FULL}" KSRC="${KERNEL_DIR}" )
|
||||
linux-mod-r1_src_compile
|
||||
fi
|
||||
distutils-r1_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use chipsec-driver; then
|
||||
linux-mod-r1_src_install
|
||||
fi
|
||||
distutils-r1_src_install
|
||||
}
|
||||
15
dev-util/chipsec/metadata.xml
Normal file
15
dev-util/chipsec/metadata.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="chipsec-driver">Install kernel driver</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">chipsec/chipsec</remote-id>
|
||||
<remote-id type="pypi">chipsec</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in a new issue