diff options
author | Armin Kuster <akuster808@gmail.com> | 2022-09-02 19:39:37 -0400 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-09-12 11:11:50 -0400 |
commit | ee8a51c582c6ab54f4e9e9b8c2d8cf8c54a7dd3c (patch) | |
tree | 60ebff510b187217f3bcb504e9e79a8180bed292 | |
parent | b59691b3d9786d3823e50cb55a9ec6fe1a02f7b6 (diff) | |
download | meta-security-ee8a51c582c6ab54f4e9e9b8c2d8cf8c54a7dd3c.tar.gz |
cryptmount: fix systemd service install
Default is to install the service in /usr/lib
Signed-off-by: Armin Kuster <akuster808@gmail.com>
--
[V2]
Fix typo in subject
-rw-r--r-- | recipes-security/cryptmount/cryptmount_5.3.3.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-security/cryptmount/cryptmount_5.3.3.bb b/recipes-security/cryptmount/cryptmount_5.3.3.bb index fb522cb..6741a5f 100644 --- a/recipes-security/cryptmount/cryptmount_5.3.3.bb +++ b/recipes-security/cryptmount/cryptmount_5.3.3.bb | |||
@@ -22,6 +22,16 @@ PACKAGECONFIG[gcrypt] = "--with-libgcrypt, --without-libgcrypt, libgcrypt" | |||
22 | PACKAGECONFIG[luks] = "--enable-luks, --disable-luks, cryptsetup" | 22 | PACKAGECONFIG[luks] = "--enable-luks, --disable-luks, cryptsetup" |
23 | PACKAGECONFIG[nls] = "--enable-nls, --disable-nls, " | 23 | PACKAGECONFIG[nls] = "--enable-nls, --disable-nls, " |
24 | 24 | ||
25 | SYSTEMD_PACKAGES = "${PN}" | ||
25 | SYSTEMD_SERVICE:${PN} = "cryptmount.service" | 26 | SYSTEMD_SERVICE:${PN} = "cryptmount.service" |
26 | 27 | ||
28 | do_install:append () { | ||
29 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
30 | install -D -m 0644 ${S}/sysinit/cryptmount.service ${D}${systemd_system_unitdir}/cryptmount.service | ||
31 | rm -fr ${D}/usr/lib | ||
32 | fi | ||
33 | } | ||
34 | |||
35 | FILES:${PN} += "${systemd_system_unitdir}" | ||
36 | |||
27 | RDEPENDS:${PN} = "libdevmapper" | 37 | RDEPENDS:${PN} = "libdevmapper" |