xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/libutempter/libutempter.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "A privileged helper for utmp/wtmp updates"
2*4882a593SmuzhiyunDESCRIPTION = "\
3*4882a593SmuzhiyunThis library provides interface for terminal emulators such as \
4*4882a593Smuzhiyunscreen and xterm to record user sessions to utmp and wtmp files."
5*4882a593SmuzhiyunHOMEPAGE = "ftp://ftp.altlinux.org/pub/people/ldv/utempter"
6*4882a593SmuzhiyunSECTION = "System Environment/Libraries"
7*4882a593SmuzhiyunLICENSE = "GPL-2.0-only & GPL-2.0-or-later & LGPL-2.0-only & MIT"
8*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSRCREV = "3ef74fff310f09e2601e241b9f042cd39d591018"
11*4882a593SmuzhiyunPV = "1.1.6-alt2+git${SRCPV}"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "git://git.altlinux.org/people/ldv/packages/libutempter.git;branch=master \
14*4882a593Smuzhiyun           file://0001-Fix-macro-error.patch \
15*4882a593Smuzhiyun           file://0002-Proper-macro-path-generation.patch \
16*4882a593Smuzhiyun           file://libutempter-remove-glibc-assumption.patch \
17*4882a593Smuzhiyun          "
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunS = "${WORKDIR}/git/${BPN}"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunCFLAGS += "-DLIBEXECDIR=${libexecdir}"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyundo_compile() {
24*4882a593Smuzhiyun    oe_runmake                      \
25*4882a593Smuzhiyun        libdir=${libdir}            \
26*4882a593Smuzhiyun        libexecdir=${libexecdir}
27*4882a593Smuzhiyun}
28*4882a593Smuzhiyun
29*4882a593Smuzhiyundo_install() {
30*4882a593Smuzhiyun    oe_runmake install              \
31*4882a593Smuzhiyun        DESTDIR=${D}                \
32*4882a593Smuzhiyun        libdir="${libdir}"          \
33*4882a593Smuzhiyun        libexecdir="${libexecdir}"  \
34*4882a593Smuzhiyun        includedir=${includedir}    \
35*4882a593Smuzhiyun        mandir=${mandir}
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun    rm -f ${D}${libdir}/*.a
38*4882a593Smuzhiyun}
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunFILES:${PN} = "${libdir}/*.so.*"
41*4882a593SmuzhiyunFILES:${PN} += "${libexecdir}/utempter/utempter"
42*4882a593SmuzhiyunFILES:${PN}-dbg += "${libexecdir}/utempter/.debug/utempter"
43