Adding CentOS 6 target to Makefile.install.
authorChris Sharp <csharp@georgialibraries.org>
Thu, 12 Dec 2013 02:27:59 +0000 (21:27 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 27 Jan 2019 20:13:07 +0000 (15:13 -0500)
Adding EPEL (https://fedoraproject.org/wiki/EPEL) repo to
CentOS 6 allows us to install the same RPMs as come with
Fedora.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Conflicts:
src/extras/Makefile.install

src/extras/Makefile.install

index de87978..4faed1a 100644 (file)
@@ -21,6 +21,8 @@
 #   make -f Makefile.install ubuntu-bionic
 #      - or -
 #      make -f Makefile.install fedora
+#      - or -
+#      make -f Makefile.install centos
 #
 # ---------------------------------------------------------------------
 
@@ -32,6 +34,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 =  \
        autoconf\
@@ -88,7 +94,7 @@ DEBS =  \
        zip\
        zlib1g-dev
 
-FEDORAS = \
+RPMS = \
        autoconf \
        automake \
        check \
@@ -194,7 +200,8 @@ stretch: install_extra_debs install_extra_debs_stretch debian_sys_config
 jessie: install_extra_debs_jessie debian_sys_config
 generic_debian: install_debs
 
-fedora: install_fedora_rpms
+fedora: install_rpms
+centos: install_epel install_rpms
 
 ubuntu-trusty: generic_ubuntu trusty apache_mpm_prefork_mods
 ubuntu-xenial: generic_ubuntu xenial apache_mpm_prefork_mods apache_perl_mod
@@ -246,8 +253,4 @@ apache_mpm_prefork_mods:
 apache_perl_mod:
        a2enmod perl
 
-# Fedora
-install_fedora_rpms:
-       yum -y install $(FEDORAS)
-
 # vim:noet:sw=4:ts=4: