summaryrefslogtreecommitdiff
path: root/recipes-core/systemd/timestamp-service.bb
blob: 676a15384ca12479074de3c754c5b2fd51030ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DESCRIPTION = "Poor mans RTC using timestamps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit allarch systemd

SRC_URI = "file://timestamp.service \
           file://load-timestamp.sh \
          "

S = "${@d.getVar("UNPACKDIR") or '${WORKDIR}'}"

do_install () {
	install -d ${D}/${bindir}

	install -m 0755 ${S}/load-timestamp.sh ${D}/${bindir}

	install -d ${D}/${base_libdir}/systemd/system
	install -m 0644 ${S}/timestamp.service ${D}/${base_libdir}/systemd/system/
}

SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "timestamp.service"