From 415028fbdc5845ebe2d64311ac191934a59f37b9 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Thu, 25 Jun 2020 16:58:16 +0200 Subject: [PATCH] Add gnssm-mgr BugzID: 63624 --- recipes-connectivity/gnss-mgr/gnss-mgr.bb | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 recipes-connectivity/gnss-mgr/gnss-mgr.bb diff --git a/recipes-connectivity/gnss-mgr/gnss-mgr.bb b/recipes-connectivity/gnss-mgr/gnss-mgr.bb new file mode 100644 index 0000000..c964f73 --- /dev/null +++ b/recipes-connectivity/gnss-mgr/gnss-mgr.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "NetModule GNSS management tool" +LICENSE = "LGPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3000208d539ec061b899bce1d9ce9404" + +RDEPENDS_${PN} += " \ + python3-setuptools \ + ubxlib \ + python3-systemd \ + " + +DEPENDS = "python3-setuptools-git-version-native" + +inherit setuptools3 +inherit gitpkgv + +inherit systemd +SYSTEMD_SERVICE_${PN} = "gnss-mgr.service" + +inherit allarch + +# Package Version (built from tags) +PKGV = "${GITPKGVTAG}" +# Recipe Version +PV = "1.0-git${SRCPV}" +PR = "r1" + +SRC_URI = "git://gitlab.com/netmodule/tools/gnssmgr.git;protocol=ssh;user=git;branch=master" +SRCREV ?= "${AUTOREV}" +S = "${WORKDIR}/git" + +do_install_append() { + install -d ${D}${sysconfdir}/gnss + install -m 0644 ${S}/config/gnss-neom8.conf ${D}${sysconfdir}/gnss/ + + install -d ${D}/${systemd_unitdir}/system/ + install -m 0644 ${S}/systemd/gnss-mgr.service ${D}/${systemd_unitdir}/system/ +}