blob: d815e1d7b2577f0770e919e02376c95f638b8cc0 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001SUMMARY = "Linux encrypted filesystem management tool"
2HOMEPAGE = "http://cryptmount.sourceforge.net/"
Andrew Geissler2daf84b2023-03-31 09:57:23 -05003LIC_FILES_CHKSUM = "file://COPYING;beginline=1;endline=4;md5=6e69c425bf32ecf9b1e11d29d146d03d"
Patrick Williams92b42cb2022-09-03 06:53:57 -05004LICENSE = "GPL-2.0-only"
Andrew Geissler2daf84b2023-03-31 09:57:23 -05005SRC_URI = "https://sourceforge.net/projects/cryptmount/files/${BPN}/${BPN}-6.2/${BPN}-${PV}.tar.gz"
Patrick Williams92b42cb2022-09-03 06:53:57 -05006
Andrew Geissler2daf84b2023-03-31 09:57:23 -05007SRC_URI[sha256sum] = "90cc49fd598d636929c70479b1305f12b011edadf4a54578ace6c0fca8cb5ed2"
Patrick Williams92b42cb2022-09-03 06:53:57 -05008
9inherit autotools-brokensep gettext pkgconfig systemd
10
11EXTRA_OECONF = " --enable-cswap --enable-fsck --enable-argv0switch"
12
13PACKAGECONFIG ?="intl luks gcrypt nls"
14PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
15
16PACKAGECONFIG[systemd] = "--with-systemd, --without-systemd, systemd"
17PACKAGECONFIG[intl] = "--with-libintl-prefix, --without-libintl-prefix"
18PACKAGECONFIG[gcrypt] = "--with-libgcrypt, --without-libgcrypt, libgcrypt"
19PACKAGECONFIG[luks] = "--enable-luks, --disable-luks, cryptsetup"
20PACKAGECONFIG[nls] = "--enable-nls, --disable-nls, "
21
Andrew Geissler87f5cff2022-09-30 13:13:31 -050022SYSTEMD_PACKAGES = "${PN}"
Patrick Williams92b42cb2022-09-03 06:53:57 -050023SYSTEMD_SERVICE:${PN} = "cryptmount.service"
24
Andrew Geissler87f5cff2022-09-30 13:13:31 -050025do_install:append () {
26 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
27 install -D -m 0644 ${S}/sysinit/cryptmount.service ${D}${systemd_system_unitdir}/cryptmount.service
28 rm -fr ${D}/usr/lib
29 fi
30}
31
32FILES:${PN} += "${systemd_system_unitdir}"
33
Patrick Williams92b42cb2022-09-03 06:53:57 -050034RDEPENDS:${PN} = "libdevmapper"