From nobody Mon Aug 8 10:51:43 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M1Y0v4jWFz4Ypmc; Mon, 8 Aug 2022 10:51:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M1Y0v3xLMz3ZlR; Mon, 8 Aug 2022 10:51:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659955903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cmQL9uruqIBCculff35IO1WoFjcyqLbw168EyRsoZOs=; b=GiR0DEx9pOANri+v89+rprx5RUDjwIrvuQUNBtrjgnvcpDNi2SiQc61ojCFrVBv4cns9Xs ReiLJwD0MpoFTKRarP8iam8GO4wjRU96gyU0qkxuoyQxoBnu31FxoT73Ub8XdJe6yFoG82 D7BLGytYHjdNGhsyjkQosB+XEQzPP8qCKpiBal3HRGJkBsHFfHiym3Zaqd9JNevf4b6CNN U0uvo8GE1oqpYLtdpnqCU09+Y3c9VTk0UKkQdo3MQtu2WAWeVDAzqig4qd2kkJsL6n7GiH 7+wn2Dz/BeNzK1i5meoqJikGjqZAPPhVgmd0K99ygIpZahxQnUjQtOSA5r2Xcg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M1Y0v30TrzpBm; Mon, 8 Aug 2022 10:51:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 278Aphi2027140; Mon, 8 Aug 2022 10:51:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 278Aph8Y027139; Mon, 8 Aug 2022 10:51:43 GMT (envelope-from git) Date: Mon, 8 Aug 2022 10:51:43 GMT Message-Id: <202208081051.278Aph8Y027139@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Felix Palmen Subject: git: 6c3571b9118b - main - sysutils/fakertc: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zirias X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6c3571b9118b183c825404caa665152208058c53 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659955903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cmQL9uruqIBCculff35IO1WoFjcyqLbw168EyRsoZOs=; b=LWLYx+kvH9uOuGPI8m4c3NEiV55skosivENL1esTNz2LSTIBzWnNb1PXsgSWDRLYqopTyI B4uJiHLfBY9K3DTYRqBihsKmWguCvk0q/8x7zZlvx6RggA3bzm8Jq9Jwa7U3fk/Iah5fiB 3D4EgXVifFpy640TngrgHvKK7Sm8qXfcUrMcVkdC4HVqMUhW40IWJM8nCgD/5Nlxswprap eSMgw0OU7J0OJhB98Kvaxea8Uol/x7eALp1p3lJbAwGudWRfgJ1Eq+NptHr6sjmAttg269 nFtvadVlvP7jCgFRouAaqhqcIMcciHvi2LNZZkpYG2iLDnU7xtRb3jDGpx6zrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659955903; a=rsa-sha256; cv=none; b=dI2UT/xlEemVx1GEJBXeecUe2IOk0kEehUk6D3gN6HlijjFPxN3zY6xUNqmJ375CSLbycd W8LN669wkR5icWmpU7utQRLD0mW04B4Tlq65rX59t07oSuCgofTuajnDAQK5eiPVVKpGbW r5Xf6zitomxyYZ3jSJZh730Tx5+nS6ZoC9QHnMzlEpG0NvHPFMqw4Gbh1IQZ5YVUqIxOxt eoFi9ZTtEBd6LRGEPu1TP39EBhdvhvMP8LnFdwslYiEGaPu2jPixjBzPPXi/UGVyCf7adu JpfTIIZqgWxgsyRPuNTysewl/SrSbfp3OzrP3S559ODvzK3K0sQ4Sfo1ndIxig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=6c3571b9118b183c825404caa665152208058c53 commit 6c3571b9118b183c825404caa665152208058c53 Author: Ronald Klop AuthorDate: 2022-08-01 19:58:46 +0000 Commit: Felix Palmen 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 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