Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2021 23:28:42 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: babf3112deb1 - main - www/lighttpd: change the default var.state_dir to fix runtime
Message-ID:  <202108172328.17HNSgQW051630@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=babf3112deb1e32bfbe3b79733786aea9cec3a87

commit babf3112deb1e32bfbe3b79733786aea9cec3a87
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-08-17 23:28:05 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-08-17 23:28:05 +0000

    www/lighttpd: change the default var.state_dir to fix runtime
    
    PR:     256643
    Reported by:    sm@codenetworks.net
---
 www/lighttpd/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile
index 117eda3d09f8..45791837dab2 100644
--- a/www/lighttpd/Makefile
+++ b/www/lighttpd/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME?=	lighttpd
 PORTVERSION=	1.4.59
+PORTREVISION=	1
 CATEGORIES?=	www
 MASTER_SITES?=	https://download.lighttpd.net/lighttpd/releases-1.4.x/
 
@@ -128,6 +129,7 @@ GROUPS=		${WWWGRP}
 CACHEDIR=	/var/cache/${PORTNAME}
 LOGDIR=		/var/log/${PORTNAME}
 HOMEDIR=	/var/run/${PORTNAME}
+RUNDIR=		/var/run
 PLIST_SUB+=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
 PLIST_SUB+=	CACHEDIR="${CACHEDIR}" HOMEDIR="${HOMEDIR}" LOGDIR="${LOGDIR}"
 
@@ -152,6 +154,7 @@ post-patch:
 		-e "s|^(var.log_root.*=).*|\1 \"${LOGDIR}\"|" \
 		-e "s|^(var.server_root.*=).*|\1 \"${WWWDIR}\"|" \
 		-e "s|^(var.home_dir.*=).*|\1 \"${HOMEDIR}\"|" \
+		-e "s|^(var.state_dir.*=).*|\1 \"${RUNDIR}\"|" \
 		-e "s|^(var.cache_dir.*=).*|\1 \"${CACHEDIR}\"|" \
 		${WRKSRC}/doc/config/lighttpd.conf
 	@${REINPLACE_CMD} -e "s|/etc/lighttpd|${ETCDIR}|g" \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108172328.17HNSgQW051630>