[packages/lighttpd] Package /var/cache/lighttpd/mod_deflate dir
glen
glen at pld-linux.org
Fri Sep 16 10:44:28 CEST 2022
commit 9a97497ca090e8ac6a7a4bb745fe2773affb3ccd
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Sep 16 11:17:54 2022 +0300
Package /var/cache/lighttpd/mod_deflate dir
Copied from ad5e496ceda112e1193d0b2a95f99cfc5cb78698
lighttpd.spec | 5 +++++
mod_deflate.conf | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/lighttpd.spec b/lighttpd.spec
index 2339665..fdba954 100644
--- a/lighttpd.spec
+++ b/lighttpd.spec
@@ -968,6 +968,7 @@ install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d
$RPM_BUILD_ROOT{/var/log/{%{name},archive/%{name}},/var/run/%{name}} \
$RPM_BUILD_ROOT%{_datadir}/lighttpd/errordocs \
$RPM_BUILD_ROOT/var/lib/lighttpd \
+ $RPM_BUILD_ROOT/var/cache/lighttpd/mod_deflate \
$RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}}
%{__make} install \
@@ -1222,6 +1223,9 @@ fi
# rrdtool database is stored there
%dir %attr(771,root,lighttpd) /var/lib/lighttpd
+# mod_deflate can put cached files there
+%dir /var/cache/lighttpd
+
%files mod_access
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
@@ -1282,6 +1286,7 @@ fi
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_deflate.conf
%attr(755,root,root) %{pkglibdir}/mod_deflate.so
+%dir %attr(775,root,lighttpd) /var/cache/lighttpd/mod_deflate
%files mod_dirlisting
%defattr(644,root,root,755)
diff --git a/mod_deflate.conf b/mod_deflate.conf
index f952331..93b6562 100644
--- a/mod_deflate.conf
+++ b/mod_deflate.conf
@@ -12,7 +12,7 @@ server.modules += (
#deflate.allowed-encodings = ( "brotli", "gzip", "deflate", "bzip2" )
### optional
-#deflate.cache-dir = "/path/to/compress/cache"
+deflate.cache-dir = "/var/cache/lighttpd/mod_deflate"
# measured in kilobytes, so 131072 indicates 128 MB
#deflate.max-compress-size = 131072
# measured in bytes
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lighttpd.git/commitdiff/9a97497ca090e8ac6a7a4bb745fe2773affb3ccd
More information about the pld-cvs-commit
mailing list