blob: 1d9f5a3b1d62c5eba098f1841f27714f4d812f86 [file] [log] [blame]
Marri Devender Rao6fd36202019-03-13 08:26:46 -05001SUMMARY = "Phosphor certificate manager configuration for a bmcweb service"
2
3PR = "r1"
4
5LICENSE = "Apache-2.0"
Brad Bishop6f3f0aa2019-09-13 12:14:05 -04006LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Marri Devender Rao6fd36202019-03-13 08:26:46 -05007
Patrick Williams12fc9392021-08-06 09:16:53 -05008RDEPENDS:${PN} = "phosphor-certificate-manager"
Marri Devender Rao6fd36202019-03-13 08:26:46 -05009
10inherit allarch
11
12SRC_URI = "file://env"
13
Patrick Williams12fc9392021-08-06 09:16:53 -050014FILES:${PN} = "${datadir}"
Zbigniew Kurzynski84017022019-10-10 12:39:21 +020015
Marri Devender Rao6fd36202019-03-13 08:26:46 -050016do_install() {
Zbigniew Kurzynski84017022019-10-10 12:39:21 +020017 install -D ${WORKDIR}/env ${D}/${datadir}/phosphor-certificate-manager/bmcweb
Marri Devender Rao6fd36202019-03-13 08:26:46 -050018}
19
Patrick Williams12fc9392021-08-06 09:16:53 -050020pkg_postinst:${PN}() {
Marri Devender Rao6fd36202019-03-13 08:26:46 -050021 LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@bmcweb.service"
22 TARGET="../phosphor-certificate-manager@.service"
23 mkdir -p $D$systemd_system_unitdir/multi-user.target.wants
24 ln -s $TARGET $LINK
25}
26
Patrick Williams12fc9392021-08-06 09:16:53 -050027pkg_prerm:${PN}() {
Marri Devender Rao6fd36202019-03-13 08:26:46 -050028 LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@bmcweb.service"
29 rm $LINK
30}