blob: 0d2cd135c6f79d972dd6242bc16e9cb6457c8b27 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "A privileged helper for utmp/wtmp updates"
2DESCRIPTION = "\
3This library provides interface for terminal emulators such as \
4screen and xterm to record user sessions to utmp and wtmp files."
5HOMEPAGE = "ftp://ftp.altlinux.org/pub/people/ldv/utempter"
6SECTION = "System Environment/Libraries"
Andrew Geissler9aee5002022-03-30 16:27:02 +00007LICENSE = "GPL-2.0-only & GPL-2.0-or-later & LGPL-2.0-only & MIT"
Andrew Geissler87f5cff2022-09-30 13:13:31 -05008LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009
Andrew Geissler87f5cff2022-09-30 13:13:31 -050010SRCREV = "63825e2244629d44dae21132b1065d7ecc0491c0"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRC_URI = "git://git.altlinux.org/people/ldv/packages/libutempter.git;branch=master \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013 file://0001-Fix-macro-error.patch \
Brad Bishop19323692019-04-05 15:28:33 -040014 file://0002-Proper-macro-path-generation.patch \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050015 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016
17S = "${WORKDIR}/git/${BPN}"
18
19CFLAGS += "-DLIBEXECDIR=${libexecdir}"
20
21do_compile() {
22 oe_runmake \
23 libdir=${libdir} \
24 libexecdir=${libexecdir}
25}
26
27do_install() {
28 oe_runmake install \
29 DESTDIR=${D} \
30 libdir="${libdir}" \
31 libexecdir="${libexecdir}" \
32 includedir=${includedir} \
33 mandir=${mandir}
34
35 rm -f ${D}${libdir}/*.a
36}
37
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN} = "${libdir}/*.so.*"
39FILES:${PN} += "${libexecdir}/utempter/utempter"
40FILES:${PN}-dbg += "${libexecdir}/utempter/.debug/utempter"