wok annotate watchdog/receipt @ rev 25073
Up dropbear (2022.82)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 11 11:22:52 2022 +0000 (2022-06-11) |
parents | c1e7c7ea9c19 |
children | ca38ecbe9976 |
rev | line source |
---|---|
pascal@6897 | 1 # SliTaz package receipt. |
pascal@6897 | 2 |
pascal@6897 | 3 PACKAGE="watchdog" |
Hans-G?nter@23729 | 4 VERSION="5.16" |
pascal@6897 | 5 CATEGORY="system-tools" |
pascal@6897 | 6 SHORT_DESC="Software watchdog for Linux." |
pascal@6897 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15363 | 8 LICENSE="GPL" |
Hans-G?nter@22119 | 9 WEB_SITE="https://sourceforge.net/projects/watchdog/" |
Hans-G?nter@22119 | 10 |
pascal@6897 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@6897 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@6897 | 13 |
pascal@24113 | 14 current_version() |
pascal@24113 | 15 { |
pascal@24113 | 16 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24113 | 17 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q" |
pascal@24113 | 18 } |
pascal@24113 | 19 |
pascal@6897 | 20 # Rules to configure and make the package. |
pascal@6897 | 21 compile_rules() |
pascal@6897 | 22 { |
Hans-G?nter@22119 | 23 ./configure \ |
Hans-G?nter@22119 | 24 --prefix=/usr \ |
Hans-G?nter@22119 | 25 --infodir=/usr/share/info \ |
Hans-G?nter@22119 | 26 --mandir=/usr/share/man \ |
Hans-G?nter@22119 | 27 $CONFIGURE_ARGS && |
pascal@6897 | 28 make && |
pascal@15363 | 29 make DESTDIR=$DESTDIR install |
pascal@6897 | 30 } |
pascal@6897 | 31 |
pascal@6897 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@6897 | 33 genpkg_rules() |
pascal@6897 | 34 { |
pascal@6897 | 35 mkdir -p $fs/usr |
Hans-G?nter@22119 | 36 |
Hans-G?nter@22119 | 37 cp -a $install/etc $fs |
Hans-G?nter@22119 | 38 cp -a $install/usr/sbin $fs/usr |
pascal@6897 | 39 } |
pascal@6898 | 40 |
Hans-G?nter@22119 | 41 # Post install commands for Tazpkg. |
pascal@6898 | 42 post_install() |
pascal@6898 | 43 { |
pascal@18730 | 44 [ -c "$1/dev/watchdog" ] || mknod -m 660 "$1/dev/watchdog" c 10 130 |
pascal@6898 | 45 } |