# 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 }