Skip to content

Commit

Permalink
www/lighttpd: change the default var.state_dir to fix runtime
Browse files Browse the repository at this point in the history
PR:	256643
Reported by:	sm@codenetworks.net
  • Loading branch information
pkubaj committed Aug 17, 2021
1 parent 3dd3a9b commit babf311
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/lighttpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down Expand Up @@ -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}"

Expand All @@ -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" \
Expand Down

0 comments on commit babf311

Please sign in to comment.