diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
| commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
| tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/lsof/lsof_4.83.bb | |
| parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
| download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz | |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/lsof/lsof_4.83.bb')
| -rw-r--r-- | meta/recipes-extended/lsof/lsof_4.83.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsof/lsof_4.83.bb b/meta/recipes-extended/lsof/lsof_4.83.bb new file mode 100644 index 0000000000..078da64305 --- /dev/null +++ b/meta/recipes-extended/lsof/lsof_4.83.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | DESCRIPTION = "Lsof is a Unix-specific diagnostic tool. \ | ||
| 2 | Its name stands for LiSt Open Files, and it does just that." | ||
| 3 | SECTION = "devel" | ||
| 4 | LICENSE = "BSD" | ||
| 5 | |||
| 6 | PR = "r0" | ||
| 7 | |||
| 8 | SRC_URI = "ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${PV}.tar.bz2" | ||
| 9 | LOCALSRC = "file://${WORKDIR}/lsof_${PV}/lsof_${PV}_src.tar" | ||
| 10 | S = "${WORKDIR}/lsof_${PV}_src" | ||
| 11 | |||
| 12 | python do_unpack () { | ||
| 13 | bb.build.exec_func('base_do_unpack', d) | ||
| 14 | src_uri = bb.data.getVar('SRC_URI', d) | ||
| 15 | bb.data.setVar('SRC_URI', '${LOCALSRC}', d) | ||
| 16 | bb.build.exec_func('base_do_unpack', d) | ||
| 17 | bb.data.setVar('SRC_URI', src_uri, d) | ||
| 18 | } | ||
| 19 | |||
| 20 | export LSOF_OS = "${TARGET_OS}" | ||
| 21 | LSOF_OS_linux-uclibc = "linux" | ||
| 22 | LSOF_OS_linux-gnueabi = "linux" | ||
| 23 | export LSOF_INCLUDE = "${STAGING_INCDIR}" | ||
| 24 | |||
| 25 | do_configure () { | ||
| 26 | yes | ./Configure ${LSOF_OS} | ||
| 27 | } | ||
| 28 | |||
| 29 | export I = "${STAGING_INCDIR}" | ||
| 30 | export L = "${STAGING_INCDIR}" | ||
| 31 | export EXTRA_OEMAKE = "" | ||
| 32 | |||
| 33 | do_compile () { | ||
| 34 | oe_runmake 'CC=${CC}' 'CFGL=${LDFLAGS} -L./lib -llsof' 'DEBUG=' 'INCL=${CFLAGS}' | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install () { | ||
| 38 | install -d ${D}${sbindir} ${D}${mandir}/man8 | ||
| 39 | install -m 4755 lsof ${D}${sbindir}/lsof | ||
| 40 | install -m 0644 lsof.8 ${D}${mandir}/man8/lsof.8 | ||
| 41 | } | ||
