]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.spec
- new IPv6 patches from KAME and Japan Linux IPv6 Users Group
[packages/apache.git] / apache.spec
index 03cee4c4e9c76a9724a87cee165e2fd7cfeff643..c7f8534b40eef68f6d5a482c347430207dc28ccd 100644 (file)
@@ -1,28 +1,47 @@
-Summary:     HTTP server daemon to provide WWW services
-Summary(de): Leading World Wide Web-Server
-Summary(fr): Serveur Web leader du marché
-Summary(pl): Serwer WWW (World Wide Web)
-Summary(tr): Lider WWW tarayýcý
-Name:        apache
-Version:     1.3.3
-Release:     1
-Group:       Networking/Daemons
-Source0:     ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
-Source1:     httpd.init
-Source2:     apache.log
-Patch0:      apache-suexec.patch
-Patch1:      apache-config.patch
-Copyright:   BSD-like
-Obsoletes:   apache-extra
-Provides:    httpd
-Requires:    /etc/mime.types, initscripts >= 3.25, setup >= 1.10.0
-Prereq:      /sbin/chkconfig
-URL:         http://www.apache.org/
-BuildRoot:   /tmp/%{name}-%{version}-root
+Summary:       HTTP server daemon to provide WWW services with IPv6 support
+Summary(de):   Leading World Wide Web-Server
+Summary(fr):   Serveur Web leader du marché
+Summary(pl):   Serwer WWW (World Wide Web) ze wsparciem dla IPv6
+Summary(tr):   Lider WWW tarayýcý
+Name:          apache
+Version:       1.3.9
+Release:       5
+Group:         Networking/Daemons
+Group(pl):     Sieciowe/Serwery
+Source0:       ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
+Source1:       apache.init
+Source2:       apache.logrotate
+Source3:       apache-extra1.tar.bz2
+Source8:       apache.sysconfig
+Patch0:                apache-suexec.patch
+Patch1:                ftp://ftp.kame.net/pub/kame/misc/apache-139-v6-19991013a.diff.gz
+Patch2:                ftp://ftp.nemoto.ecei.tohoku.ac.jp/pub/Net/IPv6/Patches/apache-139-v6-19991013a.new4.patch.gz
+Patch3:                ftp://ftp.nemoto.ecei.tohoku.ac.jp/pub/Net/IPv6/Patches/apache-139-v6-19991013a.new4_to_4.1.patch
+Patch4:                apache-htdocs.patch
+Patch5:                apache-release.patch
+Patch6:                apache-pld.patch
+Copyright:     BSD-like
+Provides:      httpd
+Provides:      webserver
+Prereq:                /sbin/chkconfig
+Prereq:                /usr/sbin/useradd
+Prereq:                /usr/bin/getgid
+Prereq:                /usr/bin/id
+Prereq:                sh-utils
+Requires:      rc-scripts
+URL:           http://www.apache.org/
+BuildRoot:     /tmp/%{name}-%{version}-root
+Obsoletes:     apache-extra
+Obsoletes:     apache6
+
+%define                _sysconfdir     /etc/httpd
+%define                _includedir     %{_prefix}/include/apache
+%define                _datadir        /home/httpd
+%define                _libexecdir     %{_prefix}/lib/apache
 
 %description
 Apache is a full featured web server that is freely available, and also
-happens to be the most widely used.
+happens to be the most widely used. This version supports IPv6.
 
 %description -l de
 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
@@ -33,18 +52,19 @@ Apache est un serveur Web complet, disponible librement, et se trouve 
 aussi le plus utilisé à travers le monde.
 
 %description -l pl
-Apache jest serwerem WWW (World Wide Web). Instaluj±c ten
-pakiet bêdziesz móg³ prezentowaæ w³asne strony WWW w sieci internet
-Apache umozliwia równie¿ konfigurowanie serwerów wirtualnych.
+Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz 
+móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
+konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
 
 %description -l tr
 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
 
 %package suexec
-Summary:     Apache suexec wrapper
-Summary(pl): suexec wrapper do serwera www Apache
-Group:       Networking/Daemons
-Requires:    %{name} = %{version}
+Summary:       Apache suexec wrapper
+Summary(pl):   Suexec wrapper do serwera www Apache
+Group:         Networking/Development
+Group(pl):     Sieciowe/Programowanie
+Requires:      %{name} = %{version}
 
 %description suexec
 The suEXEC feature provides Apache users the ability to run CGI and SSI
@@ -53,248 +73,205 @@ Normally, when a CGI or SSI program executes, it runs as the same user
 who is running the web server. 
 
 %description -l pl suexec
-suEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
-UID ni¿ wywo³yj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
-jako taki sam urzytkownik jak serwer WWW.
+SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
+UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
+jako taki sam u¿ytkownik jak serwer WWW.
 
 %package devel
