Name: httpd Version: 2.0.58 Release: 1 License: Apache Software License Group: System Environment/Daemons Source: http://www.apache.org/dist/httpd/httpd-%version.tar.gz Source1: init.d_httpd URL: http://httpd.apache.org/ Distribution: Vrije Universiteit Software Packaging Vendor: Apache Software Foundation Packager: Berry van Halderen Summary: Apache HTTP Server # Prereq: openldap-devel, db3-devel, expat-devel, findutils, perl, pkgconfig # Requires: gawk, /usr/share/magic.mime, /usr/bin/find, openldap # Prereq: /sbin/chkconfig, /bin/mktemp, /bin/rm, /bin/mv # Prereq: sh-utils, textutils, /usr/sbin/useradd Icon: apache.xpm Provides: webserver, httpd-mmn, libapr.so.0, libaprutil.so.0 Conflicts: thttpd Obsoletes: apache, secureweb, mod_dav, httpd-manual %description Apache is a powerful, full-featured, efficient, and freely-available Web server. Apache is also the most popular Web server on the Internet. # %package devel # Group: Development/Libraries # Summary: Development tools for the Apache HTTP server. # Obsoletes: secureweb-devel, apache-devel # Requires: libtool, httpd= %{version} # %description devel # The httpd-devel package contains the APXS binary and other files that you # need to build Dynamic Shared Objects (DSOs) for Apache. # # If you are installing the Apache HTTP server and you want to be # able to compile or develop additional modules for Apache, you need # to install this package. # %package manual # The httpd-manual package contains the complete manual and reference # guide for the Apache HTTP server. The information can be found at # http://httpd.apache.org/docs/. %prep %setup cp $RPM_SOURCE_DIR/init.d_httpd $RPM_BUILD_DIR/httpd-%{version}/init.d_httpd %build ./configure --prefix=/usr \ --bindir=/usr/bin --sbindir=/usr/sbin \ --libexecdir=/usr/lib/httpd/modules --sysconfdir=/etc/httpd/conf \ --datadir=/var/www --mandir=/usr/share/man \ --includedir=/usr/include/httpd --oldincludedir=/usr/include/httpd make %install rm -rf /etc/httpd /var/www groupadd -f -g 48 apache ( useradd -M -u 48 -g apache -s /sbin/nologin -d /var/www -c Apache apache ;\ exit 0 ) 2>/dev/null if [ \! -d /etc/httpd ] ; then mkdir /etc/httpd ; fi make install cp init.d_httpd /etc/rc.d/init.d/httpd chown root:root /etc/rc.d/init.d/httpd chmod 755 /etc/rc.d/init.d/httpd ln -s ../../var/log/httpd /etc/httpd/logs ln -s ../../usr/lib/httpd/modules /etc/httpd/modules ln -s ../../var/run /etc/httpd/run mv /var/www/htdocs /var/www/html if [ \! -d /var/log/httpd ] ; then mkdir /var/log/httpd ; fi for f in man1/htdigest.1 man1/htpasswd.1 man1/dbmmanage.1 man8/ab.8 \ man8/apachectl.8 man8/apxs.8 man8/rotatelogs.8 man8/logresolve.8 \ man8/httpd.8 man8/suexec.8 do gzip -f /usr/share/man/$f done mv -f /usr/sbin/ab /usr/bin/ab mv -f /usr/sbin/htdigest /usr/bin/htdigest mv -f /usr/sbin/htdbm /usr/bin/htdbm mv -f /usr/sbin/logresolve /usr/bin/logresolve mv -f /usr/sbin/htpasswd /usr/bin/htpasswd ln -sf libaprutil-0.so.0 /usr/lib/libaprutil.so.0 ln -sf libaprutil.so.0 /usr/lib/libaprutil.so ln -sf libapr-0.so.0 /usr/lib/libapr.so.0 ln -sf libapr.so.0 /usr/lib/libapr.so # Make some changes to the httpd.conf file f1=`mktemp temp.XXXXXXXXXX` f2=`mktemp temp.XXXXXXXXXX` echo >$f1 "sed < /etc/httpd/conf/httpd.conf > $f2 \\" awk <> $f1 -F" " "{printf(\" -e 's#%s.*#%s#' \\\\\\n\",\$1,\$2);}" ^ServerRoot ServerRoot \\"/etc/httpd\\" ^PidFile PidFile run/httpd.pid ^User nobody User apache ^Group .-1 Group apache ^ServerAdmin ServerAdmin root@localhost ^DocumentRoot DocumentRoot \\"/var/www/html\\" ^.Directory ./var/www/htdocs \ ^TypesConfig TypesConfig /etc/mime.types END echo >>$f1 "" . $f1 cat < $f2 > /etc/httpd/conf/httpd.conf cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd-std.conf rm $f1 $f2 ldconfig %post ldconfig groupadd -f -g 48 apache /usr/sbin/useradd -M -u 48 -g apache -s /sbin/nologin -d /var/www -c "Apache" apache 2> /dev/null || : chkconfig --add httpd chkconfig httpd on %preun if [ $1 = 0 ]; then /sbin/service httpd stop > /dev/null 2>&1 || : fi /usr/sbin/apachectl stop || : chkconfig --del httpd %postun ldconfig %files /etc/rc.d/init.d/httpd /usr/bin/ab /usr/sbin/apxs /usr/bin/htdigest /usr/bin/htdbm /usr/sbin/httpd /usr/sbin/envvars-std /usr/bin/logresolve /usr/bin/htpasswd /usr/sbin/envvars /usr/sbin/rotatelogs /usr/sbin/checkgid /usr/bin/apu-config /usr/bin/apr-config /usr/sbin/apachectl /usr/sbin/dbmmanage /usr/lib/libapr-0.a /usr/lib/libapr-0.la /usr/lib/libapr.so /usr/lib/libapr.so.0 /usr/lib/libapr-0.so /usr/lib/libapr-0.so.0 /usr/lib/libapr-0.so.0.9.12 /usr/lib/aprutil.exp /usr/lib/libaprutil-0.a /usr/lib/libaprutil-0.la /usr/lib/libaprutil.so /usr/lib/libaprutil.so.0 /usr/lib/libaprutil-0.so /usr/lib/libaprutil-0.so.0 /usr/lib/libaprutil-0.so.0.9.12 /usr/lib/apr.exp /usr/share/man/man1/htdigest.1.gz /usr/share/man/man1/htpasswd.1.gz /usr/share/man/man1/dbmmanage.1.gz /usr/share/man/man8/ab.8.gz /usr/share/man/man8/apachectl.8.gz /usr/share/man/man8/apxs.8.gz /usr/share/man/man8/rotatelogs.8.gz /usr/share/man/man8/logresolve.8.gz /usr/share/man/man8/httpd.8.gz /usr/share/man/man8/suexec.8.gz %config /etc/httpd/conf/magic %config /etc/httpd/conf/highperformance.conf %config /etc/httpd/conf/httpd.conf %config /etc/httpd/conf/ssl.conf /var/log/httpd /etc/httpd/logs /etc/httpd/modules /etc/httpd/run /etc/httpd/conf/highperformance-std.conf /etc/httpd/conf/httpd-std.conf /etc/httpd/conf/ssl-std.conf %config /etc/httpd/conf/mime.types %config(noreplace) /var/www/error/README %config(noreplace) /var/www/error/*.var %config(noreplace) /var/www/error/include/*.html %config(noreplace) /var/www/icons /usr/lib/httpd/modules/httpd.exp %config(noreplace) /var/www/html /usr/include/httpd %config(noreplace) /var/www/cgi-bin /var/www/manual /var/www/build