Date: Tue, 18 Apr 2023 10:52:35 +0200 From: Felix Palmen <zirias@FreeBSD.org> To: ports@freebsd.org, FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: Get ${OSREL} at install time Message-ID: <p5npth3aekzudtcwvbxsoy5rudjpr6hqllc6v7novivd6h4wxs@z47kz6x7kwfv> In-Reply-To: <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> References: <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--hxdzoizkvxqfwe6n Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Nuno Teixeira <eduardo@freebsd.org> [20230418 09:05]: > Any sugestion or example that permits to get OSREL at install time? Not really OSREL, but when I needed to know the FreeBSD version at install time, this is what I did: https://cgit.freebsd.org/ports/tree/security/unix-selfauth-helper/pkg-post-= install.lua It's not exactly nice, just parsing the version manually... --=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 --hxdzoizkvxqfwe6n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZD5aU18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MULyAQDQjrXNiMOXQvvkpwQe/ieV8xkHkOkBh/ooa4b15WSdnwEAt9fvn4eHN9Bx hNL6WAwQhM0/vHND3NpA7qaoQ0PjbAk= =DBee -----END PGP SIGNATURE----- --hxdzoizkvxqfwe6n--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p5npth3aekzudtcwvbxsoy5rudjpr6hqllc6v7novivd6h4wxs>