#variables SRC_DIR=/data/src SVN_DIR=/data/svn export APXS=/usr/local/apache2/bin/apxs # goto src directory cd $SRC_DIR cd httpd-2.4.33 # wget http://patch-tracker.debian.org/patch/series/dl/apache2/2.4.7-1/suexec-CVE-2007-1742.patch #wget http://patch-tracker.debian.org/patch/series/dl/apache2/2.2.22-1/067_fix_segfault_in_ab #wget http://patch-tracker.debian.org/patch/series/dl/apache2/2.2.22-1/073_mod_dav_trunk_fixes # patch -p 1 -i suexec-CVE-2007-1742.patch #patch -p 1 -i 067_fix_segfault_in_ab #patch -p 1 -i 073_mod_dav_trunk_fixes export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" # ./configure --prefix=/usr/local/apache2 \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu \ --with-apr=/usr/bin/apr-1-config \ --with-apr-util=/usr/bin/apu-1-config \ --with-ssl=/usr/local/ssl \ --sysconfdir=/usr/local/apache2/conf \ --with-mpm=event \ --enable-mpms-shared=all \ --enable-modules=all \ --enable-mods-shared=all \ --enable-authn-file \ --enable-authn-dbm \ --enable-authn-anon \ --enable-authn-dbd \ --enable-authn-socache \ --enable-authn-core \ --enable-authz-host \ --enable-authz-groupfile \ --enable-authz-user \ --enable-authz-dbm \ --enable-authz-owner \ --enable-authz-dbd \ --enable-authz-core \ --enable-authnz-ldap \ --enable-access-compat \ --enable-auth-basic \ --enable-auth-form \ --enable-auth-digest \ --enable-allowmethods \ --enable-isapi \ --enable-file-cache \ --enable-cache \ --enable-cache-disk \ --enable-socache-shmcb \ --enable-socache-dbm \ --enable-socache-memcache \ --enable-so \ --enable-watchdog \ --enable-dbd \ --enable-bucketeer \ --enable-dumpio \ --enable-echo \ --enable-case-filter \ --enable-case-filter-in \ --enable-buffer \ --enable-data \ --enable-ratelimit \ --enable-cern-meta \ --enable-expires \ --enable-ident \ --enable-usertrack \ --enable-unique-id \ --enable-proxy \ --enable-proxy-connect \ --enable-proxy-ftp \ --enable-proxy-http \ --enable-proxy-fcgi \ --enable-proxy-scgi \ --enable-proxy-fdpass \ --enable-proxy-ajp \ --enable-proxy-balancer \ --enable-proxy-express \ --enable-session \ --enable-session-cookie \ --enable-session-dbd \ --enable-slotmem-shm \ --enable-slotmem-plain \ --enable-ssl \ --enable-optional-hook-export \ --enable-optional-hook-import \ --enable-optional-fn-import \ --enable-optional-fn-export \ --enable-lbmethod-byrequests \ --enable-lbmethod-bytraffic \ --enable-lbmethod-bybusyness \ --enable-lbmethod-heartbeat \ --enable-heartbeat \ --enable-heartmonitor \ --enable-dav \ --enable-info \ --enable-suexec \ --enable-cgid \ --enable-cgi \ --enable-dav-fs \ --enable-dav-lock \ --enable-vhost-alias \ --enable-negotiation \ --enable-imagemap \ --enable-actions \ --enable-speling \ --enable-userdir \ --enable-alias \ --enable-rewrite \ --enable-ldap make make DESTDIR=/data/build/apache2.4 install cd $SRC_DIR cd mod_fcgid-2.3.9 make clean ./configure.apxs --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make make DESTDIR=/data/build/apache2.4 install strip -R .note -R .comment /data/build/apache2.4/usr/local/apache2/bin/* strip -R .note -R .comment /data/build/apache2.4/usr/local/apache2/modules/* rm /data/build/apache2.4/usr/local/apache2/bin/envvars* #-------------- # copy to svn #-------------- cd $SVN_DIR/trunk/web/apache2/eisfair-${EISFAIR_VER}-bin cp /data/build/apache2.4/usr/local/apache2/bin/* usr/local/apache2/bin/ cp /data/build/apache2.4/usr/local/apache2/modules/* usr/local/apache2/modules/