blob: a631d0408bfeac1973e38be196924ba381ba3fcc [file]
SUMMARY = "gPowerD s4 local agent"
DESCRIPTION = "Provides a gRPC interface for managing system power events"
PR = "r1"
PV = "0.1+git${SRCPV}"
LICENSE = "CLOSED"
inherit meson pkgconfig systemd
DEPENDS += " \
fmt \
grpc \
grpc-native \
zatar \
boost \
nlohmann-json \
gtest \
"
S = "${WORKDIR}/git"
SRC_URI = "git://gbmc.googlesource.com/gPowerD;protocol=https;branch=master"
SRCREV = "ca40ee4b42947853303234a364add6a44f6867a9"
SRC_URI += " \
file://gpowerd.service \
file://43-gbmc-gpowerd.rules \
"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} += "gpowerd.service"
do_install:append() {
install -d ${D}/var/google/
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/gpowerd.service ${D}${systemd_system_unitdir}
install -Dm 0644 ${WORKDIR}/43-gbmc-gpowerd.rules \
${D}${sysconfdir}/nftables/43-gbmc-gpowerd.rules
}