Totem building
This commit is contained in:
1
sys-apps/fwupd/.audit
Normal file
1
sys-apps/fwupd/.audit
Normal file
@ -0,0 +1 @@
|
||||
FL-5300: hold the fwupd to version 1.0.6.
|
4
sys-apps/fwupd/Manifest
Normal file
4
sys-apps/fwupd/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
AUX fwupd-r2 296 BLAKE2B 468be25169ca913bd1a051cc66a0238510161a529738b10b74d5dea2837454ea0930208f215418d25c4e7c0b5f84d7d51e7039d6debad7b247d389fac53ec355 SHA512 6a1e546948064062129e349685d3915c0746bb682aec9c2e2db28b7361590d1a7a344550d756a8baff75073849caf07f5fcbfae8be04d825c5aa78cfe18bef5e
|
||||
DIST fwupd-1.7.7-76821bc.tar.gz 4058027 BLAKE2B dc3586065c6b260f893fdaab7c0abadf9626efbc46a9380376722c0488bee56d0244ee1afa1cbf72fd9100d1275d2cc0c67c217072c069dc2946023880256f16 SHA512 8a710898d5f98ab61cedd78f0db0340b89685b490c69c6a1587a15e7850aa9e1395a46371206f66e471fd252f504da7830273485f7a1d7055a1516a4eb315778
|
||||
EBUILD fwupd-1.7.7.ebuild 4654 BLAKE2B d30e72dee21a068341519cbcf734fb5469c96024494e29691c8e9850ff6a2755da3b1edf2b095e1b94a09cc03e2e6d93a4184cafaea0d50b82454589d10927d7 SHA512 d71f271a7f2acbf65e087873d9585475df6d66e1270fce70340836d0d8c3f3107cdd8d9f306ffcd89a33a28f73158667be9758c799538fa9add0532fc27b14f0
|
||||
MISC autogen.yaml 312 BLAKE2B ad3afd8e8577e1e8d9c3af7ce2a85bed91cee7c3112d5ad9f586c88e795270ffe66390b580bf8b48adfcd3da30fb3d63a6df5e7aadf7942f3c5a1e026a005557 SHA512 f13839ac9cf9176202cfe6fc271cff4c00d9740405311545fbd92fc1b47f1e8bb20cf758fa91f7ee9a395c3fdf3cac16ee8339af5f466ddf71fd33fc840bcf03
|
16
sys-apps/fwupd/autogen.yaml
Normal file
16
sys-apps/fwupd/autogen.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
fwupd_rule:
|
||||
generator: github-1
|
||||
defaults:
|
||||
python_compat: python3+
|
||||
packages:
|
||||
- fwupd:
|
||||
github:
|
||||
user: fwupd
|
||||
repo: fwupd
|
||||
query: releases
|
||||
select: '1.7.7'
|
||||
- fwupd-efi:
|
||||
github:
|
||||
user: fwupd
|
||||
repo: fwupd-efi
|
||||
query: tags
|
13
sys-apps/fwupd/files/fwupd-r2
Normal file
13
sys-apps/fwupd/files/fwupd-r2
Normal file
@ -0,0 +1,13 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Firmware update daemon"
|
||||
pidfile="/var/run/fwupd.pid"
|
||||
command="/usr/libexec/fwupd/fwupd"
|
||||
command_background="true"
|
||||
|
||||
depend() {
|
||||
need elogind dbus
|
||||
before xdm
|
||||
}
|
177
sys-apps/fwupd/fwupd-1.7.7.ebuild
Normal file
177
sys-apps/fwupd/fwupd-1.7.7.ebuild
Normal file
@ -0,0 +1,177 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3+ )
|
||||
|
||||
inherit bash-completion-r1 linux-info meson python-single-r1 vala xdg
|
||||
|
||||
DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
|
||||
HOMEPAGE="https://fwupd.org"
|
||||
SRC_URI="https://github.com/fwupd/fwupd/tarball/76821bcb78b7557d879f5d723d6faf27464459bb -> fwupd-1.7.7-76821bc.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="*"
|
||||
IUSE="amt archive bash-completion bluetooth +dell +elogind fastboot flashrom gnutls gtk-doc gusb introspection logitech lzma +man minimal modemmanager nvme policykit spi +sqlite synaptics test thunderbolt tpm uefi"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
^^ ( elogind minimal )
|
||||
dell? ( uefi )
|
||||
fastboot? ( gusb )
|
||||
logitech? ( gusb )
|
||||
minimal? ( !introspection )
|
||||
spi? ( lzma )
|
||||
synaptics? ( gnutls )
|
||||
uefi? ( gnutls )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="$(vala_depend)
|
||||
virtual/pkgconfig
|
||||
gtk-doc? ( dev-util/gtk-doc )
|
||||
bash-completion? ( >=app-shells/bash-completion-2.0 )
|
||||
introspection? ( dev-libs/gobject-introspection )
|
||||
man? (
|
||||
app-text/docbook-sgml-utils
|
||||
sys-apps/help2man
|
||||
)
|
||||
test? (
|
||||
thunderbolt? ( dev-util/umockdev )
|
||||
net-libs/gnutls[tools]
|
||||
)
|
||||
"
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
>=app-arch/gcab-1.0
|
||||
app-arch/xz-utils
|
||||
>=dev-libs/glib-2.58:2
|
||||
dev-libs/json-glib
|
||||
dev-libs/libgudev:=
|
||||
>=dev-libs/libjcat-0.1.4[gpg,pkcs7]
|
||||
>=dev-libs/libxmlb-0.1.13:=[introspection?]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
|
||||
')
|
||||
>=net-libs/libsoup-2.51.92:2.4[introspection?]
|
||||
net-misc/curl
|
||||
archive? ( app-arch/libarchive:= )
|
||||
dell? ( >=sys-libs/libsmbios-2.4.0 )
|
||||
elogind? ( >=sys-auth/elogind-211 )
|
||||
flashrom? ( >=sys-apps/flashrom-1.2-r3 )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
gusb? ( >=dev-libs/libgusb-0.3.5[introspection?] )
|
||||
logitech? ( dev-libs/protobuf-c:= )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
modemmanager? ( net-misc/modemmanager[qmi] )
|
||||
policykit? ( >=sys-auth/polkit-0.103 )
|
||||
sqlite? ( dev-db/sqlite )
|
||||
tpm? ( app-crypt/tpm2-tss:= )
|
||||
uefi? (
|
||||
sys-apps/fwupd-efi
|
||||
sys-boot/efibootmgr
|
||||
sys-fs/udisks
|
||||
sys-libs/efivar
|
||||
)
|
||||
"
|
||||
# Block sci-chemistry/chemical-mime-data for bug #701900
|
||||
RDEPEND="
|
||||
!<sci-chemistry/chemical-mime-data-0.1.94-r4
|
||||
${COMMON_DEPEND}
|
||||
sys-apps/dbus
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
x11-libs/pango[introspection]
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
if use nvme ; then
|
||||
kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4"
|
||||
fi
|
||||
}
|
||||
|
||||
post_src_unpack() {
|
||||
if [ ! -d "${S}" ]; then
|
||||
mv fwupd-fwupd* "${S}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# c.f. https://github.com/fwupd/fwupd/issues/1414
|
||||
sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \
|
||||
-i plugins/thunderbolt/meson.build || die
|
||||
|
||||
sed -e '/platform-integrity/d' \
|
||||
-i plugins/meson.build || die #753521
|
||||
|
||||
sed -e "/install_dir.*'doc'/s/fwupd/${PF}/" \
|
||||
-i data/builder/meson.build || die
|
||||
|
||||
vala_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local plugins=(
|
||||
-Dplugin_gpio="false"
|
||||
$(meson_use amt plugin_amt)
|
||||
$(meson_use dell plugin_dell)
|
||||
$(meson_use fastboot plugin_fastboot)
|
||||
$(meson_use flashrom plugin_flashrom)
|
||||
$(meson_use gusb plugin_uf2)
|
||||
$(meson_use logitech plugin_logitech_bulkcontroller)
|
||||
$(meson_use modemmanager plugin_modem_manager)
|
||||
$(meson_use nvme plugin_nvme)
|
||||
$(meson_use sqlite)
|
||||
$(meson_use spi plugin_intel_spi)
|
||||
$(meson_use synaptics plugin_synaptics_mst)
|
||||
$(meson_use synaptics plugin_synaptics_rmi)
|
||||
$(meson_use thunderbolt plugin_thunderbolt)
|
||||
$(meson_use tpm plugin_tpm)
|
||||
$(meson_use uefi plugin_uefi_capsule)
|
||||
$(meson_use uefi plugin_uefi_capsule_splash)
|
||||
$(meson_use uefi plugin_uefi_pk)
|
||||
)
|
||||
use ppc64 && plugins+=( -Dplugin_msr="false" )
|
||||
use riscv && plugins+=( -Dplugin_msr="false" )
|
||||
|
||||
local emesonargs=(
|
||||
--localstatedir "${EPREFIX}"/var
|
||||
-Dbuild="$(usex minimal standalone all)"
|
||||
-Dconsolekit="false"
|
||||
-Dsystemd="false"
|
||||
-Dcurl="true"
|
||||
-Ddocs="$(usex gtk-doc gtkdoc none)"
|
||||
-Defi_binary="false"
|
||||
-Dsupported_build="true"
|
||||
$(meson_use archive libarchive)
|
||||
$(meson_use bash-completion bash_completion)
|
||||
$(meson_use bluetooth bluez)
|
||||
$(meson_use elogind)
|
||||
$(meson_use gnutls)
|
||||
$(meson_use gusb)
|
||||
$(meson_use lzma)
|
||||
$(meson_use man)
|
||||
$(meson_use introspection)
|
||||
$(meson_use policykit polkit)
|
||||
$(meson_use test tests)
|
||||
|
||||
${plugins[@]}
|
||||
)
|
||||
use uefi && emesonargs+=( -Defi_os_dir="funtoo" )
|
||||
export CACHE_DIRECTORY="${T}"
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if ! use minimal ; then
|
||||
newinitd "${FILESDIR}"/${PN}-r2 ${PN}
|
||||
|
||||
# Don't timeout when fwupd is running (#673140)
|
||||
sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
|
||||
-i "${ED}"/etc/${PN}/daemon.conf || die
|
||||
fi
|
||||
}
|
48
sys-apps/fwupd/templates/fwupd-efi.tmpl
Normal file
48
sys-apps/fwupd/templates/fwupd-efi.tmpl
Normal file
@ -0,0 +1,48 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( {{python_compat}} )
|
||||
|
||||
inherit meson python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="EFI executable for fwupd"
|
||||
HOMEPAGE="https://fwupd.org"
|
||||
SRC_URI="{{artifacts[0].src_uri}}"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="*"
|
||||
IUSE=""
|
||||
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DEPEND="sys-boot/gnu-efi"
|
||||
|
||||
RDEPEND="!<sys-apps/fwupd-1.6.0"
|
||||
|
||||
post_src_unpack() {
|
||||
if [ ! -d "${S}" ]; then
|
||||
mv {{ github_user }}-{{ github_repo }}* "${S}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python_fix_shebang "${S}/efi"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Defi-cc="$(tc-getCC)"
|
||||
-Defi-ld="$(tc-getLD)"
|
||||
-Defi_sbat_distro_id="funtoo"
|
||||
-Defi_sbat_distro_summary="Funtoo GNU/Linux"
|
||||
-Defi_sbat_distro_pkgname="${PN}"
|
||||
-Defi_sbat_distro_version="${PVR}"
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
177
sys-apps/fwupd/templates/fwupd.tmpl
Normal file
177
sys-apps/fwupd/templates/fwupd.tmpl
Normal file
@ -0,0 +1,177 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( {{python_compat}} )
|
||||
|
||||
inherit bash-completion-r1 linux-info meson python-single-r1 vala xdg
|
||||
|
||||
DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
|
||||
HOMEPAGE="https://fwupd.org"
|
||||
SRC_URI="{{artifacts[0].src_uri}}"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="*"
|
||||
IUSE="amt archive bash-completion bluetooth +dell +elogind fastboot flashrom gnutls gtk-doc gusb introspection logitech lzma +man minimal modemmanager nvme policykit spi +sqlite synaptics test thunderbolt tpm uefi"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
^^ ( elogind minimal )
|
||||
dell? ( uefi )
|
||||
fastboot? ( gusb )
|
||||
logitech? ( gusb )
|
||||
minimal? ( !introspection )
|
||||
spi? ( lzma )
|
||||
synaptics? ( gnutls )
|
||||
uefi? ( gnutls )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="$(vala_depend)
|
||||
virtual/pkgconfig
|
||||
gtk-doc? ( dev-util/gtk-doc )
|
||||
bash-completion? ( >=app-shells/bash-completion-2.0 )
|
||||
introspection? ( dev-libs/gobject-introspection )
|
||||
man? (
|
||||
app-text/docbook-sgml-utils
|
||||
sys-apps/help2man
|
||||
)
|
||||
test? (
|
||||
thunderbolt? ( dev-util/umockdev )
|
||||
net-libs/gnutls[tools]
|
||||
)
|
||||
"
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
>=app-arch/gcab-1.0
|
||||
app-arch/xz-utils
|
||||
>=dev-libs/glib-2.58:2
|
||||
dev-libs/json-glib
|
||||
dev-libs/libgudev:=
|
||||
>=dev-libs/libjcat-0.1.4[gpg,pkcs7]
|
||||
>=dev-libs/libxmlb-0.1.13:=[introspection?]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
|
||||
')
|
||||
>=net-libs/libsoup-2.51.92:2.4[introspection?]
|
||||
net-misc/curl
|
||||
archive? ( app-arch/libarchive:= )
|
||||
dell? ( >=sys-libs/libsmbios-2.4.0 )
|
||||
elogind? ( >=sys-auth/elogind-211 )
|
||||
flashrom? ( >=sys-apps/flashrom-1.2-r3 )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
gusb? ( >=dev-libs/libgusb-0.3.5[introspection?] )
|
||||
logitech? ( dev-libs/protobuf-c:= )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
modemmanager? ( net-misc/modemmanager[qmi] )
|
||||
policykit? ( >=sys-auth/polkit-0.103 )
|
||||
sqlite? ( dev-db/sqlite )
|
||||
tpm? ( app-crypt/tpm2-tss:= )
|
||||
uefi? (
|
||||
sys-apps/fwupd-efi
|
||||
sys-boot/efibootmgr
|
||||
sys-fs/udisks
|
||||
sys-libs/efivar
|
||||
)
|
||||
"
|
||||
# Block sci-chemistry/chemical-mime-data for bug #701900
|
||||
RDEPEND="
|
||||
!<sci-chemistry/chemical-mime-data-0.1.94-r4
|
||||
${COMMON_DEPEND}
|
||||
sys-apps/dbus
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
x11-libs/pango[introspection]
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
if use nvme ; then
|
||||
kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4"
|
||||
fi
|
||||
}
|
||||
|
||||
post_src_unpack() {
|
||||
if [ ! -d "${S}" ]; then
|
||||
mv {{ github_user }}-{{ github_repo }}* "${S}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# c.f. https://github.com/fwupd/fwupd/issues/1414
|
||||
sed -e "/test('thunderbolt-self-test', e, env: test_env, timeout : 120)/d" \
|
||||
-i plugins/thunderbolt/meson.build || die
|
||||
|
||||
sed -e '/platform-integrity/d' \
|
||||
-i plugins/meson.build || die #753521
|
||||
|
||||
sed -e "/install_dir.*'doc'/s/fwupd/${PF}/" \
|
||||
-i data/builder/meson.build || die
|
||||
|
||||
vala_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local plugins=(
|
||||
-Dplugin_gpio="true"
|
||||
$(meson_use amt plugin_amt)
|
||||
$(meson_use dell plugin_dell)
|
||||
$(meson_use fastboot plugin_fastboot)
|
||||
$(meson_use flashrom plugin_flashrom)
|
||||
$(meson_use gusb plugin_uf2)
|
||||
$(meson_use logitech plugin_logitech_bulkcontroller)
|
||||
$(meson_use modemmanager plugin_modem_manager)
|
||||
$(meson_use nvme plugin_nvme)
|
||||
$(meson_use sqlite)
|
||||
$(meson_use spi plugin_intel_spi)
|
||||
$(meson_use synaptics plugin_synaptics_mst)
|
||||
$(meson_use synaptics plugin_synaptics_rmi)
|
||||
$(meson_use thunderbolt plugin_thunderbolt)
|
||||
$(meson_use tpm plugin_tpm)
|
||||
$(meson_use uefi plugin_uefi_capsule)
|
||||
$(meson_use uefi plugin_uefi_capsule_splash)
|
||||
$(meson_use uefi plugin_uefi_pk)
|
||||
)
|
||||
use ppc64 && plugins+=( -Dplugin_msr="false" )
|
||||
use riscv && plugins+=( -Dplugin_msr="false" )
|
||||
|
||||
local emesonargs=(
|
||||
--localstatedir "${EPREFIX}"/var
|
||||
-Dbuild="$(usex minimal standalone all)"
|
||||
-Dconsolekit="false"
|
||||
-Dsystemd="false"
|
||||
-Dcurl="true"
|
||||
-Ddocs="$(usex gtk-doc gtkdoc none)"
|
||||
-Defi_binary="false"
|
||||
-Dsupported_build="true"
|
||||
$(meson_use archive libarchive)
|
||||
$(meson_use bash-completion bash_completion)
|
||||
$(meson_use bluetooth bluez)
|
||||
$(meson_use elogind)
|
||||
$(meson_use gnutls)
|
||||
$(meson_use gusb)
|
||||
$(meson_use lzma)
|
||||
$(meson_use man)
|
||||
$(meson_use introspection)
|
||||
$(meson_use policykit polkit)
|
||||
$(meson_use test tests)
|
||||
|
||||
${plugins[@]}
|
||||
)
|
||||
use uefi && emesonargs+=( -Defi_os_dir="funtoo" )
|
||||
export CACHE_DIRECTORY="${T}"
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if ! use minimal ; then
|
||||
newinitd "${FILESDIR}"/${PN}-r2 ${PN}
|
||||
|
||||
# Don't timeout when fwupd is running (#673140)
|
||||
sed '/^IdleTimeout=/s@=[[:digit:]]\+@=0@' \
|
||||
-i "${ED}"/etc/${PN}/daemon.conf || die
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user