]> git.pld-linux.org Git - packages/apache1.git/blobdiff - apache1.spec
- rotate combined_log too!!
[packages/apache1.git] / apache1.spec
index 4a38bbf1653d09047f5a187d883a9437aa1e3640..acc25acdec97cad6bde7410bd0ccbd4750a8b0d9 100644 (file)
@@ -1,5 +1,3 @@
-# TODO
-# - move DocumentRoot and cgi-dir out of /home/services
 #
 # Conditional build:
 %bcond_with    rewrite_ldap    # enable ldap map support for mod_rewrite (alpha)
@@ -30,12 +28,12 @@ Summary(tr):        Lider WWW taray
 Summary(uk):   îÁÊÐÏÐÕÌÑÒΦÛÉÊ Web-Server
 Summary(zh_CN):        Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
 Name:          apache1
-Version:       1.3.34
-Release:       8
+Version:       1.3.36
+Release:       1.5
 License:       Apache Group
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
-# Source0-md5: 9978cc552b423f0015c1052d23ab619e
+# Source0-md5: d6c0709fc1f20d6d93d30435fcfc4843
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       apache-icons.tar.gz
@@ -89,7 +87,25 @@ Patch20:     %{name}-configdir_skip_backups.patch
 Patch21:       %{name}-apxs-quiet.patch
 Patch22:       %{name}-db4.patch
 Patch23:       %{name}-less-libs.patch
-Patch24:       %{name}-CVE-2005-3352.patch
+Patch24:       %{name}-rwrite-debug.patch
+Patch25:       %{name}-apxs-DESTDIR.patch
+# from debian apache_1.3.34-2.diff.gz
+Patch26:       %{name}-regex_must_conform_to_posix_for_LFS_to_work.patch
+Patch27:       %{name}-suexec_of_death.patch
+Patch28:       %{name}-suexec_reopenlog.patch
+Patch29:       %{name}-autoindex_studly.patch
+Patch30:       %{name}-autoindex_indexes.patch
+Patch31:       %{name}-autoindex_generator.patch
+Patch32:       %{name}-ab.8_formatting_error.patch
+Patch33:       %{name}-proxy_content_base.patch
+Patch34:       %{name}-inetdfix.patch
+Patch35:       %{name}-configure_hashbang.patch
+Patch36:       %{name}-log_files_permission.patch
+Patch37:       %{name}-htpasswd_do_not_trash_extra_fields.patch
+Patch38:       %{name}-GNU_xargs.patch
+Patch39:       %{name}-security_htdigest_local_buffer_overflow.patch
+Patch40:       %{name}-security_htpasswd_user_buffer_overflow.patch
+Patch41:       %{name}-security_check_forensic_tempfiles.patch
 URL:           http://httpd.apache.org/
 BuildRequires: db-devel >= 4.1
 BuildRequires: mm-devel >= 1.3.0
@@ -98,7 +114,6 @@ BuildRequires:       perl-base
 BuildRequires: rpm-build >= 4.4.0
 BuildRequires: rpm-perlprov
 BuildRequires: rpmbuild(macros) >= 1.268
-Requires:      mm
 Requires:      rc-scripts
 %if %{without minimal}
 # essental modules (maybe remove these in future if all Requires in
@@ -123,11 +138,11 @@ Requires: /etc/mime.types
 Requires:      mailcap
 Requires:      psmisc >= 20.1
 Provides:      %{name}(EAPI) = %{version}-%{release}
+%{?with_ipv6:Provides: apache1(ipv6)}
+%{?with_lingerd:Provides:      apache1(lingerd)}
 Provides:      group(http)
 Provides:      user(http)
 Provides:      webserver = apache
-%{?with_ipv6:Provides: apache1(ipv6)}
-%{?with_lingerd:Provides:      apache1(lingerd)}
 Obsoletes:     apache < 2.0.0
 Obsoletes:     apache-extra
 Obsoletes:     apache6
@@ -428,6 +443,7 @@ Summary(pl):        Kontrola dost
 Group:         Networking/Daemons
 Requires:      %{name}(EAPI) = %{version}-%{release}
 Provides:      apache(mod_access) = %{version}-%{release}
+Provides:      webserver(access)
 
 %description mod_access
 The directives provided by mod_access are used in <Directory>,
@@ -475,6 +491,7 @@ Summary(pl):        Odwzorowywanie cz
 Group:         Networking/Daemons
 Requires:      %{name}(EAPI) = %{version}-%{release}
 Provides:      apache(mod_alias) = %{version}-%{release}
+Provides:      webserver(alias)
 
 %description mod_alias
 This module provides for mapping different parts of the host
@@ -549,6 +566,7 @@ Group:              Networking/Daemons
 Requires:      %{name}(EAPI) = %{version}-%{release}
 Requires:      htpasswd
 Provides:      apache(mod_auth) = %{version}-%{release}
+Provides:      webserver(auth)
 Obsoletes:     apache-mod_auth < 2.0.0
 
 %description mod_auth
@@ -613,9 +631,9 @@ Summary:    Apache user authentication module using MD5 Digest Authentication
 Summary(pl):   Modu³ Apache'a do uwierzytelniania metod± MD5 Digest Authentication
 Group:         Networking/Daemons
 Requires:      %{name}(EAPI) = %{version}-%{release}
