blob: 0a53a32024888bf7b6c8fad5e1a45a058593d386 [file] [log] [blame]
Brad Bishop1a4e65e2019-03-21 19:08:15 -04001SUMMARY = "Phosphor certificate manager configuration for a nslcd certificate"
Marri Devender Rao08b55912018-09-03 06:00:39 -05002
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 Rao08b55912018-09-03 06:00:39 -05007
Brad Bishop1a4e65e2019-03-21 19:08:15 -04008RDEPENDS_${PN} = "phosphor-certificate-manager"
Marri Devender Rao08b55912018-09-03 06:00:39 -05009
10inherit allarch
Marri Devender Rao08b55912018-09-03 06:00:39 -050011
Brad Bishop1a4e65e2019-03-21 19:08:15 -040012SRC_URI = "file://env"
13
14do_install() {
15 install -D ${WORKDIR}/env ${D}/${sysconfdir}/default/obmc/cert/nslcd
16}
17
18pkg_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
25pkg_prerm_${PN}() {
26 LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@nslcd.service"
27 rm $LINK
28}