summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Timo Gurr <tgurr@exherbo.org> 2017-05-29 14:51:50 +0200
committerAvatar Timo Gurr <tgurr@exherbo.org> 2017-05-29 16:36:18 +0200
commitc17e0ee179f7ea34c02952338ac50712e1844c50 (patch)
tree4fde2c7e846829f137b20396541d18d2b6a46aca
parent736b8d1de365be0566c8bb283b8ea8ded0219072 (diff)
downloadhardware-c17e0ee179f7ea34c02952338ac50712e1844c50.tar.gz
hardware-c17e0ee179f7ea34c02952338ac50712e1844c50.tar.xz
fwupd: initial exheres
Change-Id: Ie686e2b6278ef0cfc9e8254a4eecccd485f4c238 Reviewed-on: https://galileo.mailstation.de/gerrit/9152 Reviewed-by: Timo Gurr <tgurr@exherbo.org>
-rw-r--r--packages/sys-apps/fwupd/files/fwupd-0.9.2-build.patch58
-rw-r--r--packages/sys-apps/fwupd/fwupd-0.9.2.exheres-081
2 files changed, 139 insertions, 0 deletions
diff --git a/packages/sys-apps/fwupd/files/fwupd-0.9.2-build.patch b/packages/sys-apps/fwupd/files/fwupd-0.9.2-build.patch
new file mode 100644
index 0000000..79466c4
--- /dev/null
+++ b/packages/sys-apps/fwupd/files/fwupd-0.9.2-build.patch
@@ -0,0 +1,58 @@
+Source: Timo Gurr <tgurr@exherbo.org>
+Upstream: TODO
+Reason: Install to prefix
+
+From 850f733093e6c8e08fb73f2227acea228c3bf699 Mon Sep 17 00:00:00 2001
+From: Timo Gurr <timo.gurr@gmail.com>
+Date: Mon, 29 May 2017 15:13:43 +0200
+Subject: [PATCH] Allow to specify bindir
+
+---
+ libdfu/meson.build | 2 +-
+ meson.build | 3 +++
+ src/meson.build | 2 +-
+ 3 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/libdfu/meson.build b/libdfu/meson.build
+index 75ee523..dc318d8 100644
+--- a/libdfu/meson.build
++++ b/libdfu/meson.build
+@@ -86,7 +86,7 @@ executable(
+ link_with : dfu,
+ c_args : cargs,
+ install : true,
+- install_dir : 'bin'
++ install_dir : get_option('bindir')
+ )
+
+ gnome.generate_gir(dfu,
+diff --git a/meson.build b/meson.build
+index 1751256..69732bd 100644
+--- a/meson.build
++++ b/meson.build
+@@ -171,6 +171,9 @@ plugin_dir = join_paths(get_option('prefix'),
+ conf.set_quoted('PLUGINDIR', plugin_dir)
+
+ conf.set_quoted('SYSCONFDIR', get_option('sysconfdir'))
++conf.set_quoted('BINDIR',
++ join_paths(get_option('prefix'),
++ get_option('bindir')))
+ conf.set_quoted('LIBEXECDIR',
+ join_paths(get_option('prefix'),
+ get_option('libexecdir')))
+diff --git a/src/meson.build b/src/meson.build
+index e5af674..8673b47 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -31,7 +31,7 @@ executable(
+ '-DFU_OFFLINE_DESTDIR=""',
+ ],
+ install : true,
+- install_dir : 'bin'
++ install_dir : get_option('bindir')
+ )
+
+ resources_src = gnome.compile_resources(
+--
+2.13.0
+
diff --git a/packages/sys-apps/fwupd/fwupd-0.9.2.exheres-0 b/packages/sys-apps/fwupd/fwupd-0.9.2.exheres-0
new file mode 100644
index 0000000..057031e
--- /dev/null
+++ b/packages/sys-apps/fwupd/fwupd-0.9.2.exheres-0
@@ -0,0 +1,81 @@
+# Copyright 2017 Timo Gurr <tgurr@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require github [ user=hughsie ] meson
+
+SUMMARY="A simple daemon to allow session software to update firmware"
+HOMEPAGE+=" http://www.fwupd.org"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="
+ colorhug [[ description = [ Support for flashing firmware on the colorhug devices ] ]]
+ efi [[ description = [ Support for flashing firmware via UEFI ] ]]
+ dell [[
+ description = [ Support for flashing formware on DELL machines ]
+ requires = [ efi ]
+ ]]
+"
+
+# 2/6 fwupd-self-test: FAIL, last checked: 0.9.2
+RESTRICT="test"
+
+DEPENDENCIES="
+ build:
+ dev-doc/gtk-doc
+ virtual/pkg-config
+ build+run:
+ app-arch/gcab
+ app-arch/libarchive
+ app-crypt/gpgme
+ dev-db/sqlite:3
+ dev-libs/appstream-glib[>=0.6.13-r1][gobject-introspection]
+ dev-libs/glib:2[>=2.45.8]
+ dev-libs/libgpg-error
+ dev-libs/libgusb[>=0.2.9]
+ dev-util/elfutils
+ gnome-desktop/gobject-introspection:1
+ gnome-desktop/libgudev
+ gnome-desktop/libsoup:2.4[>=2.51.92]
+ sys-apps/systemd[>=231]
+ sys-auth/polkit:1[>=0.113-r2] [[ note = [ itstools support ] ]]
+ colorhug? ( sys-apps/colord[>=1.2.12] )
+ efi? ( sys-apps/fwupdate[>=0.5] )
+ dell? (
+ sys-apps/libsmbios[>=2.3.0]
+ sys-boot/efivar
+ )
+"
+
+DEFAULT_SRC_PREPARE_PATCHES=(
+ "${FILES}"/${PN}-0.9.2-build.patch
+)
+
+MESON_SRC_CONFIGURE_PARAMS=(
+ --localstatedir=/var
+ -Denable-libelf=true
+ -Denable-tests=false
+ -Denable-thunderbolt=false
+ -Dwith-bootdir=/boot/efi
+)
+MESON_SRC_CONFIGURE_OPTION_ENABLES=(
+ colorhug
+ 'efi uefi'
+ dell
+)
+
+src_test() {
+ esandbox allow_net --connect 'unix:/run/dbus/system_bus_socket'
+
+ meson_src_test
+
+ esandbox disallow_net --connect 'unix:/run/dbus/system_bus_socket'
+}
+
+src_install() {
+ meson_src_install
+
+ keepdir /var/lib/fwupd
+}
+