Date: Tue, 18 Apr 2023 11:28:52 +0200 From: Felix Palmen <zirias@FreeBSD.org> To: ports@freebsd.org Subject: Re: Get ${OSREL} at install time Message-ID: <2xnmmuphodyegxo4pxnzexhugjhyuvlugruie3sitwcgciq3t3@ir5ax536wfau> In-Reply-To: <250f83f2-dc05-b9c9-b429-ac463da436f9@aetern.org> References: <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> <p5npth3aekzudtcwvbxsoy5rudjpr6hqllc6v7novivd6h4wxs@z47kz6x7kwfv> <250f83f2-dc05-b9c9-b429-ac463da436f9@aetern.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--hqverbt3wwidurxl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Yuri <yuri@aetern.org> [20230418 11:07]: > I was going to suggest something similar with using kern.osreldate and > parsing it according to > https://docs.freebsd.org/en/books/porters-handbook/versions/, e.g. Just a quick hint: /etc/os-release is preferred because it will still work correctly when installing to an alternate root (using pkg -c or pkg -r). --=20 Felix Palmen <zirias@FreeBSD.org> {private} felix@palmen-it.de -- ports committer (mentee) -- {web} http://palmen-it.de {pgp public key} http://palmen-it.de/pub.txt {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231 --hqverbt3wwidurxl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZD5i1F8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MVpuAQC8EtGTKaXU87SAFhK8R2A8Bburb/vzy/0wvINL2p2j5wEAt/YvO/Au4afm OnjFGXjR5juOmBAduiQQDrGxmTmJogk= =kGkz -----END PGP SIGNATURE----- --hqverbt3wwidurxl--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2xnmmuphodyegxo4pxnzexhugjhyuvlugruie3sitwcgciq3t3>