From nobody Tue Apr 18 10:49:55 2023 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q110D6rs5z44vQF for ; Tue, 18 Apr 2023 10:50:04 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Received: from ipv6.s149.cyber-folks.pl (ipv6.s149.cyber-folks.pl [IPv6:2a02:1778:113::68:149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q110D5z2Bz3x1P; Tue, 18 Apr 2023 10:50:04 +0000 (UTC) (envelope-from ps.ports@smyrak.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smyrak.com; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=i+7DntjYW7bpZSZ7nSXEqI977PGaixg3Xn/1pwDqq1g=; b=M6ZFjqXNc3KKTyLDhRDOa/iW5j 3JBsocEAp3LXAPLLRgbs716LdvzoJeN/iVQkSxYyySCvdkqEm6PkOIF8awQT2zfFQWxCuy3tSKw1L UXti5CWKl7ft1mm+G3qPIvTIClqw9QMRza6N0zkqeFMyFb7hZVza2/61yItZK5Zp41DAn62toEQaD QRr97bPBUmj1gusPGcodQXwNZuB5RbRfhQYzs+vnHv9bAqSwX3oFh9lcfHhgVbAfoKPYchfC4Xp4w ijDyb1REVsGPEum+kZhaLipGKJAvPoKeDv7GG9jEhTGKX5KoKpISBLSo7bko0wfbu4VPX+QH0FFfA okqaEtLg==; Received: from 93-181-165-201.internetia.net.pl ([93.181.165.201] helo=daleth.home) by s149.cyber-folks.pl with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1poiuR-001Ndm-K3; Tue, 18 Apr 2023 12:50:03 +0200 Date: Tue, 18 Apr 2023 12:49:55 +0200 From: Piotr Smyrak To: Nuno Teixeira Cc: ports@freebsd.org Subject: Re: Get ${OSREL} at install time Message-ID: <20230418124955.03cff11e@daleth.home> In-Reply-To: References: <20230418105544.4e4d5a44@daleth.home> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authenticated-Id: piero@smyrak.com X-Rspamd-Queue-Id: 4Q110D5z2Bz3x1P X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:41079, ipnet:2a02:1778::/32, country:PL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Tue, 18 Apr 2023 10:10:57 +0100 Nuno Teixeira wrote: > Yes, something like it. I will not need src sys/conf/newvers.sh, > /etc/os-release will do the job. > > Thinking right now in a way to check /etc/os-release version at > install time. You also can check output from freebsd-version(1). It's also has the advantage of letting you inspect values of hosted jails. HTH, -- Piotr Smyrak