| SUMMARY = "Install Redfish PrivilegeRegistries and default authorization configurations" |
| PR = "r1" |
| LICENSE = "CLOSED" |
| |
| inherit systemd |
| |
| S = "${WORKDIR}" |
| |
| DEPENDS:gbmc:append = " systemd" |
| RDEPENDS:${PN}:gbmc:append = " bash" |
| RDEPENDS:${PN}:gbmc:append = " grpc-redfish" |
| |
| # Default authorization policy install |
| |
| SRC_URI:append:gbmc = " \ |
| file://default_authz_install.sh \ |
| file://default_authz_install.service \ |
| " |
| |
| SYSTEMD_PACKAGES:gbmc = "${PN}" |
| SYSTEMD_SERVICE:${PN}:gbmc = "default_authz_install.service" |
| |
| FILES:${PN}:append:gbmc = " ${bindir}/default_authz_install.sh" |
| |
| do_install:append:gbmc() { |
| install -d ${D}${bindir} |
| install -m 0755 ${S}/default_authz_install.sh ${D}${bindir}/ |
| |
| install -d ${D}${systemd_system_unitdir} |
| install -m 0644 ${S}/default_authz_install.service ${D}${systemd_system_unitdir} |
| } |