SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lsof"

# SliTaz package receipt.

PACKAGE="lsof"
VERSION="4.94.0"
CATEGORY="system-tools"
SHORT_DESC="List open files."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://github.com/lsof-org/lsof/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
#    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/lsof    $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)