diff options
Diffstat (limited to 'sys-apps/fwts')
-rw-r--r-- | sys-apps/fwts/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/fwts/fwts-20.11.00.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-apps/fwts/Manifest b/sys-apps/fwts/Manifest index 58e05e009c91..53c1621087a4 100644 --- a/sys-apps/fwts/Manifest +++ b/sys-apps/fwts/Manifest @@ -1,3 +1,5 @@ DIST fwts_20.05.00.orig.tar.gz 3817917 BLAKE2B 10365979a1b6bf2768930e144baa3982d462f05b77b1ca81116f7b44b80487924f37e097e46602c49696e987d9061a1917e3613e016bdb126146d880699c38f8 SHA512 4f68f6fc8351024e877e6fa6c9b856c7c3720348c1936f33fc8b455f5e85df83c9dc39a5c2dc16e106c851d4ac622f0a1d23b70f2b7726689f92077dbca5d82f +DIST fwts_20.11.00.orig.tar.gz 3845548 BLAKE2B 3d08bf3dd339543fc67984f5da081a4ac4a0e1b413431bb0836ec2a99130f76cd717ff61128b09e9e7c24cb275b52cd2503c34daa273c8328cee7eb2453706ea SHA512 650fa21ceb4528a6d7fa40ae44c3258e01208186328fce8ca889df2809f82abf9b966c76c99791b3f40b17e5c2efda5b15dd2def4aaf494004778337f5074b55 EBUILD fwts-20.05.00.ebuild 1127 BLAKE2B c966a749987a9f5a23d7bb2ae3b7f506a5ace2bdab79851615d601cafd0aae20d2a845d89b064944a0c12076d6cce058604195ad266918dde1e8295eed241ede SHA512 4ce7fd15f1bd44644998be1b7d0913a6a8176bf3d76738077e1d793294b8d865aea579e386deba766b3d8080d5f2b08bf58722c6b0e950e8b990c62abf7951fb +EBUILD fwts-20.11.00.ebuild 1160 BLAKE2B 3babb19a62e51f008dffbeec21350e6549a3857bc370e26252dcf6b9fe835723f17fd0e8cddd46b33c5ac37cfce584cc03aef2d7ab32615496a861e1d8f9152c SHA512 fb2e7c94ca9b19f36e329b7ffb9b6a4955b7eb8581cffec849e10797851e598ababfaf4dc05b3adb8ae01413cc97b66cdcc42b175a960c7595e5c4c1ad5851ba MISC metadata.xml 241 BLAKE2B f00f58ea265e1a7321a74a2e8a86824f7a1930a6e99162af446a1c1f831139711d626045b21215856a29e6ba4575bc38c7ab965ffb547757dbf4305235245039 SHA512 9a4d0499ef0c9cb67816755a3313bbba0b42f01b35d5d7da31dfe3e14a94fead3b8c202b95ffd4a9c5edbda7b046045b19095924b57a08cd97aacbda5bbd4550 diff --git a/sys-apps/fwts/fwts-20.11.00.ebuild b/sys-apps/fwts/fwts-20.11.00.ebuild new file mode 100644 index 000000000000..0d5da91d7a1c --- /dev/null +++ b/sys-apps/fwts/fwts-20.11.00.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Firmware Test Suite" +HOMEPAGE="https://wiki.ubuntu.com/Kernel/Reference/fwts" +SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-libs/glib:2 + >=dev-libs/json-c-0.10-r1 + dev-libs/libbsd + dev-libs/libpcre + sys-apps/dmidecode + sys-apps/dtc + sys-apps/pciutils + sys-power/iasl + sys-power/pmtools + " +DEPEND="${RDEPEND} + sys-devel/libtool" + +S=${WORKDIR} + +src_prepare() { + default + sed -i -e 's/-Wall -Werror/-Wall/' configure.ac {,src/,src/lib/src/}Makefile.am || die + sed -i -e 's:/usr/bin/lspci:'$(type -p lspci)':' src/lib/include/fwts_binpaths.h || die + + # Fix json-c includes + sed -e 's/^#include <json\//#include <json-c\//g' -i \ + configure.ac || die + sed -e 's/^#include <json.h>/#include <json-c\/json.h>/' \ + -i src/lib/include/fwts_json.h \ + src/utilities/kernelscan.c || die + sed -e 's/-ljson/-ljson-c/'\ + -i src/Makefile.am\ + src/lib/src/Makefile.am\ + src/utilities/Makefile.am || die + + eautoreconf +} |