Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 11:39:14 +0200
From:      Felix Palmen <zirias@FreeBSD.org>
To:        ports@freebsd.org
Subject:   Re: Get ${OSREL} at install time
Message-ID:  <mtyehrcf7fermezda77ky375kpjbnwkhkdpxg74kw3jfbqlst2@h7vmagtg53yw>
In-Reply-To: <7068cd8f-9a2b-1bc1-c745-4cc1bf56ee9c@aetern.org>
References:  <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> <p5npth3aekzudtcwvbxsoy5rudjpr6hqllc6v7novivd6h4wxs@z47kz6x7kwfv> <250f83f2-dc05-b9c9-b429-ac463da436f9@aetern.org> <7068cd8f-9a2b-1bc1-c745-4cc1bf56ee9c@aetern.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--jab7biuzj3jiievp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Yuri <yuri@aetern.org> [20230418 11:11]:
> Yuri wrote:
> > Took a look at this and now I'm wondering if it gets run at all, you
> > don't seem to specify PKGPOSTINSTALL in the Makefile, and bsd.port.mk
> > has it as just pkg-post-install, not handling .lua?  It's also is not in
> > the .pkg file contents.  Sorry if I'm missing something.
>=20
> Nevermind me, I see that it's there, sorry for the noise.

Yes, the .lua suffix is automatically tried somewhere deep down in the
scripts, I actually forgot where. Had to analyze them back when I did
this, because this whole feature (lua in package scripts) was largely
undocumented. This has been fixed by now however :)

https://docs.freebsd.org/en/books/porters-handbook/book/#pkg-install

--=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

--jab7biuzj3jiievp
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZD5lQl8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz
NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny
MRY9AP46LwuwjNFcJzcl40EfkNNCdk4RB1CtQjfV2XEpTF2cSwEAzUZv3QO/xpXp
6FPZTb/3hRBE598puEfvLAe1E1/J8Qg=
=PsXF
-----END PGP SIGNATURE-----

--jab7biuzj3jiievp--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?mtyehrcf7fermezda77ky375kpjbnwkhkdpxg74kw3jfbqlst2>