lastlog2: remove recipe since it has been merged into util-linux

The lastlog2 has been merged into util-linux:
60bea9dcee

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Wang Mingyu 2024-08-29 14:20:26 +08:00 committed by Khem Raj
parent 4506ce1031
commit 9f818a0605
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -1,36 +0,0 @@
SUMMARY = "Y2038 safe version of lastlog"
HOMEPAGE = "https://github.com/thkukuk/lastlog2"
DESCRIPTION = "lastlog reports the last login of a given user or of all users who did ever login on a system."
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"
SECTION = "libs"
SRCREV = "8a743b6559e7b8a9b40747866054d3fb5041a498"
SRC_URI = "git://github.com/thkukuk/lastlog2.git;branch=main;protocol=https \
file://0001-remove-lto-to-fix-link-error-of-clang.patch \
"
S = "${WORKDIR}/git"
inherit meson pkgconfig systemd features_check
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
REQUIRED_DISTRO_FEATURES = "pam"
SYSTEMD_SERVICE:${PN} = "lastlog2-import.service"
EXTRA_OEMESON = " -Dpamlibdir=${base_libdir}/security"
do_install:append () {
if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then
# Fix makefile hardcoded path assumptions for systemd (assumes $prefix)
# without usrmerge distro feature enabled
install -d `dirname ${D}${systemd_unitdir}`
mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}`
fi
}
FILES:${PN} += " ${systemd_system_unitdir} "
FILES:${PN} += " ${libdir} "
FILES:${PN} += " ${nonarch_libdir}/tmpfiles.d/* "