SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "smartmontools"

# SliTaz package receipt.

PACKAGE="smartmontools"
VERSION="7.3"
CATEGORY="system-tools"
SHORT_DESC="Monitors disk and tape health via S.M.A.R.T."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/smartmontools/smartmontools"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/smartmontools/smartmontools/releases/download/RELEASE_${VERSION/./_}/$TARBALL"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%down*} 2>/dev/null | \
    sed '/RELEASE/!d;s|.*RELEASE_||;s|".*||;s|_|.|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --sysconfdir=/etc    \
        --with-nvme-devicescan    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

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

    cp -a $install/usr/sbin        $fs/usr
    cp $install/etc/smartd.conf    $fs/etc/smartd.conf
    install -g root -o root -m 755    \
      $stuff/etc/init.d/smartd    $fs/etc/init.d
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)