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: 3 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: apache-1.3.9-ipv6-23081999.patch.gz Patch2: apache-htdocs.patch Patch3: apache-release.patch Patch4: 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. This version supports IPv6. %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ę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): Sieciowe/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łó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łówkowe dla serwera WWW Apache. %package doc 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. %prep %setup -q -n apache_%{version} -a3 %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build 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/cache/www/apache \ --with-perl=%{_bindir}/perl \ --enable-suexec \ --suexec-caller=http \ --suexec-uidmin=500 \ --suexec-gidmin=500 \ --enable-rule=INET6 \ --disable-rule=WANTHSREGEX make %install rm -rf $RPM_BUILD_ROOT make install-quiet root="$RPM_BUILD_ROOT" #mv $RPM_BUILD_ROOT%{_datadir}/htdocs $RPM_BUILD_ROOT%{_datadir}/html install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \ $RPM_BUILD_ROOT/var/log/httpd 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 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/* 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 gid=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 -M http if [ -f /var/db/passwd.db ]; then /usr/bin/update-db 1>&2 fi fi %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 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.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(4755,root,root) %{_sbindir}/suexec %files devel %defattr(644,root,root,755) %{_includedir} %files doc %defattr(644,root,root,755) %attr(-,root,root) %{_datadir}/html/manual