Brad Bishop | 1a4e65e | 2019-03-21 19:08:15 -0400 | [diff] [blame] | 1 | SUMMARY = "Phosphor certificate manager configuration for a nslcd certificate" |
Marri Devender Rao | 08b5591 | 2018-09-03 06:00:39 -0500 | [diff] [blame] | 2 | |
| 3 | PR = "r1" |
| 4 | |
| 5 | LICENSE = "Apache-2.0" |
Brad Bishop | a1cee09 | 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 | 08b5591 | 2018-09-03 06:00:39 -0500 | [diff] [blame] | 7 | |
Brad Bishop | 1a4e65e | 2019-03-21 19:08:15 -0400 | [diff] [blame] | 8 | RDEPENDS_${PN} = "phosphor-certificate-manager" |
Marri Devender Rao | 08b5591 | 2018-09-03 06:00:39 -0500 | [diff] [blame] | 9 | |
| 10 | inherit allarch |
Marri Devender Rao | 08b5591 | 2018-09-03 06:00:39 -0500 | [diff] [blame] | 11 | |
Brad Bishop | 1a4e65e | 2019-03-21 19:08:15 -0400 | [diff] [blame] | 12 | SRC_URI = "file://env" |
| 13 | |
| 14 | do_install() { |
| 15 | install -D ${WORKDIR}/env ${D}/${sysconfdir}/default/obmc/cert/nslcd |
| 16 | } |
| 17 | |
| 18 | pkg_postinst_${PN}() { |
| 19 | LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@nslcd.service" |
| 20 | TARGET="../phosphor-certificate-manager@.service" |
| 21 | mkdir -p $D$systemd_system_unitdir/multi-user.target.wants |
| 22 | ln -s $TARGET $LINK |
| 23 | } |
| 24 | |
| 25 | pkg_prerm_${PN}() { |
| 26 | LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@nslcd.service" |
| 27 | rm $LINK |
| 28 | } |