2010-11-18 23:44:37 +00:00
|
|
|
SUMMARY = "LiSt Open Files tool"
|
2007-08-08 16:37:40 +00:00
|
|
|
DESCRIPTION = "Lsof is a Unix-specific diagnostic tool. \
|
|
|
|
Its name stands for LiSt Open Files, and it does just that."
|
|
|
|
SECTION = "devel"
|
|
|
|
LICENSE = "BSD"
|
2012-09-03 10:03:04 +00:00
|
|
|
PR = "r0"
|
2010-06-21 12:22:24 +00:00
|
|
|
|
2007-08-08 16:37:40 +00:00
|
|
|
SRC_URI = "ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${PV}.tar.bz2"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2013-01-08 10:09:54 +00:00
|
|
|
SRC_URI[md5sum] = "80e2a76d0e05826db910ec88e631296c"
|
|
|
|
SRC_URI[sha256sum] = "dfdd3709d82bc79ccdf3e404b84aafa9aede5948642a824ecaefd0aac589da2c"
|
2011-10-05 00:53:29 +00:00
|
|
|
|
2007-08-08 16:37:40 +00:00
|
|
|
LOCALSRC = "file://${WORKDIR}/lsof_${PV}/lsof_${PV}_src.tar"
|
|
|
|
S = "${WORKDIR}/lsof_${PV}_src"
|
|
|
|
|
2012-09-03 10:03:04 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://${S}/00README;beginline=645;endline=679;md5=964df275d26429ba3b39dbb9f205172a"
|
2010-11-26 01:28:34 +00:00
|
|
|
|
2007-08-08 16:37:40 +00:00
|
|
|
python do_unpack () {
|
2010-06-21 12:22:24 +00:00
|
|
|
bb.build.exec_func('base_do_unpack', d)
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
src_uri = d.getVar('SRC_URI')
|
|
|
|
d.setVar('SRC_URI', '${LOCALSRC}')
|
2010-06-21 12:22:24 +00:00
|
|
|
bb.build.exec_func('base_do_unpack', d)
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
d.setVar('SRC_URI', src_uri)
|
2007-08-08 16:37:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export LSOF_OS = "${TARGET_OS}"
|
2011-05-18 13:44:47 +00:00
|
|
|
LSOF_OS_libc-uclibc = "linux"
|
|
|
|
LSOF_OS_libc-glibc = "linux"
|
2007-08-08 16:37:40 +00:00
|
|
|
export LSOF_INCLUDE = "${STAGING_INCDIR}"
|
|
|
|
|
|
|
|
do_configure () {
|
2012-06-12 21:42:31 +00:00
|
|
|
export LSOF_AR="${AR} cr"
|
|
|
|
export LSOF_RANLIB="${RANLIB}"
|
2012-07-13 05:14:25 +00:00
|
|
|
if [ "x${EGLIBCVERSION}" != "x" ];then
|
|
|
|
LINUX_CLIB=`echo ${EGLIBCVERSION} |sed -e 's,\.,,g'`
|
|
|
|
LINUX_CLIB="-DGLIBCV=${LINUX_CLIB}"
|
|
|
|
export LINUX_CLIB
|
|
|
|
fi
|
2007-08-08 16:37:40 +00:00
|
|
|
yes | ./Configure ${LSOF_OS}
|
|
|
|
}
|
|
|
|
|
|
|
|
export I = "${STAGING_INCDIR}"
|
|
|
|
export L = "${STAGING_INCDIR}"
|
|
|
|
export EXTRA_OEMAKE = ""
|
|
|
|
|
|
|
|
do_compile () {
|
|
|
|
oe_runmake 'CC=${CC}' 'CFGL=${LDFLAGS} -L./lib -llsof' 'DEBUG=' 'INCL=${CFLAGS}'
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install () {
|
|
|
|
install -d ${D}${sbindir} ${D}${mandir}/man8
|
|
|
|
install -m 4755 lsof ${D}${sbindir}/lsof
|
|
|
|
install -m 0644 lsof.8 ${D}${mandir}/man8/lsof.8
|
|
|
|
}
|