Adding a Makefile.install target for CentOS 6.
authorChris Sharp <csharp@georgialibraries.org>
Thu, 12 Dec 2013 01:13:20 +0000 (20:13 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 12 Dec 2013 01:13:20 +0000 (20:13 -0500)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
src/extras/Makefile.install

index 0d24677..0ead7b8 100644 (file)
@@ -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: