SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "watchdog"

# SliTaz package receipt.

PACKAGE="watchdog"
VERSION="5.16"
CATEGORY="system-tools"
SHORT_DESC="Software watchdog for Linux."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL"
WEB_SITE="https://web.archive.org/web/20220308225930/https://sourceforge.net/projects/watchdog/"

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

current_version()
{
    wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

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

    cp -a $install/etc    $fs
    cp -a $install/usr/sbin    $fs/usr
}

# Post install commands for Tazpkg.
post_install()
{
    [ -c "$1/dev/watchdog" ] || mknod -m 660  "$1/dev/watchdog" c 10 130
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)