Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 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://00README;beginline=645;endline=679;md5=964df275d26429ba3b39dbb9f205172a" |
| 8 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 9 | SRC_URI = "git://github.com/lsof-org/lsof;branch=master;protocol=https \ |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 10 | file://remove-host-information.patch" |
| 11 | SRCREV = "eec10fac8f57544e26ff00bf41a2dc09c56049bf" |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | export LSOF_INCLUDE = "${STAGING_INCDIR}" |
| 16 | |
| 17 | do_configure () { |
| 18 | export LSOF_AR="${AR} cr" |
| 19 | export LSOF_RANLIB="${RANLIB}" |
| 20 | if [ "x${GLIBCVERSION}" != "x" ]; then |
| 21 | LINUX_CLIB=`echo ${GLIBCVERSION} |sed -e 's,\.,,g'` |
| 22 | LINUX_CLIB="-DGLIBCV=${LINUX_CLIB}" |
| 23 | export LINUX_CLIB |
| 24 | fi |
| 25 | yes | ./Configure linux |
| 26 | } |
| 27 | |
| 28 | export I = "${STAGING_INCDIR}" |
| 29 | export L = "${STAGING_INCDIR}" |
| 30 | |
| 31 | do_compile () { |
| 32 | oe_runmake 'CC=${CC}' 'CFGL=${LDFLAGS} -L./lib -llsof' 'DEBUG=' 'INCL=${CFLAGS}' |
| 33 | } |
| 34 | |
| 35 | do_install () { |
| 36 | install -d ${D}${sbindir} ${D}${mandir}/man8 |
| 37 | install -m 0755 lsof ${D}${sbindir}/lsof |
| 38 | install -m 0644 Lsof.8 ${D}${mandir}/man8/lsof.8 |
| 39 | } |