]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
Package /var/cache/lighttpd/mod_deflate dir
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 16 Sep 2022 08:17:54 +0000 (11:17 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 16 Sep 2022 08:18:53 +0000 (11:18 +0300)
Copied from ad5e496ceda112e1193d0b2a95f99cfc5cb78698

lighttpd.spec
mod_deflate.conf

index 23396655ede1284a1af9f2d0b7cd8f220c09e4a5..fdba954d72e35574df782dbf39d646ff71773d28 100644 (file)
@@ -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)
index f9523318da0e9367dcd02741b9347695160083b8..93b656279ede1085bd89c9d1d33be317a46c1f5f 100644 (file)
@@ -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
This page took 0.234977 seconds and 4 git commands to generate.