From 541e84a47fa6bcf898f3f5be6521c4256e19134e Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Wed, 11 Dec 2013 20:37:28 -0500 Subject: [PATCH] Correcting the syntax of the install_epel target. Signed-off-by: Chris Sharp --- src/extras/Makefile.install | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/extras/Makefile.install b/src/extras/Makefile.install index 98de81e..d20fabb 100644 --- a/src/extras/Makefile.install +++ b/src/extras/Makefile.install @@ -32,6 +32,10 @@ LBITS=$(shell getconf LONG_BIT) APT_TOOL=apt-get -yq +# CentOS needs the EPEL repository +EPEL_HOST=http://dl.fedoraproject.org/pub/epel/6/x86_64 +EPEL_PKG=epel-release-6-8.noarch.rpm + # Debian dependencies DEBS = \ apache2-mpm-prefork\ @@ -231,10 +235,11 @@ install_extra_debs_precise: # CentOS install_epel: - if [ "$$(uname -r | grep el6)" ]; then \ - wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm; - rpm -Uvh epel-release-6-8.noarch.rpm; - fi + if [ -n "$(uname -r | grep el6)" ]; then \ + wget $(EPEL_HOST)/$(EPEL_PKG) ; \ + rpm -Uvh $(EPEL_PKG) ;\ + fi; + yum update -y # Fedora/CentOS install_rpms: -- 2.11.0