Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Dec 2023 16:23:09 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Xin Li <delphij@delphij.net>, Philip Paeps <philip@freebsd.org>, src-committers <src-committers@freebsd.org>, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: b1c95af45488 - main - rc.conf: correct $ntp_leapfile_sources
Message-ID:  <8cd8ef9a5a55deb56849318896acc711@Leidinger.net>
In-Reply-To: <CANCZdfrQU-7yXbzMT8fCmBp=w=CqTVWCgwdXJNXXcHBiOb7vvw@mail.gmail.com>
References:  <202312070550.3B75o8WV066387@gitrepo.freebsd.org> <CANCZdfrSitY2W%2B7EVaa_yX=KhsJNq_FZqyOLnBeTZX_-6YGxpg@mail.gmail.com> <389AB29C-D5C0-4091-91ED-219F33351B35@freebsd.org> <d75b041f-05f8-44c1-8de6-1fef89b7e537@delphij.net> <20231207222716.obSthG6r@steffen%sdaoden.eu> <CANCZdfpHWRECi=DyhxJAW4MkA-CyPLK=OSdSwBdKQJ57MyPwNA@mail.gmail.com> <20231208010731.3hijmSTL@steffen%sdaoden.eu> <CANCZdfrQU-7yXbzMT8fCmBp=w=CqTVWCgwdXJNXXcHBiOb7vvw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_94ba23622ac2fcea1eee5064a258bc5b
Content-Type: multipart/alternative;
 boundary="=_0dbf177338c9cec8fba12e81a5ac9af6"

--=_0dbf177338c9cec8fba12e81a5ac9af6
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8;
 format=flowed

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
--=_0dbf177338c9cec8fba12e81a5ac9af6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p id=3D"reply-intro">Am 2023-12-08 06:10, schrieb Warner Losh:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"ltr">
<div dir=3D"ltr">&nbsp;</div>
<br />
<div class=3D"v1gmail_quote">
<div class=3D"v1gmail_attr" dir=3D"ltr">On Thu, Dec 7, 2023 at 6:07=E2=80=
=AFPM Steffen Nurpmeso &lt;<a href=3D"mailto:steffen@sdaoden.eu" rel=3D"nor=
eferrer">steffen@sdaoden.eu</a>&gt; wrote:</div>
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left: 1px solid #cccccc; padding-left: 1ex;">What i mean is, the FreeBS=
D project and its pkg database, isn't<br />this a natural place for such a =
thing?&nbsp; With guaranteed /<br />controlled availability.</blockquote>
<div>&nbsp;</div>
The ntp leap stuff does pre-date the pkg by a decade. Having a package</div>
<div class=3D"v1gmail_quote">for it might be a natural evolution,</div>
</div>
</div>
</blockquote>
<div id=3D"replybody1">
<div dir=3D"ltr">&nbsp;</div>
</div>
<p>Quick and dirty:</p>
<p>---snip---</p>
<p><span style=3D"font-family: 'andale mono', monospace;">PORTNAME=3D &nbsp=
; &nbsp; &nbsp; leapsecondfile</span><br /><span style=3D"font-family: 'and=
ale mono', monospace;">DISTVERSION=3D &nbsp; &nbsp;20230328</span><br /><sp=
an style=3D"font-family: 'andale mono', monospace;">CATEGORIES=3D &nbsp; &n=
bsp; sysutils</span><br /><span style=3D"font-family: 'andale mono', monosp=
ace;">MASTER_SITES=3D &nbsp; https://data.iana.org/time-zones/tzdb/</span><=
br /><span style=3D"font-family: 'andale mono', monospace;">DISTFILES=3D &n=
bsp; &nbsp; &nbsp;leap-seconds.list</span><br /><span style=3D"font-family:=
 'andale mono', monospace;">&nbsp;</span><br /><span style=3D"font-family: =
'andale mono', monospace;">MAINTAINER=3D &nbsp; &nbsp; security-officer@Fre=
eBSD.org</span><br /><span style=3D"font-family: 'andale mono', monospace;"=
>COMMENT=3D &nbsp; &nbsp; &nbsp; &nbsp;Time Zone Database leap seconds file=
</span><br /><span style=3D"font-family: 'andale mono', monospace;">WWW=3D =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;https://data.iana.org/time-zones/t=
zdb</span><br /><span style=3D"font-family: 'andale mono', monospace;">&nbs=
p;</span><br /><span style=3D"font-family: 'andale mono', monospace;">LICEN=
SE=3D &nbsp; &nbsp; &nbsp; &nbsp;PD</span><br /><span style=3D"font-family:=
 'andale mono', monospace;">&nbsp;</span><br /><span style=3D"font-family: =
