summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsof/lsof_4.98.0.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-02-08 08:21:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-09 09:57:24 +0000
commitaef302222aa803e24b62ba2a43e73a42ed35abc9 (patch)
tree2fd29445d4ab9d6d4ab513908ddef89bdc86b694 /meta/recipes-extended/lsof/lsof_4.98.0.bb
parent7573d38c01099add660dc98acd20bfaa2c6caae2 (diff)
downloadpoky-aef302222aa803e24b62ba2a43e73a42ed35abc9.tar.gz
lsof: upgrade 4.96.5 -> 4.98.0
License-update: switch to a dedicated license file; the license terms are the same. (From OE-Core rev: b505414862f80bc835ebba005a76c4428a657478) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsof/lsof_4.98.0.bb')
-rw-r--r--meta/recipes-extended/lsof/lsof_4.98.0.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsof/lsof_4.98.0.bb b/meta/recipes-extended/lsof/lsof_4.98.0.bb
new file mode 100644
index 0000000000..835ce3b8df
--- /dev/null
+++ b/meta/recipes-extended/lsof/lsof_4.98.0.bb
@@ -0,0 +1,48 @@
1SUMMARY = "LiSt Open Files tool"
2DESCRIPTION = "Lsof is a Unix-specific diagnostic tool. \
3Its name stands for LiSt Open Files, and it does just that."
4HOMEPAGE = "http://people.freebsd.org/~abe/"
5SECTION = "devel"
6LICENSE = "Spencer-94"
7LIC_FILES_CHKSUM = "file://COPYING;md5=a48ac97a8550eff12395a2c0d6151510"
8
9SRC_URI = "git://github.com/lsof-org/lsof;branch=master;protocol=https \
10 file://remove-host-information.patch"
11SRCREV = "546eb1c9910e7c137fdff551683c35a736021e05"
12
13S = "${WORKDIR}/git"
14
15
16inherit update-alternatives
17
18ALTERNATIVE:${PN} = "lsof"
19ALTERNATIVE_LINK_NAME[lsof] = "${sbindir}/lsof"
20# Make our priority higher than busybox
21ALTERNATIVE_PRIORITY = "100"
22
23
24export LSOF_INCLUDE = "${STAGING_INCDIR}"
25
26do_configure () {
27 export LSOF_AR="${AR} cr"
28 export LSOF_RANLIB="${RANLIB}"
29 if [ "x${GLIBCVERSION}" != "x" ]; then
30 LINUX_CLIB=`echo ${GLIBCVERSION} |sed -e 's,\.,,g'`
31 LINUX_CLIB="-DGLIBCV=${LINUX_CLIB}"
32 export LINUX_CLIB
33 fi
34 yes | ./Configure linux
35}
36
37export I = "${STAGING_INCDIR}"
38export L = "${STAGING_INCDIR}"
39
40do_compile () {
41 oe_runmake 'CC=${CC}' 'CFGL=${LDFLAGS} -L./lib -llsof' 'DEBUG=' 'INCL=${CFLAGS} -I..'
42}
43
44do_install () {
45 install -d ${D}${sbindir} ${D}${mandir}/man8
46 install -m 0755 lsof ${D}${sbindir}/lsof
47 install -m 0644 Lsof.8 ${D}${mandir}/man8/lsof.8
48}