# HG changeset patch # User Pascal Bellard # Date 1236945840 0 # Node ID 09854352494e3e627871049b1706219608e10e8c # Parent a0ad270a5c9b942f01d9e64c71424f872e23cbc7 Add lsof diff -r a0ad270a5c9b -r 09854352494e lsof/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lsof/receipt Fri Mar 13 12:04:00 2009 +0000 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="lsof" +VERSION="4.81" +CATEGORY="system-tools" +SHORT_DESC="list open files." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE.tar.bz2" +WEB_SITE="http://people.freebsd.org/~abe/" +WGET_URL="ftp://lsof.itap.purdue.edu/pub/tools/unix/$PACKAGE/$TARBALL" +#ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof.tar.bz2 + +# Rules to configure and make the package. +compile_rules() +{ + mv ${PACKAGE}_${VERSION} $src 2> /dev/null + cd $src + if [ ! -d ${PACKAGE}_${VERSION}_src ]; then + tar xf ${PACKAGE}_${VERSION}_src.tar + fi + cd ${PACKAGE}_${VERSION}_src + yes '' | ./Configure linux && + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp $src/${PACKAGE}_${VERSION}_src/lsof $fs/usr/bin +} +