-Obsoletes:     %{name}-mod_digest
 Provides:      apache(mod_auth_digest) = %{version}-%{release}
 Obsoletes:     apache-mod_auth_digest < 2.0.0
+Obsoletes:     apache1-mod_digest
 
 %description mod_auth_digest
 This package contains mod_digest module. It provides user
@@ -630,8 +648,8 @@ Summary:    Apache module - display index of files
 Summary(pl):   Modu³ apache do wy¶wietlania indeksu plików
 Group:         Networking/Daemons
 Requires(triggerpostun):       sed >= 4.0
-Provides:      apache(mod_autoindex) = %{version}-%{release}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_autoindex) = %{version}-%{release}
 
 %description mod_autoindex
 This package contains mod_autoindex module. It provides generation
@@ -671,6 +689,7 @@ Summary(pl):        Wywo
 Group:         Networking/Daemons
 Requires:      %{name}(EAPI) = %{version}-%{release}
 Provides:      apache(mod_cgi) = %{version}-%{release}
+Provides:      webserver(cgi)
 
 %description mod_cgi
 Any file that has the MIME type application/x-httpd-cgi or handler
@@ -739,6 +758,7 @@ Summary(pl):        Modu
 Group:         Networking/Daemons
 Requires:      %{name}(EAPI) = %{version}-%{release}
 Provides:      apache(mod_dir) = %{version}-%{release}
+Provides:      webserver(indexfile)
 Obsoletes:     apache-mod_dir < 2.0.0
 
 %description mod_dir
@@ -1266,7 +1286,25 @@ algorytmami CRYPT (domy
 %patch21 -p1
 %patch22 -p1
 %patch23 -p1
-%patch24 -p0
+%patch24 -p1
+%patch25 -p1
+
+%patch26 -p2
+%patch27 -p2
+%patch28 -p2
+%patch29 -p2
+%patch30 -p2
+%patch31 -p2
+%patch32 -p2
+%patch33 -p2
+%patch34 -p2
+%patch35 -p2
+%patch36 -p2
+%patch37 -p2
+%patch38 -p2
+%patch39 -p2
+%patch40 -p2
+%patch41 -p2
 
 %if %{with lingerd}
 mv lingerd-* _lingerd
@@ -1406,8 +1444,8 @@ perl -p -i -e 's/^if ...O ne "MSWin32"./if (0)/' $RPM_BUILD_ROOT%{apxs}
 
 mv $RPM_BUILD_ROOT%{_sysconfdir}/modules/* $RPM_BUILD_ROOT%{_libexecdir}
 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/modules
-ln -s %{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules
-ln -s /var/log/apache $RPM_BUILD_ROOT%{_sysconfdir}/logs
+ln -s ../..%{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules
+ln -s ../../var/log/apache $RPM_BUILD_ROOT%{_sysconfdir}/logs
 
 ln -sf %{_bindir}/htpasswd $RPM_BUILD_ROOT%{_sbindir}
 
@@ -1574,28 +1612,27 @@ sed -i -e '
 
 # restart webserver at the end of transaction
 %service apache restart "Apache HTTP daemon"
-exit 0
 
 # macro called at module post scriptlet
 %define        module_post \
 if [ "$1" = "1" ]; then \
-       %service -q apache restart "Apache HTTP daemon" \
+       %service -q apache restart \
 fi
 
 # macro called at module postun scriptlet
 %define        module_postun \
 if [ "$1" = "0" ]; then \
-       %service -q apache restart "Apache HTTP daemon" \
+       %service -q apache restart \
 fi
 
 %post errordocs
 if [ "$1" = "1" ]; then
-       %service -q apache reload "Apache HTTP daemon"
+       %service -q apache reload
 fi
 
 %postun errordocs
 if [ "$1" = "0" ]; then
-       %service -q apache reload "Apache HTTP daemon"
+       %service -q apache reload
 fi
 
 %post mod_access
@@ -1825,9 +1862,7 @@ fi
 %doc ABOUT_APACHE src/CHANGES README
 %doc conf/mime.types conf/apache.conf.dist
 %{?with_lingerd:%doc lingerd}
-
 %attr(754,root,root) /etc/rc.d/init.d/apache
-
 %attr(750,root,root) %dir %{_sysconfdir}
 %{_sysconfdir}/modules
 %{_sysconfdir}/logs
@@ -1835,33 +1870,23 @@ fi
 %attr(750,root,root) %dir %{_sysconfdir}/webapps.d
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_common.conf
-
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/apache
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/*.monitrc
-
 %dir %{_libexecdir}
-
 %if %{with lingerd}
 %attr(755,root,root) %{_libexecdir}/lingerd
 %attr(770,root,http) %dir %{_localstatedir}/run/lingerd
 %endif
-
 %attr(755,root,root) %{_bindir}/checkgid
-
 %attr(755,root,root) %{_sbindir}/apache
-
 %dir %attr(1773,root,http) /var/run/apache
-
 %{_mandir}/man8/apache.8*
-
 %attr(2750,root,logs) %dir /var/log/apache
 %attr(2750,root,logs) %dir /var/log/archiv/apache
 %attr(640,root,logs) %ghost /var/log/apache/*
-
 %dir %{_datadir}
 %attr(755,root,root) %dir %{_datadir}/html
-
 %dir %{_datadir}/icons
 %{_datadir}/icons/*.gif
 %{_datadir}/icons/*.png
This page took 0.049683 seconds and 4 git commands to generate.