blob: 9fa5f3a0f22557403ae53634534a2e86ccfe5e7e [file] [log] [blame]
Marri Devender Raob0e77ac2019-03-13 08:26:46 -05001SUMMARY = "Phosphor certificate manager configuration for a bmcweb service"
2
3PR = "r1"
4
5LICENSE = "Apache-2.0"
Brad Bishopa1cee092019-09-13 12:14:05 -04006LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Marri Devender Raob0e77ac2019-03-13 08:26:46 -05007
8RDEPENDS_${PN} = "phosphor-certificate-manager"
9
10inherit allarch
11
12SRC_URI = "file://env"
13
Zbigniew Kurzynski0c09ff72019-10-10 12:39:21 +020014FILES_${PN} = "${datadir}"
15
Marri Devender Raob0e77ac2019-03-13 08:26:46 -050016do_install() {
Zbigniew Kurzynski0c09ff72019-10-10 12:39:21 +020017 install -D ${WORKDIR}/env ${D}/${datadir}/phosphor-certificate-manager/bmcweb
Marri Devender Raob0e77ac2019-03-13 08:26:46 -050018}
19
20pkg_postinst_${PN}() {
21 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
27pkg_prerm_${PN}() {
28 LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@bmcweb.service"
29 rm $LINK
30}