version question for an nginx module
Ronald Klop <[email protected]> Thu, 16 Jul 2026 21:16:58 +0200 (CEST)
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <835756537.1616.1784229418488@localhost> |
------=_Part_1615_1526711420.1784229418409
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
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.
Is this a reasonable way to do this? Do we have similar constructions in the ports tree?
Regards,
Ronald.
------=_Part_1615_1526711420.1784229418409
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html><head></head><body>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= https://nginx.org/download/:nginx<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>
Is this a reasonable way to do this? Do we have similar constructions in the ports tree?<br>
<br>
Regards,<br>
Ronald.<br>
</body></html>
------=_Part_1615_1526711420.1784229418409--