Summary(uk): îÁÊÐÏÐÕÌÑÒΦÛÉÊ Web-Server
Summary(zh_CN): Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
Name: apache1
-Version: 1.3.31
-Release: 5
+Version: 1.3.32
+Release: 1
License: Apache Group
Group: Networking/Daemons
Source0: http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
-# Source0-md5: bd548a06ac48dda496b4e613572bb020
+# Source0-md5: 45164531fb57bfa18af4b9efd0850dd3
Source1: %{name}.init
Source2: %{name}.logrotate
Source3: apache-icons.tar.gz
Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/apache-non-english-man-pages.tar.bz2
# Source5-md5: 74ff6e8d8a7b365b48ed10a52fbeb84e
Source6: %{name}-httpd.conf
+Source7: %{name}.monitrc
Source8: %{name}-mod_vhost_alias.conf
Source9: %{name}-mod_status.conf
Source10: %{name}-mod_proxy.conf
+Source11: %{name}-mod_autoindex.conf
Patch0: %{name}-PLD.patch
Patch1: %{name}-suexec.patch
Patch2: %{name}-errordocs.patch
%package suexec
Summary: Apache suexec wrapper
-Summary(pl): Suexec wrapper do serwera www Apache
+Summary(pl): Suexec wrapper do serwera WWW Apache
Summary(ru): Apache suEXEC CGI wrapper
Summary(uk): Apache suEXEC CGI wrapper
Group: Development/Tools
Summary(it): File include per il web server Apache
Summary(ja): Apache Web ¥µ¡¼¥Ð¡¼ÍѤγ«È¯¥Ä¡¼¥ë
Summary(nb): Headerfiler for webtjeneren Apache
-Summary(pl): Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www Apache
+Summary(pl): Pliki nag³ówkowe do tworzenia modu³ów rozszerzeñ do serwera WWW Apache
Summary(pt): Ficheiros de inclusão para o servidor Web Apache
Summary(pt_BR): Arquivos de inclusão do Apache para desenvolvimento de módulos
Summary(ru): æÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ web server'Á Apache
Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
Authentication.
+%package mod_autoindex
+Summary: Apache module - display index of files
+Summary(pl): Modu³ apache do wy¶wietlania indeksu plików
+Group: Networking/Daemons
+Requires(post,preun): %{apxs}
+Requires: %{name}(EAPI) = %{version}-%{release}
+
+%description mod_autoindex
+This package contains mod_autoindex module. It provides
+generation index of files.
+
+%description mod_autoindex -l pl
+Ten pakiet dostarcza modu³ autoindex, który generuje indeks plików.
+
%package mod_define
Summary: Apache module - authentication variables for arbitrary directives
Summary(pl): Modu³ apache do definiowania zmiennych
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
+install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,monit} \
$RPM_BUILD_ROOT%{_datadir}/errordocs \
$RPM_BUILD_ROOT/var/{log/{apache,archiv/apache},run/apache}
install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/mod_vhost_alias.conf
install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mod_status.conf
install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mod_proxy.conf
+install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/mod_autoindex.conf
+install %{SOURCE7} $RPM_BUILD_ROOT/etc/monit
ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
%{apxs} -e -a -n access %{_libexecdir}/mod_access.so 1>&2
%{apxs} -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
%{apxs} -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
-%{apxs} -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
%{apxs} -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
%{apxs} -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
%{apxs} -e -a -n env %{_libexecdir}/mod_env.so 1>&2
%{apxs} -e -A -n access %{_libexecdir}/mod_access.so 1>&2
%{apxs} -e -A -n alias %{_libexecdir}/mod_alias.so 1>&2
%{apxs} -e -A -n asis %{_libexecdir}/mod_asis.so 1>&2
- %{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
%{apxs} -e -A -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
%{apxs} -e -A -n cgi %{_libexecdir}/mod_cgi.so 1>&2
%{apxs} -e -A -n env %{_libexecdir}/mod_env.so 1>&2
%{apxs} -e -a -n access %{_libexecdir}/mod_access.so 1>&2
%{apxs} -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
%{apxs} -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
-%{apxs} -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
%{apxs} -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
%{apxs} -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
%{apxs} -e -a -n env %{_libexecdir}/mod_env.so 1>&2
%{apxs} -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
%{apxs} -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
+%triggerpostun -- %{name} <= 1.3.31-5
+echo "WARNING!!!"
+echo "Since that version autoindex module has been separated to package %{name}-mod_autoindex"
+echo "If you want to have the same functionality do:"
+echo "poldek --upgrade %{name}-mod_autoindex"
+echo
+
+
%post mod_actions
%{apxs} -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
%triggerpostun mod_auth_db -- apache-mod_auth_db < 2.0.0
%{apxs} -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
+%post mod_autoindex
+if [ "$1" = "0" ]; then
+ if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_autoindex.conf" /etc/apache/apache.conf; then
+ echo "Include /etc/apache/mod_autoindex.conf" >> /etc/apache/apache.conf
+ fi
+ %{apxs} -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%preun mod_autoindex
+if [ "$1" = "0" ]; then
+ umask 027
+ %{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
+ grep -v "^Include.*mod_autoindex.conf" /etc/apache/apache.conf > \
+ /etc/apache/apache.conf.tmp
+ mv -f /etc/apache/apache.conf.tmp /etc/apache/apache.conf
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
%post mod_auth_digest
-%{apxs} -e -a -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
-if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/apache start\" to start apache http daemon."
+if [ "$1" = "0" ]; then
+ %{apxs} -e -a -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ else
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache http daemon."
+ fi
fi
%preun mod_auth_digest
%attr(640,root,root) %{_sysconfdir}/magic
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
-%attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/*
+%attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/monit/*.monitrc
%dir %{_libexecdir}
%attr(755,root,root) %{_libexecdir}/mod_access.so
%attr(755,root,root) %{_libexecdir}/mod_alias.so
%attr(755,root,root) %{_libexecdir}/mod_asis.so
-%attr(755,root,root) %{_libexecdir}/mod_autoindex.so
%attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
%attr(755,root,root) %{_libexecdir}/mod_cgi.so
%attr(755,root,root) %{_libexecdir}/mod_env.so
%{_mandir}/man8/apache.8*
-%attr(750,root,root) %dir /var/log/apache
-%attr(750,root,root) %dir /var/log/archiv/apache
-%attr(640,root,root) %ghost /var/log/apache/*
+%attr(750,root,logs) %dir /var/log/apache
+%attr(750,root,logs) %dir /var/log/archiv/apache
+%attr(640,root,logs) %ghost /var/log/apache/*
%dir %{_datadir}
%attr(755,root,root) %dir %{_datadir}/html
%lang(es) %{_datadir}/html/index.html.es
%lang(fr) %{_datadir}/html/index.html.fr
%lang(he) %{_datadir}/html/index.html.he.iso8859-8
+%lang(hu) %{_datadir}/html/index.html.hu
%lang(it) %{_datadir}/html/index.html.it
%lang(ja) %{_datadir}/html/index.html.ja.jis
%lang(ko) %{_datadir}/html/index.html.kr.iso-kr
%{manualdir}/bind.html.en
%lang(fr) %{manualdir}/bind.html.fr
%lang(ja) %{manualdir}/bind.html.ja.jis
-%{manualdir}/cgi_path.html.html
-%{manualdir}/cgi_path.html.en
-%lang(fr) %{manualdir}/cgi_path.html.fr
-%lang(ja) %{manualdir}/cgi_path.html.ja.jis
%{manualdir}/configuring.html.html
%{manualdir}/configuring.html.en
%lang(fr) %{manualdir}/configuring.html.fr
%{manualdir}/dns-caveats.html.html
%{manualdir}/dns-caveats.html.en
%lang(fr) %{manualdir}/dns-caveats.html.fr
+%lang(ja) %{manualdir}/dns-caveats.html.ja.jis
%{manualdir}/dso.html
%{manualdir}/env.html.html
%{manualdir}/env.html.en
%{manualdir}/invoking.html.html
%{manualdir}/invoking.html.en
%lang(fr) %{manualdir}/invoking.html.fr
+%lang(ja) %{manualdir}/invoking.html.ja.jis
%{manualdir}/keepalive.html.html
%{manualdir}/keepalive.html.en
%lang(ja) %{manualdir}/keepalive.html.ja.jis
%defattr(644,root,root,755)
%attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
+%files mod_autoindex
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_autoindex.conf
+%attr(755,root,root) %{_libexecdir}/mod_autoindex.so
+
%files mod_define
%defattr(644,root,root,755)
%attr(755,root,root) %{_libexecdir}/mod_define.so
%files mod_vhost_alias
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_vhost_alias.conf
+%attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so