aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/swupd-client/swupd-client_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/swupd-client/swupd-client_git.bb')
-rw-r--r--recipes-core/swupd-client/swupd-client_git.bb42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-core/swupd-client/swupd-client_git.bb b/recipes-core/swupd-client/swupd-client_git.bb
new file mode 100644
index 0000000..1553593
--- /dev/null
+++ b/recipes-core/swupd-client/swupd-client_git.bb
@@ -0,0 +1,42 @@
+SUMMARY = "swupd sofware update from Clear Linux - client component"
+HOMEPAGE = "https://github.com/clearlinux/swupd-client"
+LICENSE = "GPL-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f8d90fb802930e30e49c39c8126a959e"
+
+DEPENDS = "glib-2.0 curl zlib bzip2 xz openssl bsdiff"
+
+PV = "3.3.0+git${SRCPV}"
+SRC_URI = "\
+ git://github.com/clearlinux/swupd-client.git;protocol=https \
+ file://Change-systemctl-path-to-OE-systemctl-path.patch \
+"
+SRCREV = "e4b2a32448d9fd9ab494f861f1bb143468659c75"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS_${PN} = "gzip bzip2 tar xz"
+RDEPENDS_${PN}_class-target = "oe-swupd-helpers"
+# We check /etc/os-release for the current OS version number
+RRECOMMENDS_${PN}_class-target = "os-release"
+
+inherit pkgconfig autotools systemd
+
+EXTRA_OECONF = "\
+ --with-systemdsystemunitdir=${systemd_system_unitdir} \
+"
+
+do_install_append () {
+ # TODO: This should be a less os-specific directory and not hard-code datadir
+ install -d ${D}${datadir}/${DISTRO}/bundles
+}
+
+FILES_${PN} += "\
+ /usr/share \
+ ${systemd_system_unitdir}/multi-user.target.wants* \
+ /var/lib/swupd \
+"
+
+SYSTEMD_SERVICE_${PN} = "check-update.timer check-update.service"
+SYSTEMD_AUTO_ENABLE_${PN} = "disable"
+
+BBCLASSEXTEND = "native"