]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd.spec
- package dir for mod_compress optional cache-dir; rel 3
[packages/lighttpd.git] / lighttpd.spec
index 89e521e3afc3f587b22aafb7083d73732c7c58f2..320d60b641b7bf69a8f7ef6453555d3b582c1869 100644 (file)
 %define                webdav_progs    1
 %endif
 
-%define                _rel 6.2
+%define                _rel 3
 Summary:       Fast and light HTTP server
-Summary(pl.UTF-8):   Szybki i lekki serwer HTTP
+Summary(pl.UTF-8):     Szybki i lekki serwer HTTP
 Name:          lighttpd
-Version:       1.4.13
+Version:       1.4.17
 Release:       %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)}%{?_svn:.%{_svn}}
 License:       BSD
 Group:         Networking/Daemons
-Source0:       http://www.lighttpd.net/download/%{name}-%{version}.tar.gz
-# Source0-md5: d775d6478391b95d841a1018c8db0b95
+Source0:       http://www.lighttpd.net/download/%{name}-%{version}.tar.bz2
+# Source0-md5: 85c99c2d6baf8ad9e38e6267efe7d9aa
 Source1:       %{name}.init
 Source2:       %{name}.conf
 Source3:       %{name}.user
@@ -99,12 +99,10 @@ Source132:  %{name}-ssl.conf
 Source133:     %{name}-mod_mysql_vhost.conf
 Source134:     %{name}-mod_magnet.conf
 Source135:     %{name}-mod_extforward.conf
-#Patch100: %{name}-branch.diff
+#Patch100:     %{name}-branch.diff
 Patch0:                %{name}-use_bin_sh.patch
 Patch1:                %{name}-mod_evasive-status_code.patch
-Patch2:                %{name}-mod_deflate.patch
-Patch3:                %{name}-mod_extforward-v2.patch
-Patch4:                %{name}-mod_expire-weeks.patch
+#Patchx:               %{name}-mod_deflate.patch
 URL:           http://www.lighttpd.net/
 %{?with_xattr:BuildRequires:   attr-devel}
 BuildRequires: autoconf
@@ -175,7 +173,7 @@ powodu problemów z obciążeniem.
 
 %package mod_access
 Summary:       lighttpd module for making access restrictions
-Summary(pl.UTF-8):   Moduł lighttpd ograniczający dostęp
+Summary(pl.UTF-8):     Moduł lighttpd ograniczający dostęp
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Provides:      webserver(access)
@@ -190,7 +188,7 @@ Moduł access służy do ograniczania dostępu do plików o podanych
 
 %package mod_accesslog
 Summary:       lighttpd module to record access logs
-Summary(pl.UTF-8):   Moduł lighttpd do zapisu logów dostępu
+Summary(pl.UTF-8):     Moduł lighttpd do zapisu logów dostępu
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -202,7 +200,7 @@ Domyślnie podobny do CLF, elastyczny jak Apache.
 
 %package mod_alias
 Summary:       lighttpd module for making URL aliasing
-Summary(pl.UTF-8):   Moduł lighttpd odpowiadający za aliasy URL-i
+Summary(pl.UTF-8):     Moduł lighttpd odpowiadający za aliasy URL-i
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Provides:      webserver(alias)
@@ -217,7 +215,7 @@ dla podanego podzbioru URL-i.
 
 %package mod_auth
 Summary:       lighttpd module for authentication support
-Summary(pl.UTF-8):   Moduł lighttpd do obsługi uwierzytelniania
+Summary(pl.UTF-8):     Moduł lighttpd do obsługi uwierzytelniania
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Provides:      webserver(auth)
@@ -232,7 +230,7 @@ basic i digest.
 
 %package mod_cgi
 Summary:       lighttpd module for CGI handling
-Summary(pl.UTF-8):   Moduł lighttpd do obsługi CGI
+Summary(pl.UTF-8):     Moduł lighttpd do obsługi CGI
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Requires:      %{name}-mod_alias = %{version}-%{release}
@@ -252,7 +250,7 @@ prosty i naturalny sposób.
 
 %package mod_cml
 Summary:       lighttpd module for Cache Meta Language
-Summary(pl.UTF-8):   Moduł Cache Meta Language
+Summary(pl.UTF-8):     Moduł Cache Meta Language
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -267,7 +265,7 @@ z drugiej strony do budowania strony z fragmentów przy użyciu LUA.
 
 %package mod_compress
 Summary:       lighttpd module for output compression
-Summary(pl.UTF-8):   Moduł lighttpd do kompresji wyjścia
+Summary(pl.UTF-8):     Moduł lighttpd do kompresji wyjścia
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -291,7 +289,7 @@ Obsługiwane są gzip, deflate i bzip.
 
 %package mod_deflate
 Summary:       lighttpd module for output compression using deflate method
