From nobody Tue Apr 18 09:06:55 2023 X-Original-To: freebsd-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 4Q0yjS1Dkfz44n9G; Tue, 18 Apr 2023 09:07:08 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0yjS0jJwz4C9Q; Tue, 18 Apr 2023 09:07:08 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681808828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NepAXZlxmnW57aQquHBULLu2XrgY1pbJa9ImhZuR7yE=; b=G6VL3FljJyIpyDYDyqBLHb2wk/Y7qRFo7Agjqnr7OvGipEBkHMweyeuHj5L0G1KuntZYM/ TtT5aYJC6Z5rIESuF1grenOnwkBjr9DLdzKYk++eN7WBXE+9Ys5V/xdHIufZTNDHmKAPfn qXIAKSCcFVD1oiKLFUd3spOVm0r3sveuhLxtiByHUmDGRXpEFxfTFOlrFlhd6HYT2e89W3 4ufA9fePnGYS0TuOiXj1ozCVvNYygXhuz2Xbq0j856O6uXHvdaMrQSZV4wj94CCaIH1SJ3 udUkaexkQIyoQ9YVMP1ViqavghUkpGvpj4w+klSfT1IoZI/9AgHBfKBFRYSdig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681808828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NepAXZlxmnW57aQquHBULLu2XrgY1pbJa9ImhZuR7yE=; b=Q2+6huowgl4YfZfHLD2AIxEKXGQLzRarppPg6jQ1co31ikEovB9CJBRGqtrZS4LLjW8Uf5 CxR3kMoJ9Hq5cRUzRGzcT/a1DBRJDLOwfY2pJCREXbkkIDlBPbE/mBrZ9j+e95UR8apPLE xeJlRNeFQgeAko3tACw5tkIQ3dVM3X31FyLq04RgkLP87RrW4d4UW+ao3JTyE8e44FKco1 D4UHqiMridExJRksg5KoRq4fHEvGGg8SWfTXHNxpFzhlA9OxA3WKyLK/24237Lu+sS0U3O 7oFbzf/RgiltNluoe9RayzvXL6nJJ0zxix7CdvwAjr8mDxgELYoP0/Otcm/1tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681808828; a=rsa-sha256; cv=none; b=nlZ5dM75RpL2jrwkd1W6JZbnVq3EpwnMyKzOplFc8mPgeT0eTmTdtFUIEaGnGJYdffgYsB WvBPC0FMD0Hw7TeHiLIbz9bbayGf6TPyrfxDnB/dNM6y80VbAmtqjr6imK4uYrOUkOxBoT Y+Dw6gwPQC5zlxthKr2oCO3euiAvUnlzIgUovKcLGgZZ75eA94czjiWO9cr1EydbdxNyLg jfujJh449FaEfecst8MWmAMUBLytZ+DVSRGwA0B592mYqVytKE103DYGreMEWGJH5NaKzi ACbqx/1eH9/XsiTRsKSMGaBxKhBcZsPeft2UoO3RtJIShswQm3y3Yip+WzyKLQ== Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Q0yjR6m3Wz10kv; Tue, 18 Apr 2023 09:07:07 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-ua1-f50.google.com with SMTP id x8so10913183uau.9; Tue, 18 Apr 2023 02:07:07 -0700 (PDT) X-Gm-Message-State: AAQBX9e4AyYp9ls9QaFHy97bC4c6fZk7VmAZzKCRiSYwXwo4/g1Vf68+ auVKQBp4Ih3KF8KySa1i8yNh6y689mqzYNiZ/WM= X-Google-Smtp-Source: AKy350b1LH/qHZxc8eGWMPL7kyEgZfH2sn0Hc6PBd8uGm9p+D4Pcv3SouzHskKkZG+J3QutUv6jVD5rrro2NNgzLs3Q= X-Received: by 2002:ab0:5b07:0:b0:68b:94c5:7683 with SMTP id u7-20020ab05b07000000b0068b94c57683mr10262483uae.0.1681808827253; Tue, 18 Apr 2023 02:07:07 -0700 (PDT) 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 References: In-Reply-To: From: Nuno Teixeira Date: Tue, 18 Apr 2023 10:06:55 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Get ${OSREL} at install time To: ports@freebsd.org, FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000ba8a4a05f998a119" X-ThisMailContainsUnwantedMimeParts: N --000000000000ba8a4a05f998a119 Content-Type: text/plain; charset="UTF-8" Hey, 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... > Maybe this it what I'm looking for: check /etc/os-release and install time. The above code is lua? Is there a way to use shell to check os-release file? Thanks, -- Nuno Teixeira FreeBSD Committer (ports) --000000000000ba8a4a05f998a119 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
--
Nuno Teixeira
FreeBSD Commi= tter (ports)
--000000000000ba8a4a05f998a119--