Summary(zh_CN): Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
Name: apache
Version: 1.3.31
-Release: 2
+Release: 2.1
License: Apache Group
Group: Networking/Daemons
Source0: http://www.apache.org/dist/httpd/%{name}_%{version}.tar.gz
Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-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}.monitrc
+Source11: %{name}-mod_autoindex.conf
Patch0: %{name}-PLD.patch
Patch1: %{name}-suexec.patch
Patch2: %{name}-errordocs.patch
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}
+Obsoletes: Apache-Gallery
+
+%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
$RPM_BUILD_ROOT/var/{log/{httpd,archiv/httpd},run/apache}
%{__make} install-quiet \
- root="$RPM_BUILD_ROOT"
+ root=$RPM_BUILD_ROOT
mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
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}/monit
+install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/mod_autoindex.conf
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/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
%triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.20-2
%{apxs} -e -A -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
+%post mod_autoindex
+if [ "$1" = "0" ]; then
+ if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_autoindex.conf" /etc/httpd/httpd.conf; then
+ echo "Include /etc/httpd/mod_autoindex.conf" >> /etc/httpd/httpd.conf
+ fi
+ %{apxs} -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
+ if [ -f /var/lock/subsys/httpd ]; then
+ /etc/rc.d/init.d/httpd 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/httpd/httpd.conf > \
+ /etc/httpd/httpd.conf.tmp
+ mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
+ if [ -f /var/lock/subsys/httpd ]; then
+ /etc/rc.d/init.d/httpd restart 1>&2
+ fi
+fi
+
%post mod_define
-%{apxs} -e -a -n define %{_libexecdir}/mod_define.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+if [ "$1" = "0" ]; then
+ %{apxs} -e -a -n define %{_libexecdir}/mod_define.so 1>&2
+ if [ -f /var/lock/subsys/httpd ]; then
+ /etc/rc.d/init.d/httpd restart 1>&2
+ else
+ echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+ fi
fi
%preun mod_define
%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
%attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
%{_datadir}/manual/mod/mod_auth_digest.html
+%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