diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-02-08 08:21:06 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-09 09:57:24 +0000 |
| commit | aef302222aa803e24b62ba2a43e73a42ed35abc9 (patch) | |
| tree | 2fd29445d4ab9d6d4ab513908ddef89bdc86b694 /meta/recipes-extended/lsof/lsof_4.98.0.bb | |
| parent | 7573d38c01099add660dc98acd20bfaa2c6caae2 (diff) | |
| download | poky-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.bb | 48 |
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 @@ | |||
| 1 | SUMMARY = "LiSt Open Files tool" | ||
| 2 | DESCRIPTION = "Lsof is a Unix-specific diagnostic tool. \ | ||
| 3 | Its name stands for LiSt Open Files, and it does just that." | ||
| 4 | HOMEPAGE = "http://people.freebsd.org/~abe/" | ||
| 5 | SECTION = "devel" | ||
| 6 | LICENSE = "Spencer-94" | ||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a48ac97a8550eff12395a2c0d6151510" | ||
| 8 | |||
| 9 | SRC_URI = "git://github.com/lsof-org/lsof;branch=master;protocol=https \ | ||
| 10 | file://remove-host-information.patch" | ||
| 11 | SRCREV = "546eb1c9910e7c137fdff551683c35a736021e05" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | |||
| 16 | inherit update-alternatives | ||
| 17 | |||
| 18 | ALTERNATIVE:${PN} = "lsof" | ||
| 19 | ALTERNATIVE_LINK_NAME[lsof] = "${sbindir}/lsof" | ||
| 20 | # Make our priority higher than busybox | ||
| 21 | ALTERNATIVE_PRIORITY = "100" | ||
| 22 | |||
| 23 | |||
| 24 | export LSOF_INCLUDE = "${STAGING_INCDIR}" | ||
| 25 | |||
| 26 | do_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 | |||
| 37 | export I = "${STAGING_INCDIR}" | ||
| 38 | export L = "${STAGING_INCDIR}" | ||
| 39 | |||
| 40 | do_compile () { | ||
| 41 | oe_runmake 'CC=${CC}' 'CFGL=${LDFLAGS} -L./lib -llsof' 'DEBUG=' 'INCL=${CFLAGS} -I..' | ||
| 42 | } | ||
| 43 | |||
| 44 | do_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 | } | ||
