Van: Gleb Popov <[email protected]> Datum: donderdag, 16 juli 2026 22:29 Aan: Ronald Klop <[email protected]> CC: [email protected] Onderwerp: Re: version question for an nginx module
On Thu, Jul 16, 2026 at 10:17PM Ronald Klop <[email protected]> wrote: > > Hi, > > I'm creating a port for an nginx module. The module has a version. But I also want it to create a new pkg when nginx changes as it uses the source of nginx also. > So I had this in mind. > > PORTNAME= nginx-module-foo > DISTVERSION= 1.0.0 > .include "../nginx/version.mk" > PORTVERSION= ${DISTVERSION}~${NGINX_VERSION} > CATEGORIES= www > MASTER_SITES= https://nginx.org/download/:nginx > DISTFILES= nginx-${NGINX_VERSION}.tar.gz:nginx > > With this the port will automatically get a new pkg version when DISTVERSION changes, and also when NGINX_VERSION changes. Usually this doesn't work because a change in DISTVERSION results in distinfo becoming out-of-date.
Sharp observation. I didn't think about that yet. Could I use a MASTERDIR construction to share the distinfo with the master port? Regards, Ronald.
