wok view watchdog/receipt @ rev 25466

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 01 09:32:27 2022 +0000 (19 months ago)
parents 86c657b651d4
children
line source
1 # SliTaz package receipt.
3 PACKAGE="watchdog"
4 VERSION="5.16"
5 CATEGORY="system-tools"
6 SHORT_DESC="Software watchdog for Linux."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://web.archive.org/web/20220308225930/https://sourceforge.net/projects/watchdog/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 current_version()
15 {
16 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
17 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --prefix=/usr \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
37 cp -a $install/etc $fs
38 cp -a $install/usr/sbin $fs/usr
39 }
41 # Post install commands for Tazpkg.
42 post_install()
43 {
44 [ -c "$1/dev/watchdog" ] || mknod -m 660 "$1/dev/watchdog" c 10 130
45 }