'andale mono', monospace;">PLIST_FILES=3D &nbsp; &nbsp;etc/leap-seconds.lis=
t</span><br /><span style=3D"font-family: 'andale mono', monospace;">&nbsp;=
</span><br /><span style=3D"font-family: 'andale mono', monospace;">NO_ARCH=
=3D &nbsp; &nbsp; &nbsp; &nbsp;yes</span><br /><span style=3D"font-family: =
'andale mono', monospace;">NO_BUILD=3D &nbsp; &nbsp; &nbsp; yes</span><br /=
><span style=3D"font-family: 'andale mono', monospace;">NO_EXTRACT=3D &nbsp=
; &nbsp; yes</span><br /><span style=3D"font-family: 'andale mono', monospa=
ce;">EXTRACT_CMD=3D &nbsp; &nbsp;cp</span><br /><span style=3D"font-family:=
 'andale mono', monospace;">EXTRACT_BEFORE_ARGS=3D</span><br /><span style=
=3D"font-family: 'andale mono', monospace;">EXTRACT_AFTER_ARGS=3D${WRKDIR}/=
</span><br /><span style=3D"font-family: 'andale mono', monospace;">&nbsp;<=
/span><br /><span style=3D"font-family: 'andale mono', monospace;">do-insta=
ll:</span><br /><span style=3D"font-family: 'andale mono', monospace;">&nbs=
p; &nbsp; &nbsp; &nbsp; ${INSTALL_DATA} ${WRKDIR}/leap-seconds.list ${STAGE=
DIR}/${PREFIX}/etc/leap-seconds.list</span><br /><span style=3D"font-family=
: 'andale mono', monospace;">&nbsp;</span><br /><span style=3D"font-family:=
 'andale mono', monospace;">.include &lt;bsd.port.mk&gt;</span></p>
<p>---snip---</p>
<p>make makesum</p>
<p>echo "NTP leap seconds file" &gt; pkg-descr</p>
<p>Bye,<br />Alexander.</p>
<p><br /></p>
<div id=3D"signature">-- </div>
<div>
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
<a href=3D"http://www.Leidinger.net" target=3D"_blank" rel=3D"noopener nore=
ferrer">http://www.Leidinger.net</a>; <a href=3D"mailto:Alexander@Leidinger.=
net:">Alexander@Leidinger.net:</a> PGP 0x8F31830F9F2772BF<br /><a href=3D"h=
ttp://www.FreeBSD.org" target=3D"_blank" rel=3D"noopener noreferrer">http:/=
/www.FreeBSD.org</a> &nbsp; &nbsp;<a href=3D"mailto:netchild@FreeBSD.org">n=
etchild@FreeBSD.org</a> &nbsp;: PGP 0x8F31830F9F2772BF</div>
</div>
</body></html>

--=_0dbf177338c9cec8fba12e81a5ac9af6--


--=_94ba23622ac2fcea1eee5064a258bc5b
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmVzNO4ACgkQEg2wmwP4
2IbFMg/9EjXNWsdAfG4lXLgKKxdvV93Cn3987JiPtxXZ9/V9DJJOSMPiuTRiwfy1
s4HxXs+GXZGCr5FdWvXcSOExYZU4v19UDU+xm7S9PAjXFd4yjYmI6o+Dzgngr312
/E2AyqtqtA/q1+6XwO1saj3MQHYr49JmoTSdgGxppuhZBMYyysLuqOe8WJhm4HWA
WxOgQevBqUq+hQtKFVMBrsbxLzJczXZArBPNXSulgPmwZjRPp7jTxOpiPwkPpMML
xi0Xs2TFrv1zQWD5IsTdrQZ9ZI+LL43HaOaR4Ht+LE4PbJkeDYxA0bbawWsaifun
PXifScCOsbjRnzzp6cawJqjfK0kL2OyfbBXa/FLPVlOGdUP9AjPVNQBUJipyiC8y
wguxSVvjA6Jlk1gasPO3Vv+XM5ERxoWlVG5wXQHnmnXn4I1/7Mo8oJQ3+8VrQ7HP
rJm/b7tU1A9wJgGnPLBLv8xub9rZOJac+E8oNeW0jP+ClS8eHyoeW8QuqVBaqnP+
beszeGIwbgaA2NZKbzExEmSLG/fTZBGXP10JHySMxxAHiDd17E8dqPIOFIXuk2d+
DWDxzk+vIvqjViFHwbBB1d9uWeVHEsBsPeReLtWP1NcbijYU5ZCDwRKue+OHPA2c
IuvClVCp5+mXLlX9sfI/OdOu1eVFXT5wZdb6oyKxHjrbZ+hZTks=
=M0sl
-----END PGP SIGNATURE-----

--=_94ba23622ac2fcea1eee5064a258bc5b--



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