]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.spec
new apache ready for ipv6 - but untested
[packages/apache.git] / apache.spec
index bf281ff20a21c9d63006965437343f3b071d743c..5c607a76404d483d2f5993f2b763f166d8ca4c48 100644 (file)
@@ -1,33 +1,35 @@
-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.1
-Release:     2
-Group:       Networking/Daemons
-Source0:     ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
-Source1:     index.html
-Source2:     poweredby.gif
-Source3:     httpd.init
-Source4:     apache.log
-Patch0:      apache-1.3b8-htdocs.patch
-Patch1:      apache-1.3b8-suexec.patch
-Patch2:      apache-1.3b7-perlpath.patch
-Patch3:      apache-1.3b8-config.patch
-Patch4:      apache-1.3b8-mimetypes.patch
-Copyright:   BSD-like
-Obsoletes:   apache-suexec apache-extra apache-doc
-Requires:    /etc/mime.types
-Requires:    initscripts >= 3.25
-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.6
+Release:       1
+Group:         Networking/Daemons
+Group(pl):     Sieci/Demony
+Source0:       ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
+Source1:       apache.init
+Source2:       %{name}.logrotate
+Source3:       %{name}-extra.tar.bz2
+########       http://stonecold.unity.ncsu.edu/software/mod_auth_kerb/index.html
+Source5:       mod_auth_kerb-4.3.tar.gz
+Source6:       apache_1.3.6.tar.gz.asc
+Source7:       apache_1.3.6.tar.gz.md5
+Patch0:                %{name}-suexec.patch
+Patch1:                %{name}_1.3.6.ipv6.patch
+Copyright:     BSD-like
+Obsoletes:     apache-extra
+Obsoletes:     apache6
+Provides:      httpd
+Provides:      webserver
+Prereq:                /sbin/chkconfig
+URL:           http://www.apache.org/
+BuildRoot:     /tmp/%{name}-%{version}-root
 
 %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
@@ -38,86 +40,119 @@ 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êziesz 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/Development
+Group(pl):     Sieci/Programowanie
+Requires:      %{name} = %{version}
+
+%description suexec
+The suEXEC feature provides Apache users the ability to run CGI and SSI
+programs under user IDs different from the user ID of the calling web-server.
+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³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³owkowe 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):     Sieci/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.
 
-%prep 
-%setup -q -n apache_%{version}
+%package doc
+Summary:       Apache dokumentation
+Summary(pl):   Dokumentacja do Apache
+Group:         Documentation
+Group(pl):     Dokumentacja
+Requires:      %{name} = %{version}
+URL:           http://www.apache.org/
 
+%description doc
+Documentation for apache in HTML format.
+
+%description -l pl doc
+Dokumentacja do Apache w formacie HTML
+
+%prep 
+%setup -q -n apache_%{version} -a3
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
-#%patch4 -p1
 
 %build
-OPTIM="$RPM_OPT_FLAGS" ./configure --prefix=/usr --sysconfdir=/etc/httpd/conf \
-       --datadir=/home/httpd --libexecdir=/usr/libexec/apache \
-       --localstatedir=/var --runtimedir=/var/run --logfiledir=/var/log/httpd \
+OPTIM=$RPM_OPT_FLAGS LDFLAGS=-s\
+    ./configure \
+       --prefix=/usr \
+       --sysconfdir=/etc/httpd/conf \
+       --datadir=/home/httpd \
+       --libexecdir=/usr/libexec/apache \
+       --localstatedir=/var \
+       --runtimedir=/var/run \
+       --logfiledir=/var/log/httpd \
        --without-confadjust \
-       --enable-module=auth_anon --enable-shared=auth_anon \
-       --enable-module=auth_db --enable-shared=auth_db \
-       --enable-module=digest --enable-shared=digest \
-       --enable-module=expires --enable-shared=expires \
-       --enable-module=headers --enable-shared=headers \
-       --enable-module=mime_magic --enable-shared=mime_magic \
-       --enable-module=mmap_static --enable-shared=mmap_static \
-       --enable-module=proxy --enable-shared=proxy \
-       --proxycachedir=/var/spool/proxy \
-       --enable-module=rewrite --enable-shared=rewrite \
-       --enable-module=speling --enable-shared=speling \
-       --enable-module=status --enable-shared=status \
-       --enable-module=unique_id --enable-shared=unique_id \
-       --enable-module=usertrack --enable-shared=usertrack \
-       --enable-suexec --suexec-caller=nobody \
-       --suexec-uidmin=500 --suexec-gidmin=500
+       --enable-module=all \
+       --enable-shared=max \
+       --disable-module=auth_db \
+       --proxycachedir=/var/cache/www/apache \
+       --with-perl=%{_bindir}/perl \
+       --enable-suexec \
+       --suexec-caller=http \
+       --suexec-uidmin=500 \
+       --suexec-gidmin=500 \
+       --sbindir=%{_sbindir} \
+       --includedir=%{_includedir}/apache \
+       --enable-rule=INET6
 
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 make install-quiet root="$RPM_BUILD_ROOT"
 
-install -d $RPM_BUILD_ROOT/etc/{httpd/conf,logrotate.d,rc.d/{init,rc{0,1,2,3,4,5,6}}.d}
+mv $RPM_BUILD_ROOT/home/httpd/htdocs $RPM_BUILD_ROOT/home/httpd/html
+
+install -d $RPM_BUILD_ROOT/etc/{httpd/conf,logrotate.d,rc.d/init.d}
 install -d $RPM_BUILD_ROOT/home/httpd/{html/manual,icons,cgi-bin}