-Summary(pl.UTF-8):   Moduł lighttpd do kompresji wyjścia metodą deflate
+Summary(pl.UTF-8):     Moduł lighttpd do kompresji wyjścia metodą deflate
 Group:         Networking/Daemons
 URL:           http://trac.lighttpd.net/trac/wiki/Mod_Deflate
 Requires:      %{name} = %{version}-%{release}
@@ -307,7 +305,7 @@ mod_compress.
 
 %package mod_dirlisting
 Summary:       lighttpd module for directory listings
-Summary(pl.UTF-8):   Moduł lighttpd do tworzenia listingów katalogów
+Summary(pl.UTF-8):     Moduł lighttpd do tworzenia listingów katalogów
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -321,7 +319,7 @@ kontrolą CSS.
 
 %package mod_evasive
 Summary:       lighttpd evasive module
-Summary(pl.UTF-8):   Moduł evasive dla lighttpd
+Summary(pl.UTF-8):     Moduł evasive dla lighttpd
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -333,7 +331,7 @@ Moduł evasive dla lighttpd.
 
 %package mod_evhost
 Summary:       lighttpd module for enhanced virtual-hosting
-Summary(pl.UTF-8):   Moduł lighttpd rozszerzający obsługę hostów wirtualnych
+Summary(pl.UTF-8):     Moduł lighttpd rozszerzający obsługę hostów wirtualnych
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -349,7 +347,7 @@ nazwy hosta.
 
 %package mod_expire
 Summary:       lighttpd module for controlling the expiration of content in caches
-Summary(pl.UTF-8):   Moduł lighttpd sterujący wygasaniem treści w cache'ach
+Summary(pl.UTF-8):     Moduł lighttpd sterujący wygasaniem treści w cache'ach
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -361,7 +359,7 @@ mod_expire steruje ustawianiem nagłówka odpowiedzi Expire.
 
 %package mod_extforward
 Summary:       lighttpd module to extract the client's "real" IP from X-Forwarded-For header
-Summary(pl.UTF-8):   Moduł lighttpd wyciągający "prawdziwy" IP klienta z nagłówka X-Forwarded-For
+Summary(pl.UTF-8):     Moduł lighttpd wyciągający "prawdziwy" IP klienta z nagłówka X-Forwarded-For
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -377,7 +375,7 @@ serwerów stojących za odwrotnymi serwerami proxy.
 
 %package mod_fastcgi
 Summary:       lighttpd module for FastCGI interface
-Summary(pl.UTF-8):   Moduł lighttpd do interfejsu FastCGI
+Summary(pl.UTF-8):     Moduł lighttpd do interfejsu FastCGI
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -393,7 +391,7 @@ jak Perl, PHP czy własne aplikacje.
 
 %package mod_flv_streaming
 Summary:       lighttpd module for flv streaming
-Summary(pl.UTF-8):   Moduł lighttpd do streamingu flv
+Summary(pl.UTF-8):     Moduł lighttpd do streamingu flv
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -405,7 +403,7 @@ Moduł lighttpd do streamingu flv.
 
 %package mod_indexfile
 Summary:       lighttpd indexfile module
-Summary(pl.UTF-8):   Moduł indexfile dla lighttpd
+Summary(pl.UTF-8):     Moduł indexfile dla lighttpd
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Provides:      webserver(indexfile)
@@ -418,7 +416,7 @@ Moduł indexfile.
 
 %package mod_magnet
 Summary:       lighttpd powermagnet module
-Summary(pl.UTF-8):   Moduł powermagnet dla lighttpd
+Summary(pl.UTF-8):     Moduł powermagnet dla lighttpd
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -430,7 +428,7 @@ mod_magnet to moduł sterujący obsługą żądań w lighty.
 
 %package mod_mysql_vhost
 Summary:       lighttpd module for MySQL based vhosting
-Summary(pl.UTF-8):   Moduł lighttpd obsługujący vhosty oparte na MySQL-u
+Summary(pl.UTF-8):     Moduł lighttpd obsługujący vhosty oparte na MySQL-u
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Conflicts:     %{name}-mod_simple_vhost
@@ -443,7 +441,7 @@ Ten moduł udostępnia wirtualne hosty (vhosty) oparte na tabeli MySQL.
 
 %package mod_proxy
 Summary:       lighttpd module for proxying requests
-Summary(pl.UTF-8):   Moduł lighttpd do przekazywania żądań
+Summary(pl.UTF-8):     Moduł lighttpd do przekazywania żądań
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -457,7 +455,7 @@ mającymi interfejs HTTP.
 
 %package mod_proxy_core
 Summary:       lighttpd module for proxying requests
-Summary(pl.UTF-8):   Moduł lighttpd do przekazywania żądań
+Summary(pl.UTF-8):     Moduł lighttpd do przekazywania żądań
 Group:         Networking/Daemons
 URL:           http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn
 Requires:      %{name} = %{version}-%{release}
@@ -476,7 +474,7 @@ Ten pakiet zawiera nowy moduł proxy.
 
 %package mod_redirect
 Summary:       lighttpd module for URL redirects
-Summary(pl.UTF-8):   Moduł lighttpd do przekierowań URL-i
+Summary(pl.UTF-8):     Moduł lighttpd do przekierowań URL-i
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -489,7 +487,7 @@ zewnątrz.
 
 %package mod_rewrite
 Summary:       lighttpd module for internal redirects, URL rewrite
-Summary(pl.UTF-8):   Moduł lighttpd do wewnętrznych przekierowań i przepisywania URL-i
+Summary(pl.UTF-8):     Moduł lighttpd do wewnętrznych przekierowań i przepisywania URL-i
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -503,7 +501,7 @@ WWW _przed_ ich obsługą.
 
 %package mod_rrdtool
 Summary:       lighttpd module for monitoring traffic and server load
-Summary(pl.UTF-8):   Moduł lighttpd do monitorowania ruchu i obciążenia serwera
+Summary(pl.UTF-8):     Moduł lighttpd do monitorowania ruchu i obciążenia serwera
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Requires:      rrdtool
@@ -525,7 +523,7 @@ WWW.
 
 %package mod_scgi
 Summary:       lighttpd module for SCGI interface
-Summary(pl.UTF-8):   Moduł lighttpd do interfejsu SCGI
+Summary(pl.UTF-8):     Moduł lighttpd do interfejsu SCGI
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -539,7 +537,7 @@ Pythona z WSGI.
 
 %package mod_secdownload
 Summary:       lighttpd module for secure and fast downloading
-Summary(pl.UTF-8):   Moduł lighttpd do bezpiecznego i szybkiego ściągania danych
+Summary(pl.UTF-8):     Moduł lighttpd do bezpiecznego i szybkiego ściągania danych
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -553,7 +551,7 @@ uwierzytelnieniem i zapobiec używaniu bezpośrednich odnośników.
 
 %package mod_setenv
 Summary:       lighttpd module for setting conditional request headers
-Summary(pl.UTF-8):   Moduł lighttpd do ustawiania warunkowych nagłówków żądań
+Summary(pl.UTF-8):     Moduł lighttpd do ustawiania warunkowych nagłówków żądań
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -565,7 +563,7 @@ mod_setenv służy do dodawania nagłówków żądań.
 
 %package mod_simple_vhost
 Summary:       lighttpd module for simple virtual-hosting
-Summary(pl.UTF-8):   Moduł lighttpd do prostych hostów wirtualnych
+Summary(pl.UTF-8):     Moduł lighttpd do prostych hostów wirtualnych
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Conflicts:     %{name}-mod_mysql_vhost
@@ -578,7 +576,7 @@ Moduł lighttpd do prostych hostów wirtualnych.
 
 %package mod_ssi
 Summary:       lighttpd module for server-side includes
-Summary(pl.UTF-8):   Moduł lighttpd do SSI (server-side includes)
+Summary(pl.UTF-8):     Moduł lighttpd do SSI (server-side includes)
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -592,7 +590,7 @@ znanym z NSCA/Apache'a.
 
 %package mod_staticfile
 Summary:       lighttpd module for static file serving
-Summary(pl.UTF-8):   Moduł lighttpd do serwowania statycznych plików
+Summary(pl.UTF-8):     Moduł lighttpd do serwowania statycznych plików
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -604,7 +602,7 @@ Moduł lighttpd do serwowania statycznych plików.
 
 %package mod_status
 Summary:       lighttpd module for displaying server status
-Summary(pl.UTF-8):   Moduł lighttpd do wyświetlania stanu serwera
+Summary(pl.UTF-8):     Moduł lighttpd do wyświetlania stanu serwera
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -616,7 +614,7 @@ mod_status wyświetla stan i konfigurację serwera.
 
 %package mod_trigger_b4_dl
 Summary:       Trigger before Download
-Summary(pl.UTF-8):   Wyzwalacz przed ściąganiem
+Summary(pl.UTF-8):     Wyzwalacz przed ściąganiem
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -628,7 +626,7 @@ Jeszcze jeden moduł blokujący bezpośrednie linkowanie.
 
 %package mod_userdir
 Summary:       lighttpd module for user homedirs
