Name: httpd-local Version: 2.0.58 Release: 1 Copyright: Apache Software License Group: System Environment/Daemons Source: http://www.apache.org/dist/httpd/httpd-%version.tar.gz URL: http://httpd.apache.org/ Distribution: Vrije Universiteit Software Packaging Vendor: Vrije Universiteit, the Netherlands Packager: Berry van Halderen Summary: Apache HTTP Server Icon: apache.xpm Provides: webserver Prefix: /usr/local/globule %description Apache is a powerful, full-featured, efficient, and freely-available Web server. Apache is also the most popular Web server on the Internet. %prep %setup -n httpd-%{version} %build ./configure --prefix /usr/local/globule --with-port=8080 make %install make install %post if [ -z "$RPM_INSTALL_PREFIX" -o "$RPM_INSTALL_PREFIX" = "/" ] ; then RPM_INSTALL_PREFIX=/usr/local/globule fi path=`echo $RPM_INSTALL_PREFIX | sed -e 's/\//\\\\\//g'` cat < /etc/rc.d/init.d/httpd-local #!/bin/bash # # Startup script for the alternate Apache Web Server # # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: httpd # pidfile: /usr/local/globule/log/httpd.pid # config: /usr/local/globule/conf/httpd.conf INITLOG_ARGS=\"\" case "\$1" in start) echo -n \$"Starting httpd: " /usr/local/globule/bin/apachectl start RETVAL=\$? echo ;; stop) echo -n \$"Stopping httpd: " /usr/local/globule/bin/apachectl stop RETVAL=\$? echo ;; reload) echo -n \$"Reloading httpd: " pid=\`cat /usr/local/globule/log/httpd.pid\` if [ -n "\$pid" ]; then kill -HUP \$pid fi RETVAL=0 ;; restart) echo -n \$"Reloading httpd: " /usr/local/globule/bin/apachectl stop /usr/local/globule/bin/apachectl start RETVAL=\$? ;; # condrestart graceful|help|configtest|fullstatus) /usr/local/globule/bin/apachectl \$@ RETVAL=\$? ;; *) echo \$"Usage: \`basename \$0\` {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}" exit 1 ;; esac exit \$RETVAL END chown root:root /etc/rc.d/init.d/httpd-local chmod 755 /etc/rc.d/init.d/httpd-local chkconfig --add httpd-local chkconfig httpd-local on %preun /etc/rc.d/init.d/httpd-local stop 2> /dev/null > /dev/null || : %postun rm -f /etc/rc.d/init.d/httpd-local chkconfig --del httpd-local %files /usr/local/globule/bin /usr/local/globule/lib %doc /usr/local/globule/man %config /usr/local/globule/conf/magic /usr/local/globule/conf/highperformance.conf %config /usr/local/globule/conf/httpd.conf %config /usr/local/globule/conf/ssl.conf /usr/local/globule/conf/httpd-std.conf %config /usr/local/globule/conf/ssl-std.conf /usr/local/globule/conf/highperformance-std.conf %config /usr/local/globule/conf/mime.types /usr/local/globule/build %config(noreplace) /usr/local/globule/error/README %config(noreplace) /usr/local/globule/error/*.var %config(noreplace) /usr/local/globule/error/include/*.html %config(noreplace) /usr/local/globule/icons/* %dir /usr/local/globule/logs /usr/local/globule/modules %config(noreplace) /usr/local/globule/htdocs/* /usr/local/globule/manual /usr/local/globule/include %config(noreplace) /usr/local/globule/cgi-bin/*