-Summary:     Apache include files
-Summary(pl): Pliki nag³ówkowe do serwera www Apache
-Group:       Networking/Development
-Requires:    %{name} = %{version}
+Summary:       Apache include files
+Summary(pl):   Pliki nag³ówkowe do serwera www Apache
+Group:         Networking/Development
+Group(pl):     Sieciowe/Programowanie
+Requires:      %{name} = %{version}
 
 %description devel
 Apache include files.
 
 %description -l pl devel
-Pliki nag³owkowe do serwera www Apache.
+Pliki nag³ówkowe dla serwera WWW Apache.
 
 %package doc
-Summary:     Apache dokumentation
-Summary(pl): Dokumentacja do Apache
-Group:       Documentation
-Requires:    %{name} = %{version}
+Summary:       Apache dokumentation
+Summary(pl):   Dokumentacja do Apache
+Group:         Documentation
+Group(pl):     Dokumentacja
+Requires:      %{name} = %{version}
 
 %description doc
 Documentation for apache in HTML format.
 
 %description -l pl doc
-Dokumentacja do Apache w formacie HTML
+Dokumentacja do Apache w formacie HTML.
 
 %prep 
-%setup -q -n apache_%{version}
+%setup -q -n apache_%{version} -a3
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
 
 %build
-OPTIM="$RPM_OPT_FLAGS" ./configure \
-       --prefix=/usr \
-       --sysconfdir=/etc/httpd/conf \
-       --datadir=/home/httpd \
-       --libexecdir=/usr/libexec/apache \
+OPTIM="$RPM_OPT_FLAGS" LDFLAGS="-s" \
+./configure \
+       --prefix=%{_prefix} \
+       --sysconfdir=%{_sysconfdir} \
+       --includedir=%{_includedir} \
+       --sbindir=%{_sbindir} \
+       --libexecdir=%{_libexecdir} \
+       --datadir=%{_datadir} \
        --localstatedir=/var \
        --runtimedir=/var/run \
        --logfiledir=/var/log/httpd \
+       --with-layout=PLD \
        --without-confadjust \
        --enable-module=all \
        --enable-shared=max \
-       --proxycachedir=/var/spool/proxy \
-       --with-perl=/usr/bin/perl \
+       --proxycachedir=/var/cache/www/apache \
+       --with-perl=%{_bindir}/perl \
        --enable-suexec \
        --suexec-caller=http \
        --suexec-uidmin=500 \
-       --suexec-gidmin=500
-
+       --suexec-gidmin=500 \
+       --enable-rule=INET6 \
+       --disable-rule=WANTHSREGEX
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 make install-quiet root="$RPM_BUILD_ROOT"
 
-install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d}
+#mv $RPM_BUILD_ROOT%{_datadir}/htdocs $RPM_BUILD_ROOT%{_datadir}/html
 
-install $RPM_SOURCE_DIR/apache.log $RPM_BUILD_ROOT/etc/logrotate.d/apache
-install $RPM_SOURCE_DIR/httpd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
+install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
+       $RPM_BUILD_ROOT/var/log/httpd
 
-# Only needed for from_cvs tarballs, but doesn't hurt otherwise
-rm -f $RPM_BUILD_ROOT/home/httpd/html/manual/expand.pl
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
+install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/apache
 
