From 514abe7ee723bfedd174452a33b5774b75d92ae2 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Wed, 27 May 2020 12:35:06 -0400 Subject: [PATCH] LP#1880703 - Add RHEL/CentOS 8 Support Signed-off-by: Chris Sharp --- Open-ILS/src/extras/Makefile.install | 17 +++- Open-ILS/src/extras/install/Makefile.centos | 117 ++++++++++++++++++++++++++++ Open-ILS/src/extras/install/Makefile.common | 4 + Open-ILS/src/extras/install/Makefile.rhel | 108 +++++++++++++++++++++++++ 4 files changed, 245 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/extras/install/Makefile.centos create mode 100644 Open-ILS/src/extras/install/Makefile.rhel diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install index 3454450205..89ad8b1913 100644 --- a/Open-ILS/src/extras/Makefile.install +++ b/Open-ILS/src/extras/Makefile.install @@ -20,8 +20,11 @@ # - 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 index 0000000000..dbe83b0a59 --- /dev/null +++ b/Open-ILS/src/extras/install/Makefile.centos @@ -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: diff --git a/Open-ILS/src/extras/install/Makefile.common b/Open-ILS/src/extras/install/Makefile.common index 2c4246ce6b..636d29040d 100644 --- a/Open-ILS/src/extras/install/Makefile.common +++ b/Open-ILS/src/extras/install/Makefile.common @@ -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 index 0000000000..6866fd0bce --- /dev/null +++ b/Open-ILS/src/extras/install/Makefile.rhel @@ -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: -- 2.11.0