Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Aug 2022 10:51:43 GMT
From:      Felix Palmen <zirias@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6c3571b9118b - main - sysutils/fakertc: Add new port
Message-ID:  <202208081051.278Aph8Y027139@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by zirias:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6c3571b9118b183c825404caa665152208058c53

commit 6c3571b9118b183c825404caa665152208058c53
Author:     Ronald Klop <ronald-lists@klop.ws>
AuthorDate: 2022-08-01 19:58:46 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2022-08-08 10:50:27 +0000

    sysutils/fakertc: Add new port
    
    fakertc is a simple rc.d script to keep the time of computers without an
    RTC across reboots.
    
    PR:                     265556
    Approved by:            tcberner (mentor)
    Differential Revision:  https://reviews.freebsd.org/D36067
---
 sysutils/Makefile          |  1 +
 sysutils/fakertc/Makefile  | 23 +++++++++++++++++++++++
 sysutils/fakertc/distinfo  |  3 +++
 sysutils/fakertc/pkg-descr | 11 +++++++++++
 4 files changed, 38 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 5d2ca0d0012a..a58f4396f6aa 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -353,6 +353,7 @@
     SUBDIR += f2
     SUBDIR += f3
     SUBDIR += facter
+    SUBDIR += fakertc
     SUBDIR += fand
     SUBDIR += fanout
     SUBDIR += fatback
diff --git a/sysutils/fakertc/Makefile b/sysutils/fakertc/Makefile
new file mode 100644
index 000000000000..ef133cc68e0d
--- /dev/null
+++ b/sysutils/fakertc/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	fakertc
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1
+CATEGORIES=	sysutils
+
+MAINTAINER=	ronald-lists@klop.ws
+COMMENT=	Save real-time clock on reboot
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	ronaldklop
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+PLIST_FILES=	etc/rc.d/${PORTNAME}
+
+do-install:
+		${INSTALL_SCRIPT} ${WRKSRC}/src/etc/rc.d/${PORTNAME} \
+			${STAGEDIR}${PREFIX}/etc/rc.d
+
+.include <bsd.port.mk>
diff --git a/sysutils/fakertc/distinfo b/sysutils/fakertc/distinfo
new file mode 100644
index 000000000000..e00f173faf2d
--- /dev/null
+++ b/sysutils/fakertc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659382845
+SHA256 (ronaldklop-fakertc-v1_GH0.tar.gz) = 25461cd62f1578c2733c00776078e99f7f9ded4f811f9fa558cdd2455ece25b8
+SIZE (ronaldklop-fakertc-v1_GH0.tar.gz) = 1586
diff --git a/sysutils/fakertc/pkg-descr b/sysutils/fakertc/pkg-descr
new file mode 100644
index 000000000000..95a0de0d5673
--- /dev/null
+++ b/sysutils/fakertc/pkg-descr
@@ -0,0 +1,11 @@
+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.
+
+WWW: https://github.com/ronaldklop/fakertc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208081051.278Aph8Y027139>