fwupd: initial commit, version 1.9.14

This commit is contained in:
Tim Biermann 2024-03-02 20:37:37 +01:00
parent 8b560b7a07
commit 8e0fd511f7
Signed by: tb
GPG Key ID: 42F8B4E30B673606
5 changed files with 213 additions and 0 deletions

104
fwupd/.footprint Normal file
View File

@ -0,0 +1,104 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/fwupd/
drwxr-xr-x root/root etc/fwupd/bios-settings.d/
-rw-r--r-- root/root etc/fwupd/bios-settings.d/README.md
-rw-r----- root/root etc/fwupd/fwupd.conf
drwxr-xr-x root/root etc/fwupd/remotes.d/
-rw-r--r-- root/root etc/fwupd/remotes.d/lvfs-testing.conf
-rw-r--r-- root/root etc/fwupd/remotes.d/lvfs.conf
-rw-r--r-- root/root etc/fwupd/remotes.d/vendor-directory.conf
drwxr-xr-x root/root etc/pki/
drwxr-xr-x root/root etc/pki/fwupd-metadata/
-rw-r--r-- root/root etc/pki/fwupd-metadata/GPG-KEY-Linux-Foundation-Metadata
-rw-r--r-- root/root etc/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service
-rw-r--r-- root/root etc/pki/fwupd-metadata/LVFS-CA.pem
drwxr-xr-x root/root etc/pki/fwupd/
-rw-r--r-- root/root etc/pki/fwupd/GPG-KEY-Linux-Foundation-Firmware
-rw-r--r-- root/root etc/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service
-rw-r--r-- root/root etc/pki/fwupd/LVFS-CA.pem
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/fwupd
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/udev/
drwxr-xr-x root/root lib/udev/rules.d/
-rw-r--r-- root/root lib/udev/rules.d/90-fwupd-devices.rules
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/fwupd-dbxtool
-rwxr-xr-x root/root usr/bin/fwupdmgr
-rwxr-xr-x root/root usr/bin/fwupdtool
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/fwupd-1/
-rw-r--r-- root/root usr/include/fwupd-1/fwupd.h
drwxr-xr-x root/root usr/include/fwupd-1/libfwupd/
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-bios-setting.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-build.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-client-sync.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-client.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-common.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-device.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-enums.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-error.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-plugin.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-release.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-remote.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-report.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-request.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-security-attr.h
-rw-r--r-- root/root usr/include/fwupd-1/libfwupd/fwupd-version.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/fwupd-1.9.14/
-rwxr-xr-x root/root usr/lib/fwupd-1.9.14/libfwupdengine.so
-rwxr-xr-x root/root usr/lib/fwupd-1.9.14/libfwupdplugin.so
-rwxr-xr-x root/root usr/lib/fwupd-1.9.14/libfwupdutil.so
drwxr-xr-x root/root usr/lib/fwupd/
-rwxr-xr-x root/root usr/lib/fwupd/fwupd
-rwxr-xr-x root/root usr/lib/fwupd/fwupd-detect-cet
drwxr-xr-x root/root usr/lib/girepository-1.0/
-rw-r--r-- root/root usr/lib/girepository-1.0/Fwupd-2.0.typelib
lrwxrwxrwx root/root usr/lib/libfwupd.so -> libfwupd.so.2
lrwxrwxrwx root/root usr/lib/libfwupd.so.2 -> libfwupd.so.2.0.0
-rwxr-xr-x root/root usr/lib/libfwupd.so.2.0.0
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/fwupd.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/dbus-1/
drwxr-xr-x root/root usr/share/dbus-1/interfaces/
-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.fwupd.xml
drwxr-xr-x root/root usr/share/dbus-1/system.d/
-rw-r--r-- root/root usr/share/dbus-1/system.d/org.freedesktop.fwupd.conf
drwxr-xr-x root/root usr/share/fwupd/
-rwxr-xr-x root/root usr/share/fwupd/add_capsule_header.py
-rwxr-xr-x root/root usr/share/fwupd/firmware_packager.py
-rwxr-xr-x root/root usr/share/fwupd/install_dell_bios_exe.py
drwxr-xr-x root/root usr/share/fwupd/metainfo/
-rw-r--r-- root/root usr/share/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs-testing.metainfo.xml
-rw-r--r-- root/root usr/share/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml
drwxr-xr-x root/root usr/share/fwupd/quirks.d/
-rw-r--r-- root/root usr/share/fwupd/quirks.d/builtin.quirk.gz
drwxr-xr-x root/root usr/share/fwupd/remotes.d/
drwxr-xr-x root/root usr/share/fwupd/remotes.d/vendor/
drwxr-xr-x root/root usr/share/fwupd/remotes.d/vendor/firmware/
-rw-r--r-- root/root usr/share/fwupd/remotes.d/vendor/firmware/README.md
-rwxr-xr-x root/root usr/share/fwupd/simple_client.py
drwxr-xr-x root/root usr/share/gir-1.0/
-rw-r--r-- root/root usr/share/gir-1.0/Fwupd-2.0.gir
drwxr-xr-x root/root usr/share/icons/
drwxr-xr-x root/root usr/share/icons/hicolor/
drwxr-xr-x root/root usr/share/icons/hicolor/scalable/
drwxr-xr-x root/root usr/share/icons/hicolor/scalable/apps/
-rw-r--r-- root/root usr/share/icons/hicolor/scalable/apps/org.freedesktop.fwupd.svg
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/dbxtool.1.gz
-rw-r--r-- root/root usr/share/man/man1/fwupdmgr.1.gz
-rw-r--r-- root/root usr/share/man/man1/fwupdtool.1.gz
drwxr-xr-x root/root usr/share/man/man5/
-rw-r--r-- root/root usr/share/man/man5/fwupd-remotes.d.5.gz
-rw-r--r-- root/root usr/share/man/man5/fwupd.conf.5.gz
drwxr-xr-x root/root usr/share/metainfo/
-rw-r--r-- root/root usr/share/metainfo/org.freedesktop.fwupd.metainfo.xml
drwxr-xr-x root/root usr/share/vala/
drwxr-xr-x root/root usr/share/vala/vapi/
-rw-r--r-- root/root usr/share/vala/vapi/fwupd.deps
-rw-r--r-- root/root usr/share/vala/vapi/fwupd.vapi

