Date: Fri, 17 Jul 2026 10:07:06 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: Gleb Popov <arrowd@freebsd.org> Cc: ports@freebsd.org Subject: Re: version question for an nginx module Message-ID: <492084097.548.1784275626142@localhost> In-Reply-To: <CALH631mF5cM2zPFE8NwBUnOwm-Ci3uK=4Z9uzWd_xH7-oY4t%2BQ@mail.gmail.com> References: <835756537.1616.1784229418488@localhost> <CALH631mF5cM2zPFE8NwBUnOwm-Ci3uK=4Z9uzWd_xH7-oY4t%2BQ@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Van: Gleb Popov <arrowd@freebsd.org>
Datum: donderdag, 16 juli 2026 22:29
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: ports@freebsd.org
Onderwerp: Re: version question for an nginx module
>
> On Thu, Jul 16, 2026 at 10:17PM Ronald Klop <ronald-lists@klop.ws> 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.
[-- Attachment #2 --]
<html><head></head><body>
<p><strong>Van:</strong> Gleb Popov <arrowd@freebsd.org><br>
<strong>Datum:</strong> donderdag, 16 juli 2026 22:29<br>
<strong>Aan:</strong> Ronald Klop <ronald-lists@klop.ws><br>
<strong>CC:</strong> ports@freebsd.org<br>
<strong>Onderwerp:</strong> Re: version question for an nginx module</p>
<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P">On Thu, Jul 16, 2026 at 10:17PM Ronald Klop <ronald-lists@klop.ws> wrote:<br>
><br>
> Hi,<br>
><br>
> 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.<br>
> So I had this in mind.<br>
><br>
> PORTNAME= nginx-module-foo<br>
> DISTVERSION= 1.0.0<br>
> .include "../nginx/version.mk"<br>
> PORTVERSION= ${DISTVERSION}~${NGINX_VERSION}<br>
> CATEGORIES= www<br>
> MASTER_SITES= <a href="https://nginx.org/download/:nginx">https://nginx.org/download/:nginx</a><br>
> DISTFILES= nginx-${NGINX_VERSION}.tar.gz:nginx<br>
><br>
> With this the port will automatically get a new pkg version when DISTVERSION changes, and also when NGINX_VERSION changes.<br>
<br>
Usually this doesn't work because a change in DISTVERSION results in<br>
distinfo becoming out-of-date.</div>
</div>
</blockquote>
<br>
<br>
<br>
Sharp observation. I didn't think about that yet.<br>
<br>
Could I use a MASTERDIR construction to share the distinfo with the master port?<br>
<br>
Regards,<br>
Ronald.<br>
</body></html>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?492084097.548.1784275626142>
