wok-6.x annotate smartmontools/receipt @ rev 25541
w3m: fix version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 10 17:54:21 2023 +0000 (18 months ago) |
parents | 1df6fa555414 |
children | 943e4e95214c |
rev | line source |
---|---|
erjo@621 | 1 # SliTaz package receipt. |
erjo@621 | 2 |
erjo@621 | 3 PACKAGE="smartmontools" |
Hans-G?nter@25312 | 4 VERSION="7.3" |
erjo@621 | 5 CATEGORY="system-tools" |
erjo@621 | 6 SHORT_DESC="Monitors disk and tape health via S.M.A.R.T." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15593 | 8 LICENSE="GPL2" |
Hans-G?nter@21923 | 9 WEB_SITE="https://smartmontools.org/" |
Hans-G?nter@21923 | 10 |
erjo@621 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@11038 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
erjo@621 | 13 |
Hans-G?nter@21923 | 14 DEPENDS="gcc83-lib-base" |
Hans-G?nter@21923 | 15 BUILD_DEPENDS="gcc83" |
pascal@15593 | 16 |
pascal@24288 | 17 current_version() |
pascal@24288 | 18 { |
pascal@24288 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24288 | 20 sed '/version/!d;s|.*version ||;s| .*||;q' |
pascal@24288 | 21 } |
pascal@24288 | 22 |
erjo@621 | 23 # Rules to configure and make the package. |
erjo@621 | 24 compile_rules() |
erjo@621 | 25 { |
Hans-G?nter@21923 | 26 ./configure \ |
Hans-G?nter@23650 | 27 CC=gcc-83 \ |
Hans-G?nter@23650 | 28 CXX=g++-83 \ |
Hans-G?nter@21923 | 29 --prefix=/usr \ |
Hans-G?nter@21923 | 30 --sysconfdir=/etc \ |
Hans-G?nter@21923 | 31 --with-nvme-devicescan \ |
Hans-G?nter@21923 | 32 $CONFIGURE_ARGS && |
pascal@5007 | 33 make && |
Hans-G?nter@24286 | 34 make install DESTDIR=$DESTDIR |
erjo@621 | 35 } |
erjo@621 | 36 |
erjo@621 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@621 | 38 genpkg_rules() |
erjo@621 | 39 { |
Hans-G?nter@21923 | 40 mkdir -p $fs/usr |
Hans-G?nter@21923 | 41 mkdir -p $fs/etc/init.d |
Hans-G?nter@21923 | 42 |
Hans-G?nter@21923 | 43 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21923 | 44 cp $install/etc/smartd.conf $fs/etc/smartd.conf |
Hans-G?nter@21923 | 45 install -g root -o root -m 755 \ |
Hans-G?nter@21923 | 46 $stuff/etc/init.d/smartd $fs/etc/init.d |
erjo@621 | 47 } |