From 3076b656d12c8f93f859bfca55bd31ce351f3b37 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Wed, 11 Dec 2013 20:13:20 -0500 Subject: [PATCH] Adding a Makefile.install target for CentOS 6. Signed-off-by: Chris Sharp --- src/extras/Makefile.install | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/extras/Makefile.install b/src/extras/Makefile.install index 0d24677..0ead7b8 100644 --- a/src/extras/Makefile.install +++ b/src/extras/Makefile.install @@ -19,6 +19,8 @@ # make -f Makefile.install ubuntu-precise # - or - # make -f Makefile.install fedora +# - or - +# make -f Makefile.install centos # # --------------------------------------------------------------------- @@ -80,7 +82,7 @@ DEBS = \ tar\ zlib1g-dev -FEDORAS = \ +RPMS = \ autoconf \ automake \ check \ @@ -184,7 +186,8 @@ wheezy: install_extra_debs_wheezy squeeze: install_extra_debs_squeeze generic_debian: install_debs debian_sys_config -fedora: install_fedora_rpms +fedora: install_rpms +centos: install_epel install_rpms ubuntu-lucid: generic_ubuntu lucid ubuntu-precise: generic_ubuntu precise @@ -226,8 +229,15 @@ install_extra_debs_lucid: install_extra_debs_precise: $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_PRECISE) -# Fedora -install_fedora_rpms: - yum -y install $(FEDORAS) +# 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 + +# Fedora/CentOS +install_rpms: + yum -y install $(RPMS) # vim:noet:sw=4:ts=4: -- 2.11.0