diff options
Diffstat (limited to 'meta/recipes-extended/lsof/lsof_4.96.4.bb')
-rw-r--r-- | meta/recipes-extended/lsof/lsof_4.96.4.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsof/lsof_4.96.4.bb b/meta/recipes-extended/lsof/lsof_4.96.4.bb new file mode 100644 index 0000000000..bdd883d0ce --- /dev/null +++ b/meta/recipes-extended/lsof/lsof_4.96.4.bb | |||
@@ -0,0 +1,39 @@ | |||
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 | |||
9 | SRC_URI = "git://github.com/lsof-org/lsof;branch=master;protocol=https \ | ||
10 | file://remove-host-information.patch" | ||
11 | SRCREV = "669c33a253e414feb60fbbcf2984c25dc413cd75" | ||
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 | } | ||