wok view smartmontools/receipt @ rev 25695

sc-im: replaced released version by development version
author Hans-G?nter Theisgen
date Fri Apr 26 08:13:41 2024 +0100 (5 weeks ago)
parents 86b32ffcf7ac
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 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="gcc83"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%down*} 2>/dev/null | \
21 sed '/RELEASE/!d;s|.*RELEASE_||;s|".*||;s|_|.|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 CC=gcc-83 \
29 CXX=g++-83 \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --with-nvme-devicescan \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install DESTDIR=$DESTDIR
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 mkdir -p $fs/etc/init.d
44 cp -a $install/usr/sbin $fs/usr
45 cp $install/etc/smartd.conf $fs/etc/smartd.conf
46 install -g root -o root -m 755 \
47 $stuff/etc/init.d/smartd $fs/etc/init.d
48 }