git: fe1fd5678550 - main - www/lighttpd: patch config files correctly
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Mar 2025 01:14:11 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fe1fd567855031114eca44f187f920de90d1268a
commit fe1fd567855031114eca44f187f920de90d1268a
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-03-11 01:35:58 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-03-16 01:14:03 +0000
www/lighttpd: patch config files correctly
PR: 285149
Submitted by: Samuel Chow (cyschow@shaw.ca)
---
www/lighttpd/Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile
index 08406f84c1e1..8fd8ab9b88dc 100644
--- a/www/lighttpd/Makefile
+++ b/www/lighttpd/Makefile
@@ -1,6 +1,6 @@
PORTNAME= lighttpd
PORTVERSION= 1.4.77
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://download.lighttpd.net/lighttpd/releases-1.4.x/
@@ -115,6 +115,9 @@ PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" CACHEDIR="${CACHEDIR}" \
SUB_LIST= REQUIRE="${REQUIRE}"
post-patch:
+ @${REINPLACE_CMD} -E \
+ -e "s|/etc/lighttpd|${ETCDIR}|g" \
+ ${WRKSRC}/doc/config/lighttpd.conf
@${REINPLACE_CMD} -E -e \
's|^(server.document-root.*=).*|\1 "${PREFIX}/www" + "/data"|' \
-e "s|/etc/lighttpd|${ETCDIR}|g" \
@@ -127,7 +130,7 @@ post-patch:
-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
+ ${WRKSRC}/doc/config/lighttpd.annotated.conf
@${REINPLACE_CMD} -e "s|/usr/bin/python|${LOCALBASE}/bin/python|" \
${WRKSRC}/doc/config/conf.d/cgi.conf