LP#1880703 - Add RHEL/CentOS 8 Support
authorChris Sharp <csharp@georgialibraries.org>
Wed, 27 May 2020 16:35:06 +0000 (12:35 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 27 May 2020 16:35:06 +0000 (12:35 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/extras/Makefile.install
Open-ILS/src/extras/install/Makefile.centos [new file with mode: 0644]
Open-ILS/src/extras/install/Makefile.common
Open-ILS/src/extras/install/Makefile.rhel [new file with mode: 0644]

index 3454450..89ad8b1 100644 (file)
 #      - or -
 #      make -f Makefile.install ubuntu-bionic
 #      - or -
+#      make -f Makefile.install rhel
+#      - or -
+#      make -f Makefile.install centos
+#      - or -
 #      make -f Makefile.install fedora
-#
 # ---------------------------------------------------------------------
 
 # variables shared by all installers
@@ -76,6 +79,10 @@ ubuntu-xenial:
        @make -f $(DIR)/Makefile.ubuntu-xenial
 fedora:
        @make -f $(DIR)/Makefile.fedora
+rhel:
+       @make -f $(DIR)/Makefile.rhel
+centos:
+       @make -f $(DIR)/Makefile.centos
 
 postgres-server-debian-buster:
        @make -f $(DIR)/Makefile.debian-buster install_postgres_server
@@ -99,6 +106,10 @@ postgres-server-ubuntu-xenial-10:
        @make -f $(DIR)/Makefile.ubuntu-xenial install_postgres_server_10
 postgres-server-fedora:
        @make -f $(DIR)/Makefile.fedora install_postgres_server
+postgres-server-rhel:
+       @make -f $(DIR)/Makefile.rhel install_postgres_server
+postgres-server-centos:
+       @make -f $(DIR)/Makefile.centos install_postgres_server
 
 ubuntu-bionic-developer:
        @make -f $(DIR)/Makefile.ubuntu-bionic install_developer
@@ -110,6 +121,10 @@ debian-stretch-developer:
        @make -f $(DIR)/Makefile.debian-stretch install_developer
 debian-jessie-developer:
        @make -f $(DIR)/Makefile.debian-jessie install_developer
+centos-developer:
+       @make -f $(DIR)/Makefile.centos install_developer
+rhel-developer:
+       @make -f $(DIR)/Makefile.rhel install_developer
 
 ubuntu-bionic-translator:
        @make -f $(DIR)/Makefile.ubuntu-bionic install_translator
diff --git a/Open-ILS/src/extras/install/Makefile.centos b/Open-ILS/src/extras/install/Makefile.centos
new file mode 100644 (file)
index 0000000..dbe83b0
--- /dev/null
@@ -0,0 +1,117 @@
+# install files for CentOS
+
+DIR = $(dir $(lastword $(MAKEFILE_LIST)))
+
+PGSQL_COMMON_RPMS = \
+       perl-UUID-Tiny \
+       perl-XML-LibXML \
+       perl-XML-LibXSLT
+
+RPMS = \
+       $(PGSQL_COMMON_RPMS) \
+       aspell \
+       aspell-en \
+       bzip2-devel \
+       libdbi \
+       libdbi-dbd-pgsql \
+       libdbi-devel \
+       libssh2-devel \
+       libpq \
+       libpq-devel \
+       libyaz \
+       libyaz-devel \
+       mod_ssl \
+       ncurses-devel \
+       ncurses-libs \
+       nspr-devel \
+       pcre-static \
+       perl-parent \
+       perl-Date-Manip \
+       perl-DBD-Pg \
+       perl-Email-Simple \
+       perl-Email-MIME \
+       perl-GDGraph3d \
+       perl-Locale-Codes \
+       perl-Locale-Maketext-Lexicon \
+       perl-Module-Pluggable \
+       perl-Net-IP \
+       perl-OLE-Storage_Lite \
+       perl-Parse-RecDescent \
+       perl-SOAP-Lite \
+       perl-Test-Output \
+       perl-Text-CSV \
+       perl-Text-CSV_XS \
+       perl-XML-Writer \
+       postgresql-devel \
+       yaz
+
+export CPAN_MODULES = \
+       Business::CreditCard \
+       Business::ISBN::Data \
+       Crypt::SSLeay \
+       Email::Send \
+       HTML::Defang \
+       MARC::Charset \
+       Net::SSH2 \
+       RPC::XML \
+       Text::Aspell \
+       Excel::Writer::XLSX \
+       Business::ISSN \
+       Net::Z3950::ZOOM \
+       Net::Z3950::Simple2ZOOM \
+       Net::Z3950::SimpleServer \
+       Template::Plugin::POSIX \
+       SRU \
+       Rose::URI
+
+export CPAN_MODULES_PGSQL = \
+       Business::ISBN \
+       Library::CallNumber::LC \
+       MARC::Record \
+       MARC::XML
+
+export CPAN_MODULES_FORCE = \
+       Business::Stripe \
+       Class::DBI::Frozen::301 \
+       Business::OnlinePayment \
+       Business::OnlinePayment::AuthorizeNet \
+       Business::OnlinePayment::PayflowPro \
+       Business::OnlinePayment::PayPal
+
+PGSQL_RPMS = \
+       $(PGSQL_COMMON_RPMS) \
+       postgresql \
+       postgresql-contrib \
+       postgresql-libs \
+       postgresql-plperl \
+       postgresql-server
+
+DEVELOPER_RPMS = \
+       autoconf \
+       automake \
+       chromium-headless \
+       firefox
+
+all:
+       make -f $(DIR)/Makefile.common install_indexdata_centos_repo
+       install_rpms
+       make -f $(DIR)/Makefile.common install_cpan
+       make -f $(DIR)/Makefile.common install_cpan_force
+       make -f $(DIR)/Makefile.common install_cpan_pgsql
+
+install_postgres_server:
+       yum -y install $(PGSQL_RPMS)
+       make -f $(DIR)/Makefile.common install_cpan_pgsql
+
+install_rpms:
+       yum -y update
+       yum -y install $(RPMS)
+
+install_developer:
+       yum -y install $(DEVELOPER_RPMS)
+       make -f $(DIR)/Makefile.common install_nodejs_from_source
+
+clean:
+       make -f $(DIR)/Makefile.common clean
+
+# vim:noet:sw=4:ts=4:
index 2c4246c..636d290 100644 (file)
@@ -12,6 +12,10 @@ install_cpan_force:
 install_cpan_pgsql:
        for m in $(CPAN_MODULES_PGSQL); do perl -MCPAN -e "install \"$$m\";"; done
 
+install_indexdata_centos_repo:
+       rpm --import http://ftp.indexdata.com/pub/yum/centos/8/RPM-GPG-KEY-indexdata
+       wget http://ftp.indexdata.com/pub/yum/centos/8/indexdata.repo -P /etc/yum.repos.d/
+
 install_net_z3950_simpleserver:
        if [ ! -f $(LIBNET_Z3950_SIMPLESERVER).tar.gz ]; \
                then wget $(LIBNET_Z3950_SIMPLESERVER_URL).tar.gz; \
diff --git a/Open-ILS/src/extras/install/Makefile.rhel b/Open-ILS/src/extras/install/Makefile.rhel
new file mode 100644 (file)
index 0000000..6866fd0
--- /dev/null
@@ -0,0 +1,108 @@
+# install files for RHEL
+
+DIR = $(dir $(lastword $(MAKEFILE_LIST)))
+
+PGSQL_COMMON_RPMS = \
+       perl-UUID-Tiny \
+       perl-XML-LibXML \
+       perl-XML-LibXSLT
+
+RPMS = \
+       $(PGSQL_COMMON_RPMS) \
+       aspell \
+       aspell-en \
+       bzip2-devel \
+       libdbi \
+       libdbi-dbd-pgsql \
+       libdbi-devel \
+       libssh2-devel \
+       libpq \
+       libpq-devel \
+       libyaz \
+       libyaz-devel \
+       mod_ssl \
+       ncurses-devel \
+       ncurses-libs \
+       nspr-devel \
+       pcre-static \
+       perl-parent \
+       perl-Date-Manip \
+       perl-DBD-Pg \
+       perl-Email-Simple \
+       perl-Email-MIME \
+       perl-GDGraph3d \
+       perl-LDAP \
+       perl-Locale-Codes \
+       perl-Locale-Maketext-Lexicon \
+       perl-Module-Pluggable \
+       perl-Net-IP \
+       perl-OLE-Storage_Lite \
+       perl-Parse-RecDescent \
+       perl-SOAP-Lite \
+       perl-Test-Output \
+       perl-Text-CSV \
+       perl-Text-CSV_XS \
+       perl-XML-Writer \
+       postgresql-devel \
+       yaz
+
+export CPAN_MODULES = \
+       Business::CreditCard \
+       Business::ISBN::Data \
+       Crypt::SSLeay \
+       Email::Send \
+       HTML::Defang \
+       MARC::Charset \
+       Net::SSH2 \
+       RPC::XML \
+       Text::Aspell \
+       Excel::Writer::XLSX \
+       Business::ISSN \
+       Net::Z3950::ZOOM \
+       Net::Z3950::Simple2ZOOM \
+       Net::Z3950::SimpleServer \
+       Template::Plugin::POSIX \
+       SRU \
+       Rose::URI
+
+export CPAN_MODULES_PGSQL = \
+       Business::ISBN \
+       Library::CallNumber::LC \
+       MARC::Record \
+       MARC::XML
+
+export CPAN_MODULES_FORCE = \
+       Business::Stripe \
+       Class::DBI::Frozen::301 \
+       Business::OnlinePayment \
+       Business::OnlinePayment::AuthorizeNet \
+       Business::OnlinePayment::PayflowPro \
+       Business::OnlinePayment::PayPal
+
+PGSQL_RPMS = \
+       $(PGSQL_COMMON_RPMS) \
+       postgresql \
+       postgresql-contrib \
+       postgresql-libs \
+       postgresql-plperl \
+       postgresql-server
+
+all:
+       make -f $(DIR)/Makefile.common install_indexdata_centos_repo
+       install_rpms
+       make -f $(DIR)/Makefile.common install_cpan
+       make -f $(DIR)/Makefile.common install_cpan_force
+       make -f $(DIR)/Makefile.common install_cpan_pgsql
+
+install_postgres_server:
+       yum -y install $(PGSQL_RPMS)
+       make -f $(DIR)/Makefile.common install_cpan_pgsql
+
+install_rpms:
+       yum -y update
+       yum -y install $(RPMS)
+
+clean:
+       make -f $(DIR)/Makefile.common clean
+
+# vim:noet:sw=4:ts=4: