Add Index Data repo for YAZ installation.
authorChris Sharp <csharp@georgialibraries.org>
Mon, 28 Jan 2019 02:44:41 +0000 (21:44 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 28 Jan 2019 02:44:41 +0000 (21:44 -0500)
Open-ILS/src/extras/install/Makefile.centos

index 099bebe..52d8260 100644 (file)
@@ -1,4 +1,4 @@
-# install files for Fedora
+# install files for CentOS 7
 
 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
 
@@ -63,8 +63,7 @@ CENTOS_RPMS = \
        postgresql-devel \
        readline-devel \
        tcp_wrappers-devel \
-       wget \
-       yaz
+       wget 
 
 export CPAN_MODULES = \
        Business::ISSN \
@@ -112,7 +111,7 @@ TRANSLATOR_RPMS = \
     python-lxml \
     bzr
 
-all: install_centos_rpms
+all: install_centos_rpms install_yaz_rpm
        make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
        make -f $(DIR)/Makefile.common install_cpan
        make -f $(DIR)/Makefile.common install_cpan_force
@@ -134,6 +133,12 @@ install_translator: install_developer
 install_packager: install_developer install_translator
        yum -y install $(PACKAGER_RPMS)
 
+install_yaz_rpm:
+       rpm --import http://ftp.indexdata.com/pub/yum/centos/7/RPM-GPG-KEY-indexdata
+       wget http://ftp.indexdata.com/pub/yum/centos/7/indexdata.repo -P /etc/yum.repos.d/
+       yum -y update
+       yum -y install yaz
+
 clean:
        make -f $(DIR)/Makefile.common clean