Re: version question for an nginx module
Gleb Popov <[email protected]> Thu, 16 Jul 2026 23:29:37 +0300
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <CALH631mF5cM2zPFE8NwBUnOwm-Ci3uK=4Z9uzWd_xH7-oY4t+Q@mail.gmail.com> |
On Thu, Jul 16, 2026 at 10:17=E2=80=AFPM 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 o= f nginx also. > So I had this in mind. > > PORTNAME=3D nginx-module-foo > DISTVERSION=3D 1.0.0 > .include "../nginx/version.mk" > PORTVERSION=3D ${DISTVERSION}~${NGINX_VERSION} > CATEGORIES=3D www > MASTER_SITES=3D https://nginx.org/download/:nginx > DISTFILES=3D nginx-${NGINX_VERSION}.tar.gz:nginx > > With this the port will automatically get a new pkg version when DISTVERS= ION changes, and also when NGINX_VERSION changes. Usually this doesn't work because a change in DISTVERSION results in distinfo becoming out-of-date.