SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ipmitool"

# SliTaz package receipt.

PACKAGE="ipmitool"
VERSION="1.8.18"
CATEGORY="network"
SHORT_DESC="IPMIv1.5 or IPMIv2.0 LAN interface."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://github.com/ipmitool/ipmitool"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"

DEPENDS="libcrypto ncurses zlib"
BUILD_DEPENDS="ncurses-dev openssl-dev readline-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/ipmitool/ipmitool/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/IPMITOOL_*\(.*\).tar.*|\1|;s|_|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --enable-intf-open    \
        --enable-ipmishell    \
        --mandir=/usr/share/man    \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/sbin            $fs/usr
    cp -a $install/usr/share/ipmitool    $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)