Marri Devender Rao | 6fd3620 | 2019-03-13 08:26:46 -0500 | [diff] [blame] | 1 | SUMMARY = "Phosphor certificate manager configuration for a bmcweb service" |
| 2 | |
| 3 | PR = "r1" |
| 4 | |
| 5 | LICENSE = "Apache-2.0" |
Brad Bishop | 6f3f0aa | 2019-09-13 12:14:05 -0400 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Marri Devender Rao | 6fd3620 | 2019-03-13 08:26:46 -0500 | [diff] [blame] | 7 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame^] | 8 | RDEPENDS:${PN} = "phosphor-certificate-manager" |
Marri Devender Rao | 6fd3620 | 2019-03-13 08:26:46 -0500 | [diff] [blame] | 9 | |
| 10 | inherit allarch |
| 11 | |
| 12 | SRC_URI = "file://env" |
| 13 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame^] | 14 | FILES:${PN} = "${datadir}" |
Zbigniew Kurzynski | 8401702 | 2019-10-10 12:39:21 +0200 | [diff] [blame] | 15 | |
Marri Devender Rao | 6fd3620 | 2019-03-13 08:26:46 -0500 | [diff] [blame] | 16 | do_install() { |
Zbigniew Kurzynski | 8401702 | 2019-10-10 12:39:21 +0200 | [diff] [blame] | 17 | install -D ${WORKDIR}/env ${D}/${datadir}/phosphor-certificate-manager/bmcweb |
Marri Devender Rao | 6fd3620 | 2019-03-13 08:26:46 -0500 | [diff] [blame] | 18 | } |
| 19 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame^] | 20 | pkg_postinst:${PN}() { |
Marri Devender Rao | 6fd3620 | 2019-03-13 08:26:46 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame^] | 27 | pkg_prerm:${PN}() { |
Marri Devender Rao | 6fd3620 | 2019-03-13 08:26:46 -0500 | [diff] [blame] | 28 | LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@bmcweb.service" |
| 29 | rm $LINK |
| 30 | } |