BSD Ports

sysutils/fakertc 4 FreeBSD

Save real-time clock on reboot

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
08b5b6c4a2
License
BSD2CLAUSE
Categories
sysutils
Package size
2.9 KiB, 3.0 KiB installed

Description

Save real-time clock on reboot

For computers without a real-time clock, this utility enables to store the wall-clock on shutdown and restore it on boot, in order to minimize the drift as far as possible until e.g. NTP is used to set the correct date/time again.

Note that systems using UFS for the root fs won't need this, as the clock is already restored from info in the UFS superblock. Since __FreeBSD_version 1600020 ZFS also restores the wall-clock time from the rootfs. https://cgit.freebsd.org/src/commit/?id=d0b3ecdc274930e190ea233b6b69ff03782eaf8d

In the other systems

SystemPortVersion
FreeBSDsysutils/fakertc4
DragonFlysysutils/fakertc3

Install

Binary package:

pkg install fakertc

From the ports tree:

cd /usr/ports/sysutils/fakertc/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	fakertc>0:sysutils/fakertc

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest44334
FreeBSD:14:quarterly44n/a34
FreeBSD:15:latest44n/a33
FreeBSD:15:quarterly44n/an/an/a
FreeBSD:16:latest44n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Files

distinfo 1
FileSizeSHA256
fakertc-v4.tar.gz2321cef547a4548fa2c411e01fe1c4060e796d38cbdab84d4cc6f00d1654c0695baf
Master sites 1
  • https://codeberg.org/ronaldklop/fakertc/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/

Commit history 2

DateCommitCreditsLog message
08b5b6c4a2 Ronald Klop sysutils/fakertc: update to v4
- Only set date if currently active date is in the past compared the stored date by fakertc. Changelog: https://codeberg.org/ronaldklop/fakertc/commits/tag/v4
1396eb2396 Ronald Klop sysutils/fakertc: document that recent ZFS updates wall-clock time now
This makes this tool obsolete on systems running UFS *and* recent ZFS.