-strip --strip-debug $RPM_BUILD_ROOT/usr/libexec/apache/*.so || :
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*
 
-touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,suexec}_log
+touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
+
+cp -a apache-extra/errordocs   $RPM_BUILD_ROOT%{_datadir}/
+cp -a apache-extra/icons/*     $RPM_BUILD_ROOT%{_datadir}/icons
+cp -a apache-extra/*.conf      $RPM_BUILD_ROOT%{_sysconfdir}
+cp -a apache-extra/m*          $RPM_BUILD_ROOT%{_sysconfdir}
+
+strip $RPM_BUILD_ROOT%{_libexecdir}/* || :
+
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
+       ABOUT_APACHE src/CHANGES KEYS README README.v6
+
+%pre
+if [ -n "`getgid http`" ]; then
+       if [ "`getgid http`" != "51" ]; then
+               echo "Warning: group http haven't gid=51. Corect this before install apache" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/groupadd -g 51 -r -f http
+       if [ -f /var/db/group.db ]; then
+               /usr/bin/update-db 1>&2
+       fi
+fi
+if [ -n "`id -u http 2>/dev/null`" ]; then
+       if [ "`id -u http`" != "51" ]; then
+               echo "Warning: user http haven't uid=51. Corect this before install apache" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
+       if [ -f /var/db/passwd.db ]; then
+               /usr/bin/update-db 1>&2
+       fi
+fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add httpd
+umask 137
+touch /var/log/httpd/{access,error,agent,referer}_log
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
 
 %preun
-if [ $1 = 0 ]; then
-   if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd stop
-   fi
-   /sbin/chkconfig --del httpd
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd stop 1>&2
+       fi
+       /sbin/chkconfig --del httpd
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       /usr/sbin/userdel http
+       if [ -f /var/db/passwd.db ]; then
+               /usr/bin/update-db
+       fi
+       /usr/sbin/groupdel http
+       if [ -f /var/db/group.db ]; then
+               /usr/bin/update-db
+       fi
 fi
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %files
-%defattr(644, root, root, 755)
-%doc ABOUT_APACHE src/CHANGES KEYS LICENSE README
-%doc src/support/suexec.[ch]
-%doc /home/httpd/html/manual
-
-%dir /etc/httpd
-%dir /etc/httpd/conf
-%config(noreplace) %verify(not size mtime md5) /etc/httpd/conf/*.conf
-/etc/httpd/conf/*.conf.default
-%attr(600, root, root) %config /etc/logrotate.d/*
-%attr(755, root, root) %dir /home/httpd
-%attr(755, root, root) %dir /home/httpd/html
-%config(noreplace) /home/httpd/html/index.html
-/home/httpd/html/apache_pb.gif
-%attr(755, root, root) /etc/rc.d/init.d/httpd
-%attr(755, root, root, 755) /home/httpd/cgi-bin
-%attr(755, root, root, 755) /usr/libexec/apache
-%dir /home/httpd/icons
-/home/httpd/icons/*.gif
-%attr(755, root, root) /usr/bin/*
-%attr(755, root, root) /usr/sbin/ab
-%attr(755, root, root) /usr/sbin/apachectl
-%attr(755, root, root) /usr/sbin/apxs
-%attr(755, root, root) /usr/sbin/httpd
-%attr(755, root, root) /usr/sbin/logresolve
-%attr(755, root, root) /usr/sbin/rotatelogs
-%attr(4751,root, root) /usr/sbin/suexec
-%attr(644, root,  man) /usr/man/man[18]/*
-%attr(700, root, root) %dir /var/log/httpd
-%ghost /var/log/httpd/*
+%defattr(644,root,root,755)
+%doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
+%doc conf/mime.types README.v6.gz
+
+%attr(754,root,root) /etc/rc.d/init.d/*
+
+%attr(751,root,root) %dir %{_sysconfdir}
+%attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/*
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
+%attr(640,root,root) %config /etc/logrotate.d/*
+
+%attr(755,root,root) %dir %{_datadir}/html
+%config(noreplace) %{_datadir}/html/index.html
+%{_datadir}/html/*.gif
+%{_datadir}/errordocs
+%dir %{_datadir}/icons
+%{_datadir}/icons/*.gif
+%attr(755,root,root) %{_datadir}/cgi-bin
+
+%dir %{_libexecdir}
+%attr(755,root,root) %{_libexecdir}/*
+
+%attr(755,root,root) %{_bindir}/dbmmanage 
+%attr(755,root,root) %{_bindir}/htdigest
+%attr(755,root,root) %{_bindir}/htpasswd
+
+%attr(755,root,root) %{_sbindir}/ab
+%attr(755,root,root) %{_sbindir}/apachectl
+%attr(755,root,root) %{_sbindir}/apxs
+%attr(755,root,root) %{_sbindir}/httpd
+%attr(755,root,root) %{_sbindir}/logresolve
+%attr(755,root,root) %{_sbindir}/rotatelogs
+
+%dir %attr(750,http,http) /var/cache/www/apache
+
+%{_mandir}/man[18]/*
+
+%attr(750,root,root) %dir /var/log/httpd
+%attr(640,root,root) %ghost /var/log/httpd/*
 
 %files suexec
-%attr(4751,root, root) /usr/sbin/suexec
-%ghost /var/log/httpd/suexec_log
+%attr(4755,root,root) %{_sbindir}/suexec
 
 %files devel
-%attr(644, root, root, 755) /usr/include/apache
+%defattr(644,root,root,755) 
+
+%{_includedir}
 
 %files doc
-%doc /home/httpd/html/manual
-
-%changelog
-* Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.3.3-1]
-- removed making symlinks in /etc/rc.d/rc?.d and in %install also
-  removed this symlinks from %files (/etc/rc.d/init.d/httpd suports
-  chkconfig),
-- more simplifications in %install,
-- added new apache-config.patch,
-- added "%ghost /var/log/httpd/suexec_log" for suexec subpackage,
-- added "Requires: setup >= 1.10.0" for proper install in enviroment with
-  http user/group.
-
-* Wed Oct 14 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
-  [1.3.3-0]
-- changed user/group to http,
-- enabled all modules,
-- added magic (for mod_mime_magic),
-- rebuild spec file to minimize number of patches,
-- suEXEC in separated package.
-
-* Fri Sep 25 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
-  [1.3.2-1]
-- reconfig to use /etc/mime.types (again),
-  orginal mime.types can be found in documentation directory
-- restore orginal start page,
-- added "Provides: httpd".
-
-* Thu Sep  3 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.3.1-2]
-- removed /home/httpd/icons/README
-- added devel subpackage,
-- added pl translation (Wojtek ¦lusarczyk <wojtek@shadow.eu.org>),
-- removed Serial: filed,
-- removed Packager: field (this must be placed in private ~/.rpmrc),
-- simplification in %files and %install,
-- /home/httpd/html/manual is now marked as %doc,
-- added /etc/rc.d/rc*.d/* symlinks as a %config(missingok),
-- changed permidssion on logrotate config file to 600,
-- changed permidssion on /var/log/httpd to 700,
-- added %ghost /var/log/httpd/*
-- added striping modules.
-- added patch to defeat header dos attack
-
-* Sat Jul 18 1998 Manoj Kasichainula <manojk@io.com>
-  [1.3.1-1]
-some of the changes from 1.3.0-1 (mine was done independantly, so there are
-probably other changes)
-- /etc/rc.d/init.d/httpd includes reload
-- logrotate doesn't kill all httpd processes, just one. This is recommended.
-- Doesn't uses Red Hat MIME typesm since RH mime.types doesn't include .htm,
-  and there are other differences which will probably just cause lots of
-  annoying bug reports
-- Don't change ServerAdmin (this fake address is on purpose according
-  to the Apache Group)
-- don't enable mod_auth_dbm, since it can supposedly conflict with
-  mod_auth_db
-
-* Sun May 31 1998 Manoj Kasichainula <manojk@io.com>
-  [1.3b8_dev-1]
-- Updated to 1.3b8_dev
-- Deleted some patchwork because of improvements in APACI
-- Added translations from RH 5.1 Apache RPM
-- Loosened permissions to match RH 5.1 Apache RPM in /home
-- Allow index.htm
-- Collapsed doc package into main package (partly inspired by RPM bug)
-
-* Fri May 22 1998 Manoj Kasichainula <manojk@io.com>
-  [1.3b7-0]
-- Upgraded to 1.3b7
-- Uses APACI configuration interface -- radical rewrite
-- No more apache-extra, at least for now
-- more descriptive Copyright field
-- Now builds suEXEC
-- Explicitly decided not to use built-in mime.types, but included patch to do
-  so
-
-* Thu Apr 16 1998 Manoj Kasichainula <manojk@io.com>
-  [1.3b6-4]
-- Upgraded to 1.3b6
-- Split perl path patch from other config (saves a little time when upgrading
-  packages)
-- Started the process of separating out shared modules. So far, only the proxy
-  module has been done.
-- Yeah, I'm aware of 1.3b6-3 RPM in contrib. It has problems that I would
-  discuss with the packager if I could find out who that was.
-
-* Thu Mar 5 1998 Manoj Kasichainula <manojk@io.com>
-
-- Upgraded to 1.3b5
-- Buildable by non-root
-
-* Fri Jan 2 1998 Manoj Kasichainula <manojk@io.com>
-
-- Includes changes from Red Hat 5.0's Apache release
-  - added patch for backslash DoS attach
-  - made the default index.html be config(noreplace) so we no longer
-    blow away other folks' index.html
-  - added chkconfig support
-  - added restart|status options to initscript
-  - renamed httpd.init to httpd
-  - New index.html
-  - Now uses Red Hat's mime.types file (I may change my mind on this)
-  - No longer keeps an agent and referer log.
-  - Much more
-- Upgraded to 1.3b3
-- Fixed sillyness in /etc/rc.d/init.d/httpd
-- Now require recent version of initscripts with killproc fix.
-- Changed logrotate script
-- Undid Red Hat's ServerAdmin change (Red Hat's choice results in a
-  seemingly valid but nonsensical address)
-- suexec moved to /home/httpd/sbin/suexec
-- Replaced a reference to apache_pb.gif to /icons/apache_pb.gif, to save a
-  bit of space)
-
-* Thu Oct 16 1997 Manoj Kasichainula <manojk@io.com>
-- Upgraded to 1.3b2
-- MaxRequestsPerChild upped to 10000
-- apache-suexec absorbed into apache
-- Uncommented Serial: line. Now, it requires a recent version of RPM
+%defattr(644,root,root,755)
+%attr(-,root,root) %{_datadir}/html/manual
This page took 0.087782 seconds and 4 git commands to generate.