blob: 7b1e264120a39e1c7f8bd99c015aa99a73b6830c [file] [log] [blame]
Brad Bishop4eceffc2019-03-21 19:08:15 -04001SUMMARY = "Phosphor certificate manager configuration for a nslcd certificate"
Marri Devender Raoc8267c32018-09-03 06:00:39 -05002
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 Raoc8267c32018-09-03 06:00:39 -05007
Patrick Williams12fc9392021-08-06 09:16:53 -05008RDEPENDS:${PN} = "phosphor-certificate-manager"
Marri Devender Raoc8267c32018-09-03 06:00:39 -05009
10inherit allarch
Marri Devender Raoc8267c32018-09-03 06:00:39 -050011
Brad Bishop4eceffc2019-03-21 19:08:15 -040012SRC_URI = "file://env"
13
Patrick Williams12fc9392021-08-06 09:16:53 -050014FILES:${PN} = "${datadir}"
Zbigniew Kurzynski84017022019-10-10 12:39:21 +020015
Brad Bishop4eceffc2019-03-21 19:08:15 -040016do_install() {
Zbigniew Kurzynski84017022019-10-10 12:39:21 +020017 install -D ${WORKDIR}/env ${D}/${datadir}/phosphor-certificate-manager/nslcd
Brad Bishop4eceffc2019-03-21 19:08:15 -040018}
19
Patrick Williams12fc9392021-08-06 09:16:53 -050020pkg_postinst:${PN}() {
Brad Bishop4eceffc2019-03-21 19:08:15 -040021 LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@nslcd.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}() {
Brad Bishop4eceffc2019-03-21 19:08:15 -040028 LINK="$D$systemd_system_unitdir/multi-user.target.wants/phosphor-certificate-manager@nslcd.service"
29 rm $LINK
30}