Last active
July 3, 2018 20:32
-
-
Save gboddin/58547b5427d893acb56e25d2d7288906 to your computer and use it in GitHub Desktop.
centos-httpd-2.4.x RPM gen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APACHE_VERSION=2.4.23 | |
DISTCACHE_VERSION=1.4.5-23 | |
APR_VERSION=1.5.2 | |
APR_UTIL_VERSION=1.5.4 | |
echo Downloading deps : | |
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
yum install tar expat-devel freetds-devel db4-devel rpm-build postgresql-devel mysql-devel sqlite-devel wget unixODBC-devel nss-devel doxygen automake libtool autoconf zlib-devel libselinux-devel libuuid-devel pcre-devel openldap-devel lua-devel libxml2-devel openssl-devel -y | |
wget -c https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/18/Fedora/source/SRPMS/d/distcache-${DISTCACHE_VERSION}.src.rpm | |
wget -c http://www.apache.si/apr/apr-${APR_VERSION}.tar.bz2 | |
wget -c http://www.apache.si/apr/apr-util-${APR_UTIL_VERSION}.tar.bz2 | |
rpmbuild --rebuild distcache-${DISTCACHE_VERSION}.src.rpm | |
rpm -Uvh /root/rpmbuild/RPMS/x86_64/distcache*-${DISTCACHE_VERSION}.x86_64.rpm | |
rpmbuild -tb apr-${APR_VERSION}.tar.bz2 | |
rpm -Uvh /root/rpmbuild/RPMS/x86_64/apr*-${APR_VERSION}*.x86_64.rpm | |
rpmbuild -tb apr-util-${APR_UTIL_VERSION}.tar.bz2 | |
rpm -Uvh /root/rpmbuild/RPMS/x86_64/apr-util*-${APR_UTIL_VERSION}*.x86_64.rpm | |
wget -c "https://www.apache.org/dist/httpd/httpd-${APACHE_VERSION}.tar.bz2" -O rpmbuild/SOURCES/httpd-${APACHE_VERSION}.tar.bz2 | |
rpmbuild -tp rpmbuild/SOURCES/httpd-${APACHE_VERSION}.tar.bz2 | |
# Fix apache build issue ( missing fdpass, hcheck too much ) | |
sed -i 's/proxy_fdpass/proxy_hcheck/g' /root/rpmbuild/BUILD/httpd-${APACHE_VERSION}/httpd.spec | |
rpmbuild -bb rpmbuild/BUILD/httpd-${APACHE_VERSION}/httpd.spec | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment