Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [oe] [meta-oe] [PATCH] lastlog2: add new recipe
@ 2023-07-14  1:00 wangmy
  2023-07-14  1:00 ` [oe] [meta-oe] [PATCH] libyang: Fix install conflict when enable multilib wangmy
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: wangmy @ 2023-07-14  1:00 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Wang Mingyu

From: Wang Mingyu <wangmy@fujitsu.com>

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../lastlog2/lastlog2_1.1.0.bb                | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb

diff --git a/meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb b/meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb
new file mode 100644
index 0000000000..cc60a46899
--- /dev/null
+++ b/meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb
@@ -0,0 +1,30 @@
+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 = "585153a577788c590370d20e40263b61238dfab3"
+
+SRC_URI = "git://github.com/thkukuk/lastlog2.git;branch=main;protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
+
+SYSTEMD_SERVICE:${PN} = "lastlog2-import.service"
+
+EXTRA_OEMESON = " -Dpamlibdir=${libdir}"
+
+do_install:append () {
+      # 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}`
+}
+
+FILES:${PN} += " ${systemd_system_unitdir} "
+FILES:${PN} += " ${libdir} "
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-18 15:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-14  1:00 [oe] [meta-oe] [PATCH] lastlog2: add new recipe wangmy
2023-07-14  1:00 ` [oe] [meta-oe] [PATCH] libyang: Fix install conflict when enable multilib wangmy
2023-07-14  1:00 ` [oe] [meta-oe] [PATCH] wtmpdb: add new recipe wangmy
2023-07-14 22:04   ` Khem Raj
2023-07-18  8:37     ` Mingyu Wang (Fujitsu)
2023-07-18 15:29       ` Khem Raj
2023-07-14 22:02 ` [oe] [meta-oe] [PATCH] lastlog2: " Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox