Date: Tue, 18 Apr 2023 13:26:32 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: Felix Palmen <zirias@freebsd.org> Cc: ports@freebsd.org Subject: Re: Get ${OSREL} at install time Message-ID: <CAFDf7UKS8LW6xJtaN%2Bud7-tGjxKQrSyMsnpy2ytCki7CKpOimg@mail.gmail.com> In-Reply-To: <zrc4espwpzkt2ssauiz7gxz2zo6vzh2ms5j2kmqzbidoub4nc2@7yn7b6w25nkt> References: <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> <ff0dc458-76f6-0bc2-8560-0eea00744226@grosbein.net> <bbeaf874-8d0d-88b3-29d6-fcb081fb26cd@grosbein.net> <CAFDf7U%2BwOWBnW=bT8qM96_%2BWzCvgZ2dO2TD2LiJ=Gyc36Ft80A@mail.gmail.com> <oeuktukoy63y4f42sk3w3cel52g5zh3ng5rpjrn6rfoudksrkq@qiuzgeoqdmnn> <CAFDf7UK=-R6o2Q5o2ihsiD%2Bue_4L2j1tXEu2LiJSVp%2Br=uEwww@mail.gmail.com> <CAFDf7U%2BaV5rVQgcWz96v80tPWFH-9RXRmMbnrqEjv93xx9rvuw@mail.gmail.com> <CAFDf7ULnDW2w8O9WD%2BDMdT2ku0DtH9OWDBidfejJQ9BEhJHOUg@mail.gmail.com> <3gizlmiaz2h3qwk6xe64iik42vr6mtxyex4d2hjaymazz5nngt@3wm6jdrdxslm> <zrc4espwpzkt2ssauiz7gxz2zo6vzh2ms5j2kmqzbidoub4nc2@7yn7b6w25nkt>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009517bb05f99b6b7f Content-Type: text/plain; charset="UTF-8" ok, pkg-script manual have also something interesting for finding prefix: PKG_PREFIX PREFIX defined within the package at build time. So I can use ${PKG_PREFIX}/etc/gitup.conf About ${PKG_ROOTDIR}/bin/freebsd-version it doesn't seem to be called in pkg-post-install: osrel=${PKG_ROOTDIR}/bin/freebsd-version Am I missing something? --0000000000009517bb05f99b6b7f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>ok, pkg-script manual have also something interesting= for finding prefix: <br></div><div>PKG_PREFIX<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0PREFIX defined within the package at build time.</d= iv><div>So I can use ${PKG_PREFIX}/etc/gitup.conf</div><div><br></div><div>= About ${PKG_ROOTDIR}/bin/freebsd-version it doesn't seem to be called i= n pkg-post-install:</div><div>osrel=3D${PKG_ROOTDIR}/bin/freebsd-version</d= iv><div><br></div><div>Am I missing something?<br></div><div></div></div> --0000000000009517bb05f99b6b7f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKS8LW6xJtaN%2Bud7-tGjxKQrSyMsnpy2ytCki7CKpOimg>