%define apache_vers 2.2.17 Summary: The most widely used Web server on the Internet. Name: httpd Version: %{apache_vers} Release: 2 Group: System Environment/Daemons Source0: ftp://ftp.apache.org/apache/dist/%{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-aixconf.patch URL: http://www.apache.org License: Apache BuildRoot: /var/tmp/httpd-%{apache_vers}-root Provides: webserver Prefix: %{_prefix} %define DEFCC cc %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 Web server. Version: %{apache_vers} Obsoletes: secureweb-devel %description devel The apache-devel package contains the APXS binary. If you are installing the Apache Web server, and you want to compile or develop additional modules for Apache, you'll need to install this package. %package manual Group: Documentation Summary: Documentation for the Apache Web server. Version: %{apache_vers} %description manual The apache-manual package contains the complete manual and reference guide for the Apache Web server. The information can also be found on the Web at http://www.apache.org/docs/. %prep %setup -q %patch0 -p1 -b .aixconf %build # Seems to help build faster, using bash export CONFIG_SHELL=/opt/freeware/bin/bash export CONFIGURE_ENV_ARGS=/opt/freeware/bin/bash # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} export OPTIM="-O2" else export CC=gcc export OPTIM=$RPM_OPT_FLAGS fi fi cd $RPM_BUILD_DIR/httpd-%{apache_vers} OPTIM="$OPTIM" \ ./configure \ --with-included-apr --prefix=%{prefix}/apache \ --enable-mods-shared=all --enable-proxy cd $RPM_BUILD_DIR/httpd-%{apache_vers} if [[ "$CC" = "gcc" ]] then make EXTRA_LDFLAGS="-L$(dirname $($CC -print-libgcc-file-name)) -lgcc" \ LIBS_SHLIB="-L$(dirname $($CC -print-libgcc-file-name)) -lgcc" else make fi %install # Seems to help build faster, using bash export CONFIG_SHELL=/opt/freeware/bin/bash export CONFIGURE_ENV_ARGS=/opt/freeware/bin/bash cd $RPM_BUILD_DIR/httpd-%{apache_vers} rm -rf $RPM_BUILD_ROOT # XXX - hack [[ ! -d /opt/freeware/apache/lib ]] && mkdir -p /opt/freeware/apache/lib [[ ! -f /opt/freeware/apache/lib/libapr-1.so ]] && \ cp ./srclib/apr/.libs/libapr-1.so %{prefix}/apache/lib/libapr-1.so make LIBPATH="$RPM_BUILD_ROOT/opt/freeware/apache/lib:/opt/freeware/lib" DESTDIR=$RPM_BUILD_ROOT root=$RPM_BUILD_ROOT install /usr/bin/strip $RPM_BUILD_ROOT/%{prefix}/apache/bin/* || : # Link files in /usr/bin (cd $RPM_BUILD_ROOT mkdir -p usr/bin cd usr/bin ln -sf ../..%{prefix}/apache/bin/* . cd - ) # Link files in /usr/include ( cd /usr/include [ ! -d %{prefix}/apache/include ] && mkdir -p %{prefix}/apache/include for file in $(find %{prefix}/apache/include) do ln -sf $file . done # conflict when installing apr module [ -e $RPM_BUILD_ROOT/usr/bin/apr-1-config ] \ && rm -f $RPM_BUILD_ROOT/usr/bin/apr-1-config [ -e $RPM_BUILD_ROOT/usr/bin/apu-1-config ] \ && rm -f $RPM_BUILD_ROOT/usr/bin/apu-1-config ) %clean rm -rf $RPM_BUILD_ROOT %preun if [ $1 = 0 ]; then %{prefix}/apache/sbin/apachectl stop > /dev/null 2>&1 fi exit 0 # force exit; apache may not have been running %files %defattr(-,root,system) %doc LICENSE ABOUT_APACHE README NOTICE VERSIONING %config /%{prefix}/apache/conf/httpd.conf %config /%{prefix}/apache/conf/magic %config /%{prefix}/apache/conf/mime.types %dir %{prefix}/apache/conf %dir %{prefix}/apache/logs %dir %{prefix}/apache/lib %dir %{prefix}/apache %dir %{prefix}/apache/cgi-bin %{prefix}/apache/cgi-bin/* %dir %{prefix}/apache/build %{prefix}/apache/build/* %dir %{prefix}/apache/modules %{prefix}/apache/modules/* %{prefix}/apache/lib/* %dir %{prefix}/apache/man %dir %{prefix}/apache/man/man1 %dir %{prefix}/apache/man/man8 %{prefix}/apache/man/man1/* %{prefix}/apache/man/man8/* %dir %{prefix}/apache/bin %{prefix}/apache/bin/* /usr/bin/* %files manual %defattr(-,root,system) %doc LICENSE %{prefix}/apache/htdocs %files devel %defattr(-,root,system) %doc LICENSE %dir %{prefix}/apache/include %{prefix}/apache/include/* %dir %{prefix}/apache/man %dir %{prefix}/apache/man/man8 %changelog * Wed Jun 29 2011 Gerard Visiedo 2.2.17-2 - conflit installation with apr-util-devel module * Thu Mar 3 2011 Gerard Visiedo 2.2.17-0 - Update to 2.2.17 * Fri Sep 26 2008 Jean-Noel Cordenner (jean-noel.cordenner@bull.net) 2.2.9-1 - Update to 2.2.9 * Thu Oct 11 2007 Christophe BELLE (christophe.belle@bull.net) 2.2.4-1 - Version for AIX 52S - Update to 2.2.4 - Release 1 * Thu Feb 9 2006 Reza Arbab 1.3.31-2 - Rebuild ssl version to use OpenSSL 0.9.7g. * Thu Jul 22 2004 David Clissold 1.3.31-1 - Rebuild ssl version to use OpenSSL 0.9.7d. * Thu Jul 22 2004 David Clissold - Update to 1.3.31, (and mod_ssl 2.8.19). * Wed Oct 29 2003 David Clissold - Update to 1.3.29. * Fri Mar 21 2003 David Clissold - Update mod_ssl to 2.8.14; add OPENSSL_free patch. * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Mon Oct 07 2002 David Clissold - Update mod_ssl to 2.8.11 * Thu Oct 03 2002 David Clissold - Update to 1.3.27 * Tue Oct 01 2002 David Clissold - Make openssl version a variable; that is, --with-ssl=../openssl-%{ssl_vers} - Only affects the mod_ssl binary package. * Wed Jun 19 2002 David Clissold - Update to Apache 1.3.26 and mod_ssl 2.8.9. - Includes a patch for a security exposure, just announced by Apache. * Mon Mar 04 2002 David Clissold - Add patch for an announced mod_ssl security exposure. - Does not affect apache itself, just the mod_ssl module. - So I am incrementing the version, but will only upload mod_ssl. - (Meaning, apache-1.3.22-2 is no change and will not see the light of day) * Wed Oct 17 2001 David Clissold - Update to Apache 1.3.22. * Fri Sep 21 2001 Marc Stephenson - Fix to build correctly with gcc * Wed Aug 01 2001 David Clissold - File list was missing httpd.exp. * Mon Jul 23 2001 David Clissold - Update to Apache 1.3.20; add SSL support and mod_ssl pkg - Source package is different whether SSL is defined or not; - the next line tells our packaging this; do not remove it! - SOURCE EXPORT RESTRICTED * Sun Mar 25 2001 David Clissold - needed to add configure option to build shared so's * Mon Mar 19 2001 David Clissold - adapt this spec file for AIX with Apache 1.3.19 * Wed Mar 01 2000 Nalin Dahyabhai - make suexec limit UIDs and GIDs to < 51 instead of 100 * Fri Feb 25 2000 Nalin Dahyabhai - update to 1.3.12 - add EAPI patch * Thu Feb 17 2000 Preston Brown - ifmodule directive for php stuff. - load mod_perl before mod_php (#8169) * Tue Feb 14 2000 Zach Brown - minor fix to phhttpd patch * Thu Feb 10 2000 Preston Brown - improved default index.html. * Thu Feb 03 2000 Preston Brown - strip dynamically loadable modules. * Mon Feb 02 2000 Zach Brown - add phhttpd 'Tunnel' directive and code to use it * Mon Jan 31 2000 Cristian Gafton - rebuild to fix depenencies * Tue Jan 25 2000 Bernhard Rosenkraenzer - 1.3.11 - deal with the fact that RPM now gzips man pages * Wed Jan 12 2000 Preston Brown - new poweredby.png w/new logo - apxs.8 man page moved to devel archive (#6661) - don't remove old logfiles on package de-install (#8268) - more updates to logrotate to avoid spurious cron mail (#8110) * Mon Jan 10 2000 Preston Brown - mod_throttle added; mod_bandwidth updated. * Mon Dec 17 1999 Dale Lovelace - Add configuration for mod_put to httpd.conf * Mon Dec 06 1999 Preston Brown - documentation cleanups in httpd.conf (#5357, #6655) - fixed logrotate script to ignore error if no apache running (#7074) * Wed Nov 10 1999 Jeff Johnson - add put module. * Thu Nov 04 1999 Preston Brown - make suexec non-suid. People can enable it if they wish themselves. - somehow the unified httpd.conf got trashed. fixed. - manual is now a subpackage - point to /usr/share/magic as the magic file location; don't use the apache-specific one. - fix apxs module installation issues (#5650) * Tue Sep 21 1999 Bill Nottingham - move DSO in httpd.conf to after ServerRoot * Mon Sep 20 1999 Preston Brown - it is httpd stop, not httpsd stop (# 5254) - suexec added (# 5257) * Thu Sep 09 1999 Preston Brown - remove apachectl man page (# 4459) * Fri Aug 27 1999 Preston Brown - upgraded to 1.3.9 - fix bug # 3680 (suexec docroot was wrong) - fix bug # 2378 (logrotate with -USR1 not -HUP) - fix bug # 3548 (logrotate complains if apache not running) - httpd.conf is now in the unified apache format as distributed * Mon Aug 16 1999 Bill Nottingham - initscript munging * Sat May 21 1999 Bill Nottingham - fix broken link in index.html * Wed Apr 07 1999 Bill Nottingham - allow indexes in /doc * Tue Apr 06 1999 Preston Brown - strip binaries * Mon Apr 05 1999 Preston Brown - prerequire /bin/rm, added /doc path pointing to /usr/doc for localhost * Fri Mar 26 1999 Preston Brown - updated log rotating scripts to not complain if logs aren't present. * Thu Mar 25 1999 Preston Brown - fixed up path to perl * Wed Mar 24 1999 Preston Brown - updated init script to conform to new standards - upgraded to 1.3.6, fixed apxs patch * Mon Mar 22 1999 Preston Brown - clean up logfiles on deinstallation * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) * Fri Mar 12 1999 Cristian Gafton - added mod_bandwidth - updated to 1.3.4 - prereq mailcap * Fri Dec 18 1998 Cristian Gafton - added patch to disable building support for ndbm - build against glibc 2.1 * Mon Oct 12 1998 Cristian Gafton - updated to 1.3.3 to catch up with bug fixes - added the /usr/bin/* binaries to the spec file list * Fri Sep 25 1998 Cristian Gafton - change ownership of cache dir to nobody - added "Red Hat" to the server string - updated to version 1.3.2 - fixed all references to httpsd in config files * Fri Sep 04 1998 Cristian Gafton - small fixes to the spec file - patch to handle correctly the -d option - leave out the .usr.src.apache_%{version} for now * Thu Sep 03 1998 Preston Brown - patched apxs not to bomb out if it can't find httpd * Wed Sep 02 1998 Preston Brown - upgraded to apache 1.3.1. - Heavy rewrite. - changed providing a_web_server to just webserver. Humor is not an option. * Mon Aug 10 1998 Erik Troan - updated to build as non-root user - added patch to defeat header dos attack * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Wed May 06 1998 Cristian Gafton - fixed the default config files to be more paranoid about security * Sat May 02 1998 Cristian Gafton - fixed init script - added index.htm to the list of acceptable indexes * Sat May 02 1998 Cristian Gafton - updated to 1.2.6 - added post script to install htm extension for text/html into /etc/mime.types * Wed Apr 22 1998 Michael K. Johnson - enhanced sysv init script * Tue Jan 06 1998 Erik Troan - updated to 1.2.5, which includes many security fixes * Wed Dec 31 1997 Otto Hammersmith - fixed overkill on http.init stop * Wed Dec 31 1997 Erik Troan - added patch for backslash DOS attach * Thu Nov 06 1997 Donnie Barnes - added htdigest binary to file list * Mon Nov 03 1997 Donnie Barnes - made the default index.html be config(noreplace) so we no longer blow away other folks' index.html * Wed Oct 29 1997 Donnie Barnes - added chkconfig support - added restart|status options to initscript - renamed httpd.init to httpd * Tue Oct 07 1997 Elliot Lee - Redid spec file, patches, etc. from scratch.