Re: Get ${OSREL} at install time
- In reply to: Felix Palmen : "Re: Get ${OSREL} at install time"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 09:25:52 UTC
Just found a port using pkg-post-install in sh: sysutils/nut/pkg-post-install --- #!/bin/sh - pw groupmod -n dialer -m nut --- I can do egrep version from /etc/os-release and sed to setup gitup.conf here. I will do some tests and when it works I will publish it here for sugestions/corrections. Thanks all! Felix Palmen <zirias@freebsd.org> escreveu no dia terça, 18/04/2023 à(s) 09:52: > * 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... > > -- > 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 > -- Nuno Teixeira FreeBSD Committer (ports)