wok-current view smartmontools/receipt @ rev 25713

Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 11:35:21 2024 +0000 (2 months ago)
parents 943e4e95214c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="smartmontools"
4 VERSION="7.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Monitors disk and tape health via S.M.A.R.T."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/smartmontools/smartmontools"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/smartmontools/smartmontools/releases/download/RELEASE_${VERSION/./_}/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%down*} 2>/dev/null | \
18 sed '/RELEASE/!d;s|.*RELEASE_||;s|".*||;s|_|.|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --with-nvme-devicescan \
28 $CONFIGURE_ARGS &&
29 make &&
30 make install DESTDIR=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 mkdir -p $fs/etc/init.d
39 cp -a $install/usr/sbin $fs/usr
40 cp $install/etc/smartd.conf $fs/etc/smartd.conf
41 install -g root -o root -m 755 \
42 $stuff/etc/init.d/smartd $fs/etc/init.d
43 }