-install -d $RPM_BUILD_ROOT/{usr/{lib/apache,sbin,man/man{1,8}},var/log/httpd}
+install -d $RPM_BUILD_ROOT/{usr/{share,lib/apache,sbin,man/man{1,8}},var/log/httpd}
 
-mv $RPM_BUILD_ROOT/home/httpd/html/{index,index_apache}.html
-install $RPM_SOURCE_DIR/{index.html,poweredby.gif} \
-       $RPM_BUILD_ROOT/home/httpd/html
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
 
-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%{_includedir}/apache
 
-# Only needed for from_cvs tarballs, but doesn't hurt otherwise
+rm -f $RPM_BUILD_ROOT/etc/httpd/conf/*
 rm -f $RPM_BUILD_ROOT/home/httpd/html/manual/expand.pl
 
-strip --strip-debug $RPM_BUILD_ROOT/usr/libexec/apache/*.so
+touch $RPM_BUILD_ROOT/var/log/httpd/{access,error}_log
 
-for I in 0 1 2 6; do
-        ln -s ../init.d/httpd $RPM_BUILD_ROOT/etc/rc.d/rc$I.d/K15httpd
-done
-for I in 3 5; do
-        ln -s ../init.d/httpd $RPM_BUILD_ROOT/etc/rc.d/rc$I.d/S85httpd
-done
+cp -a apache-extra/errordocs   $RPM_BUILD_ROOT/home/httpd/
+cp -a apache-extra/icons/*     $RPM_BUILD_ROOT/home/httpd/icons
+cp -a apache-extra/*.conf      $RPM_BUILD_ROOT/etc/httpd/conf
+cp -a apache-extra/m*          $RPM_BUILD_ROOT/etc/httpd/conf
 
-touch $RPM_BUILD_ROOT/var/log/httpd/{access,error}_log
+mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
+
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man1/*,man8/*}
+gzip -9nf ABOUT_APACHE src/CHANGES KEYS README
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -128,48 +163,131 @@ rm -rf $RPM_BUILD_ROOT
 %preun
 if [ $1 = 0 ]; then
    if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd stop
+       /etc/rc.d/init.d/httpd stop >&2
    fi
    /sbin/chkconfig --del httpd
 fi
 
 %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
-%config(missingok) /etc/rc.d/rc*.d/*
-/home/httpd/html/poweredby.gif
-%attr(600, root, root) %config /etc/logrotate.d/*
-%attr(755, root, root) %dir /home/httpd
-%attr(755, root, root) %dir /home/httpd/html
+%defattr(644,root,root,755)
+%doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
+%doc conf/mime.types
+
+%attr(750,root,root) %dir /etc/httpd
+%attr(750,root,root) %dir /etc/httpd/conf
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/httpd/conf/*
+
+%attr(640,root,root) %config /etc/logrotate.d/*
+%attr(755,root,root) %dir /home/httpd/html
+
 %config(noreplace) /home/httpd/html/index.html
-%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
+
+%attr(644,root,root) /home/httpd/html/*.gif
+%attr(700,root,root) %config %verify(not size mtime md5) /etc/rc.d/init.d/*
+
+%attr(755,root,root) /home/httpd/cgi-bin
+%attr(755,root,root) /usr/libexec/apache
+
+%attr(755,root,root) %dir /home/httpd/icons
 /home/httpd/icons/*.gif
-/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/*
+
+%attr(755,root,root) %dir /home/httpd/errordocs
+/home/httpd/errordocs/*
+
+%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) %config %verify(not size mtime md5) /var/log/httpd/*
+
+%files suexec
+%attr(4711,root,root) %{_sbindir}/suexec
 
 %files devel
-%attr(644, root, root, 755) /usr/include/apache
+%defattr(644,root,root,755) 
+
+%dir %{_includedir}/apache
+%{_includedir}/apache/*
+
+%files doc
+%defattr(644,root,root,755)
+/home/httpd/html/manual
 
 %changelog
+* Thu Feb 10 1999 Micha³ Kuratczyk <kurkens@polbox.com>
+  [1.3.4-6d]
+- added LDFLAGS=-s
+- gzipping instead bzipping
+- cosmetic changes
+
+* Tue Jan 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+  [1.3.4-5d]
+- rebuild against new kernel-2.2.0 ;)  
+
+* Mon Jan 25 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+  [1.3.4-4d]
+- added errordocs.  
+
+* Thu Jan 21 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+  [1.3.4-3d]
+- fixed files permission,
+- fixed apache.init,
+- some other changes.
+
+* Sun Jan 17 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+  [1.3.4-2d]
+- fixed sbindir && apache includes (by Mirek Nowakowski <nowam@pg.gda.pl>),
+- compressed documentation,
+- fixed Group(pl).
+
+* 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-1d]
+- up to 1.3.3
+- changed user/group to http
+- added patch against GNU libc-2.1, 
+  prepared by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+- enabled all modules (without auth_db ....)
+- added magic (for mod_mime_magic)
+- rebuild spec file to minimize number of patches
+- suEXEC in separated package
+
+* Wed Oct 14 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+  [1.3.2-1d]
+- build against Tornado (GNU libc-2.1),
+- minor changes. 
+
+* Fri Sep 25 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
+  [1.3.2-1]
+- up to 1.3.2
+- reconfig to use /etc/mime.types (again)
+  orginal mime.types can be found in documentation directory
+- changed to user/group httpd
+- restore orginal start page
+- documentation in separate package
+- 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
@@ -184,11 +302,12 @@ fi
 - 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)
+  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,
This page took 0.064958 seconds and 4 git commands to generate.