Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | SUMMARY = "Y2038 safe version of wtmp" |
| 2 | HOMEPAGE = "https://github.com/thkukuk/wtmpdb" |
| 3 | DESCRIPTION = "last reports the login and logout times of users and when the machine got rebooted." |
| 4 | LICENSE = "BSD-2-Clause" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c" |
| 6 | SECTION = "libs" |
| 7 | |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 8 | SRCREV = "493e9704dbc50f141d5fbd41c823311e79d7e8d3" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 9 | |
| 10 | SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https \ |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 11 | file://0001-include-libgen.h-for-basename.patch" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | inherit meson pkgconfig systemd features_check |
| 16 | |
| 17 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 " |
| 18 | REQUIRED_DISTRO_FEATURES = "pam" |
| 19 | |
| 20 | SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service" |
| 21 | |
| 22 | EXTRA_OEMESON = " -Dpamlibdir=${libdir}" |
| 23 | |
| 24 | do_install:append () { |
| 25 | if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then |
| 26 | # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) |
| 27 | # without usrmerge distro feature enabled |
| 28 | install -d `dirname ${D}${systemd_unitdir}` |
| 29 | mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}` |
| 30 | fi |
| 31 | } |
| 32 | |
| 33 | FILES:${PN} += " ${systemd_system_unitdir} " |
| 34 | FILES:${PN} += " ${libdir} " |
| 35 | FILES:${PN} += " ${nonarch_libdir}/tmpfiles.d/* " |