From 8e78a897209b11d4ca36eb9975880d43fea1172d Mon Sep 17 00:00:00 2001 From: kloczek Date: Thu, 3 Sep 1998 07:46:39 +0000 Subject: [PATCH] =?utf8?q?-=20removed=20/home/httpd/icons/README=20-=20add?= =?utf8?q?ed=20devel=20subpackage,=20-=20added=20pl=20translation=20(Wojte?= =?utf8?q?k=20=C5=9Alusarczyk=20),=20-=20removed=20S?= =?utf8?q?erial:=20filed,=20-=20removed=20Packager:=20field=20(this=20must?= =?utf8?q?=20be=20placed=20in=20private=20~/.rpmrc),=20-=20simplification?= =?utf8?q?=20in=20%files=20and=20%install,=20-=20/home/httpd/html/manual?= =?utf8?q?=20is=20now=20marked=20as=20%doc,=20-=20added=20/etc/rc.d/rc*.d/?= =?utf8?q?*=20symlinks=20as=20a=20%config(missingok),=20-=20changed=20perm?= =?utf8?q?idssion=20on=20logrotate=20config=20file=20to=20600,=20-=20chang?= =?utf8?q?ed=20permidssion=20on=20/var/log/httpd=20to=20700,=20-=20added?= =?utf8?q?=20%ghost=20/var/log/httpd/*=20-=20added=20striping=20modules.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Changed files: apache.spec -> 1.1 --- apache.spec | 263 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 apache.spec diff --git a/apache.spec b/apache.spec new file mode 100644 index 0000000..bf281ff --- /dev/null +++ b/apache.spec @@ -0,0 +1,263 @@ +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 + +%description +Apache is a full featured web server that is freely available, and also +happens to be the most widely used. + +%description -l de +Apache ist ein voll funktionsfähiger Web-Server, der kostenlos +erhältlich und weit verbreitet ist. + +%description -l fr +Apache est un serveur Web complet, disponible librement, et se trouve être +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. + +%description -l tr +Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur. + +%package devel +Summary: Apache include files +Summary(pl): Pliki nag³owkowe do serwera www Apache +Group: Networking/Development +Requires: %{name} = %{version} + +%description devel +Apache include files. + +%description -l pl devel +Pliki nag³owkowe do serwera www Apache. + +%prep +%setup -q -n apache_%{version} + +%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 \ + --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 + +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} +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} + +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 $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 + +# Only needed for from_cvs tarballs, but doesn't hurt otherwise +rm -f $RPM_BUILD_ROOT/home/httpd/html/manual/expand.pl + +strip --strip-debug $RPM_BUILD_ROOT/usr/libexec/apache/*.so + +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 + +touch $RPM_BUILD_ROOT/var/log/httpd/{access,error}_log + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add httpd + +%preun +if [ $1 = 0 ]; then + if [ -f /var/lock/subsys/httpd ]; then + /etc/rc.d/init.d/httpd stop + 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 +%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 +/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/* + +%files devel +%attr(644, root, root, 755) /usr/include/apache + +%changelog +* Thu Sep 3 1998 Tomasz K³oczko + [1.3.1-2] +- removed /home/httpd/icons/README +- added devel subpackage, +- added pl translation (Wojtek ¦lusarczyk ), +- 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. + +* Sat Jul 18 1998 Manoj Kasichainula + [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 + [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 + [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 + [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 + +- Upgraded to 1.3b5 +- Buildable by non-root + +* Fri Jan 2 1998 Manoj Kasichainula + +- 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 +- Upgraded to 1.3b2 +- MaxRequestsPerChild upped to 10000 +- apache-suexec absorbed into apache +- Uncommented Serial: line. Now, it requires a recent version of RPM -- 2.44.0