6
fwupd/.signature Normal file
View File

@ -0,0 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF37PmvNlipOCYenUq4vj22o/3VQyUGOFe7vMNvxBIONk26z2AphCIBG4uMGYRB8AXUJN7ZfvDzqQ2Vnz8RI2VwQQ=
SHA256 (Pkgfile) = bdce6e22ad4af9ec00b544b0a79252807911d5985db51340f1862cb8c70b5102
SHA256 (.footprint) = 191f3a9fb9e7bef6fb243559cac939a8de3b7df8649b9602776a09c05380eddd
SHA256 (fwupd-1.9.14.tar.xz) = b16cbb9480c9a957735d15cfc1e876198b3c607b08e92958f9fc098e31613279
SHA256 (fwupd.service) = 1a67740971d3d0b4e5a5afe69b236b491c62a8e53cdcef198e34c5cbf6208e5e

63
fwupd/Pkgfile Normal file
View File

@ -0,0 +1,63 @@
# Description: system daemon to allow session software to update firmware
# URL: https://github.com/fwupd/fwupd
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gcab libjcat libqmi libsmbios libxmlb python3-gobject python3-jinja2 python3-pillow vala
# Optional: bash-completion bluez consolekit efivar flashrom fwupd-efi libcbor libdrm libgusb modemmanager pandoc-bin polkit protobuf-c python3-markdown tpm2-tss udisks2 valgrind
name=fwupd
version=1.9.14
release=1
source=(https://github.com/fwupd/fwupd/releases/download/$version/fwupd-$version.tar.xz
fwupd.service)
build() {
prt-get isinst bash-completion || PKGMK_FWUPD+=' -D bash_completion=false'
prt-get isinst bluez || PKGMK_FWUPD+=' -D bluez=disabled'
prt-get isinst consolekit && PKGMK_FWUPD+=' -D consolekit=enabled' || PKGMK_FWUPD+=' -D consolekit=disabled'
prt-get isinst flashrom || PKGMK_FWUPD+=' -D plugin_flashrom=disabled'
prt-get isinst fwupd-efi && PKGMK_FWUPD+=' -D plugin_uefi_capsule=enabled' || PKGMK_FWUPD+=' -D plugin_uefi_capsule=disabled'
prt-get isinst libcbor || PKGMK_FWUPD+=' -D cbor=disabled'
prt-get isinst libdrm && PKGMK_FWUPD+=' -D plugin_amdgpu=enabled'
prt-get isinst libgusb || PKGMK_FWUPD+=' -D gusb=disabled'
prt-get isinst modemmanager && PKGMK_FWUPD+=' -D plugin_modem_manager=disabled'
prt-get isinst pandoc-bin && PKGMK_FWUPD+=' -D man=true'
prt-get isinst polkit && PKGMK_FWUPD+=' -D polkit=enabled' || PKGMK_FWUPD+=' -D polkit=disabled'
prt-get isinst protobuf-c || PKGMK_FWUPD+=' -D plugin_logitech_bulkcontroller=disabled'
prt-get isinst python3-markdown || PKGMK_FWUPD+=' -D docs=disabled'
prt-get isinst tpm2-tss || PKGMK_FWUPD+=' -D plugin_tpm=disabled'
prt-get isinst upower || PKGMK_FWUPD+=' -D plugin_upower=disabled'
meson setup $name-$version build $PKGMK_FWUPD \
--prefix=/usr \
--libexecdir=/usr/lib \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D hsi=enabled \
-D lvfs=true \
-D plugin_intel_spi=true \
-D supported_build=enabled \
-D udevdir=/lib/udev \
-D efi_os_dir=CRUX \
-D efi_binary=false \
-D launchd=disabled \
-D systemd=disabled \
-D elogind=disabled \
-D passim=disabled \
-D tests=false \
-D fish_completion=false
#-D dbus_socket_address=/run/dbus/system_bus_socket \
meson compile -C build
DESTDIR=$PKG meson install -C build
mv $PKG/usr/bin/{,fwupd-}dbxtool
prt-get isinst bash-completion || rm -rf $PKG/usr/share/bash-completion
rm -rf $PKG/usr/share/locale
prt-get isinst polkit && chown -R root:polkitd $PKG/usr/share/polkit-1/rules.d
install -Dm755 $SRC/fwupd.service $PKG/etc/rc.d/fwupd
}

35
fwupd/fwupd.service Normal file
View File

@ -0,0 +1,35 @@
#
# /etc/rc.d/fwupd: start/stop Firmware Update D-Bus Service
#
SSD=/sbin/start-stop-daemon
PROG=/usr/lib/fwupd/fwupd
OPTS=""
PID=/run/fwupd.pid
case $1 in
start)
$SSD --start --background --make-pidfile --pidfile $PID --exec $PROG -- $OPTS
;;
stop)
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID --exec $PROG
;;
restart)
$0 stop
$0 start
;;
status)
$SSD --status --pidfile $PID --exec $PROG
e=$?
case $e in
0) echo "$PROG is running with pid $(cat $PID)" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;
3) echo "$PROG is not running" ;;
4) echo "Unable to determine the program status" ;;
esac
exit $e
;;
*)
echo "usage: $0 [start|stop|restart|status]"
;;
esac

5
fwupd/pre-install Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
getent group fwupd || /usr/sbin/groupadd fwupd
getent passwd fwupd || /usr/sbin/useradd -M -g fwupd -c "fwupd system user" fwupd
/usr/bin/passwd -l fwupd