wok-6.x view smartmontools/receipt @ rev 24669
updated inxi (3.0.37 -> 3.3.13)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 16:49:52 2022 +0100 (2022-03-11) |
parents | c1b9da2fd6c7 |
children | 86b32ffcf7ac |
line source
1 # SliTaz package receipt.
3 PACKAGE="smartmontools"
4 VERSION="7.2"
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://smartmontools.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="gcc83"
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/version/!d;s|.*version ||;s| .*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 CC=gcc-83 \
28 CXX=g++-83 \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --with-nvme-devicescan \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 mkdir -p $fs/etc/init.d
43 cp -a $install/usr/sbin $fs/usr
44 cp $install/etc/smartd.conf $fs/etc/smartd.conf
45 install -g root -o root -m 755 \
46 $stuff/etc/init.d/smartd $fs/etc/init.d
47 }