wok view fake-hwclock/receipt @ rev 25644

Add fake-hwclock, manage time on system without RTC
author Stanislas Leduc <shann@slitaz.org>
date Tue Jan 16 19:48:23 2024 +0100 (3 months ago)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="fake-hwclock"
4 VERSION="0.13"
5 CATEGORY="network"
6 TAGS="clock"
7 SHORT_DESC="Save/restore system clock on machines without working RTC hardware."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="https://git.einval.com/cgi-bin/gitweb.cgi?p=fake-hwclock.git"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="git|https://git.einval.com/git/fake-hwclock.git"
14 BRANCH="75363d85aac2423fbd15c61f3729e63fea4019df"
16 BUILD_DEPENDS="git"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/usr/sbin $fs/etc/init.d
22 cp $src/fake-hwclock $fs/usr/sbin
23 cp $stuff/fake-hwclock $fs/etc/init.d
24 cp $stuff/fake-hwclock.data $fs/etc
25 }
27 post_install()
28 {
29 # Ensure we have start point
30 echo $(date '+%Y-%m-%d %H:%M:%S') > /etc/fake-hwclock.data
31 }