-Summary(pl.UTF-8):   Moduł lighttpd obsługujący katalogi domowe użytkowników
+Summary(pl.UTF-8):     Moduł lighttpd obsługujący katalogi domowe użytkowników
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -642,7 +640,7 @@ użytkowników do globalnej przestrzeni nazw serwera WWW.
 
 %package mod_usertrack
 Summary:       lighttpd usertrack module
-Summary(pl.UTF-8):   Moduł usertrack dla lighttpd
+Summary(pl.UTF-8):     Moduł usertrack dla lighttpd
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -654,7 +652,7 @@ Moduł usertrack dla lighttpd.
 
 %package mod_webdav
 Summary:       WebDAV module for lighttpd
-Summary(pl.UTF-8):   Moduł WebDAV dla libghttpd
+Summary(pl.UTF-8):     Moduł WebDAV dla libghttpd
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -692,7 +690,7 @@ podstawowe testy lakmusowe przechodzą.
 
 %package -n spawn-fcgi
 Summary:       Spawn fcgi-process directly
-Summary(pl.UTF-8):   Bezpośrednie uruchamianie procesów fcgi
+Summary(pl.UTF-8):     Bezpośrednie uruchamianie procesów fcgi
 Group:         Applications
 
 %description -n spawn-fcgi
@@ -705,7 +703,7 @@ pomocy serwera WWW ani samego programu.
 
 %package php-spawned
 Summary:       PHP support via FastCGI, spawned by lighttpd
-Summary(pl.UTF-8):   Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
+Summary(pl.UTF-8):     Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Requires:      %{name}-mod_fastcgi = %{version}-%{release}
@@ -720,7 +718,7 @@ Obsługa PHP przez FastCGI, uruchamiane przez lighttpd.
 
 %package php-external
 Summary:       PHP support via FastCGI, spawning controlled externally
-Summary(pl.UTF-8):   Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie
+Summary(pl.UTF-8):     Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Requires:      %{name}-mod_fastcgi = %{version}-%{release}
@@ -735,7 +733,7 @@ Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie.
 
 %package ssl
 Summary:       lighttpd support for SSLv2 and SSLv3
-Summary(pl.UTF-8):   Obsługa SSLv2 i SSLv3 dla lighttpd
+Summary(pl.UTF-8):     Obsługa SSLv2 i SSLv3 dla lighttpd
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
@@ -745,13 +743,24 @@ lighttpd support for SSLv2 and SSLv3.
 %description ssl -l pl.UTF-8
 Obsługa SSLv2 i SSLv3 dla lighttpd.
 
+%package -n monit-rc-lighttpd
+Summary:       lighttpd support for monit
+Summary(pl.UTF-8):     Wsparcie lighttpd dla monit
+Group:         Applications/System
+Requires:      %{name} = %{version}-%{release}
+Requires:      monit
+
+%description -n monit-rc-lighttpd
+monitrc file for monitoring MySQL database server.
+
+%description -n monit-rc-lighttpd -l pl.UTF-8
+Plik monitrc do monitorowania serwera baz danych MySQL.
+
 %prep
 %setup -q
-#%patch100 -p1
+#%patch100 -p0
 %patch0 -p1
 %patch1 -p1
-%patch3 -p1
-%patch4 -p1
 
 # build mime.types.conf
 sh %{SOURCE6} /etc/mime.types
@@ -784,9 +793,10 @@ sh %{SOURCE6} /etc/mime.types
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
        $RPM_BUILD_ROOT%{_sysconfdir}/{conf,webapps}.d \
-       $RPM_BUILD_ROOT{/var/log/{%{name},archiv/%{name}},/var/run/%{name}} \
+       $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/lib/lighttpd \
+       $RPM_BUILD_ROOT/var/cache/lighttpd/mod_compress
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -993,8 +1003,7 @@ EOF
 %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
 
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
-%attr(750,root,root) %dir /var/log/archiv/%{name}
+%attr(750,root,root) %dir /var/log/archive/%{name}
 %dir %attr(751,root,root) /var/log/%{name}
 %ghost %attr(644,lighttpd,lighttpd) /var/log/%{name}/access.log
 %ghost %attr(644,lighttpd,lighttpd) /var/log/%{name}/error.log
@@ -1015,6 +1024,9 @@ EOF
 # rrdtool database is stored there
 %dir %attr(771,root,lighttpd) /var/lib/lighttpd
 
+# mod_compress 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
@@ -1049,6 +1061,7 @@ EOF
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_compress.conf
 %attr(755,root,root) %{_libdir}/mod_compress.so
+%dir %attr(775,root,lighttpd) /var/cache/lighttpd/mod_compress
 
 %if %{with deflate}
 %files mod_deflate
@@ -1201,3 +1214,7 @@ EOF
 %files ssl
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf
+
+%files -n monit-rc-lighttpd
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
This page took 0.050534 seconds and 4 git commands to generate.