1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Use common way to access NGINX Unit's version.

Do not bump PORTREVISIONs because of no functional changes.
This commit is contained in:
Sergey A. Osokin 2021-02-05 16:28:39 +00:00
parent 1397e6fdc8
commit bb2a1c50d3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=564130
4 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= libunit
PORTVERSION= 1.22.0
PORTVERSION= ${UNIT_VERSION}
MASTER_SITES?= https://unit.nginx.org/download/
DISTNAME= unit-${PORTVERSION}
@ -43,4 +43,5 @@ do-build:
do-install:
${MAKE} -C ${WRKSRC} libunit-install DESTDIR=${STAGEDIR}
.include "../../www/unit/version.mk"
.include <bsd.port.mk>

View File

@ -46,7 +46,6 @@ CLASSGRAPH_VERSION= 4.8.90
ECJ_VERSION= 3.23.0
JETTY_VERSION= 9.4.33.v20201020
TOMCAT_VERSION= 9.0.39
UNIT_VERSION= 1.22.0
PLIST_FILES= %%JAVAJARDIR%%/classgraph-${CLASSGRAPH_VERSION}.jar \
%%JAVAJARDIR%%/ecj-${ECJ_VERSION}.jar \

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= unit
PORTVERSION= 1.22.0
PORTVERSION= ${UNIT_VERSION}
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES?= https://unit.nginx.org/download/
@ -121,4 +121,5 @@ post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules
.endif
.include "../../www/unit/version.mk"
.include <bsd.port.mk>

7
www/unit/version.mk Normal file
View File

@ -0,0 +1,7 @@
.if !defined(UNITVERSION_MK)
UNITVERSION_MK= defined
# Define NGINX Unit's version.
UNIT_VERSION= 1.22.0
.endif # UNITVERSION_MK