Re: git: b1c95af45488 - main - rc.conf: correct $ntp_leapfile_sources
- In reply to: Warner Losh : "Re: git: b1c95af45488 - main - rc.conf: correct $ntp_leapfile_sources"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Dec 2023 15:23:09 UTC
Am 2023-12-08 06:10, schrieb Warner Losh:
> On Thu, Dec 7, 2023 at 6:07 PM Steffen Nurpmeso <steffen@sdaoden.eu>
> wrote:
>
>> What i mean is, the FreeBSD project and its pkg database, isn't
>> this a natural place for such a thing? With guaranteed /
>> controlled availability.
>
> The ntp leap stuff does pre-date the pkg by a decade. Having a package
> for it might be a natural evolution,
Quick and dirty:
---snip---
PORTNAME= leapsecondfile
DISTVERSION= 20230328
CATEGORIES= sysutils
MASTER_SITES= https://data.iana.org/time-zones/tzdb/
DISTFILES= leap-seconds.list
MAINTAINER= security-officer@FreeBSD.org
COMMENT= Time Zone Database leap seconds file
WWW= https://data.iana.org/time-zones/tzdb
LICENSE= PD
PLIST_FILES= etc/leap-seconds.list
NO_ARCH= yes
NO_BUILD= yes
NO_EXTRACT= yes
EXTRACT_CMD= cp
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=${WRKDIR}/
do-install:
${INSTALL_DATA} ${WRKDIR}/leap-seconds.list
${STAGEDIR}/${PREFIX}/etc/leap-seconds.list
.include <bsd.port.mk>
---snip---
make makesum
echo "NTP leap seconds file" > pkg-descr
Bye,
Alexander.
--
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF