svn commit: r564068 - in head: . www/unit
Sergey A. Osokin
osa at FreeBSD.org
Thu Feb 4 23:01:50 UTC 2021
Author: osa
Date: Thu Feb 4 23:01:49 2021
New Revision: 564068
URL: https://svnweb.freebsd.org/changeset/ports/564068
Log:
Change the default location for NGINX Unit's state directory has changed.
It was moved from /usr/local/libexec/unit to /var/db/unit in order to
avoid write operations on /usr/local filesystem.
Bump PORTREVISION.
Modified:
head/UPDATING
head/www/unit/Makefile
Modified: head/UPDATING
==============================================================================
--- head/UPDATING Thu Feb 4 22:42:44 2021 (r564067)
+++ head/UPDATING Thu Feb 4 23:01:49 2021 (r564068)
@@ -5,6 +5,14 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
+20210204:
+ AFFECTS: users of www/unit
+ AUTHOR: osa at FreeBSD.org
+
+ The default location for NGINX Unit's state directory has changed. It
+ was moved from /usr/local/libexec/unit to /var/db/unit in order to
+ avoid write operations on /usr/local filesystem.
+
20210124:
AFFECTS: users of net-mgmt/netbox
AUTHOR: kai at FreeBSD.org
Modified: head/www/unit/Makefile
==============================================================================
--- head/www/unit/Makefile Thu Feb 4 22:42:44 2021 (r564067)
+++ head/www/unit/Makefile Thu Feb 4 23:01:49 2021 (r564068)
@@ -3,6 +3,7 @@
PORTNAME= unit
PORTVERSION= 1.22.0
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES?= https://unit.nginx.org/download/
@@ -41,6 +42,7 @@ UNIXSOCK_DESC= Enable unix sockets
HAS_CONFIGURE= yes
UNIT_VARDIR?= /var
+UNIT_DBDIR?= ${UNIT_VARDIR}/db/${PORTNAME}
UNIT_LOGDIR?= ${UNIT_VARDIR}/log/${PORTNAME}
UNIT_LOGFILE?= ${UNIT_LOGDIR}/${PORTNAME}.log
UNIT_PIDFILE?= ${UNIT_RUNDIR}/${PORTNAME}.pid
@@ -53,7 +55,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
--log=${UNIT_LOGFILE} \
--modules=libexec/unit/modules \
--pid=${UNIT_PIDFILE} \
- --state=libexec/unit \
+ --state=${UNIT_DBDIR} \
--tmp=${UNIT_TMPDIR} \
--user=${WWWOWN} --group=${WWWGRP}
@@ -108,9 +110,11 @@ CONFIGURE_ARGS+=--control=unix:${UNIT_SOCK}
.if !target(post-install)
post-install:
+ ${MKDIR} ${STAGEDIR}${UNIT_DBDIR}
${MKDIR} ${STAGEDIR}${UNIT_LOGDIR}
${MKDIR} ${STAGEDIR}${UNIT_RUNDIR}
${MKDIR} ${STAGEDIR}${UNIT_TMPDIR}
+ ${ECHO_CMD} @dir ${UNIT_DBDIR} >> ${TMPPLIST}
${ECHO_CMD} @dir ${UNIT_LOGDIR} >> ${TMPPLIST}
${ECHO_CMD} @dir ${UNIT_RUNDIR} >> ${TMPPLIST}
${ECHO_CMD} @dir ${UNIT_TMPDIR} >> ${TMPPLIST}
More information about the svn-ports-all
mailing list