From 975c5c898024d605628575648d19a5e06fc1c332 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Sat, 21 Jul 2012 22:04:23 +0800 Subject: [PATCH] Bug 8489: Revise Ubuntu install files 1) Changed ubuntu-pkg-check.sh to use lsb_release to determine version of ubuntu.{version}.packages file. If a versioned file does not exist, the user is warned, and ubuntu.packages is used. Told the user which file is being used. Caught apt-cache policy errors nicely. NOTE: ubuntu.packages MUST BE A COPY OF THE LATEST ubuntu.{version}.packages FILE! 2) Moved: ubuntu.packages -> ubuntu.10.04.packages ubuntu_maverick.packages -> ubuntu.10.10.packages ubuntu.precise.packages -> ubuntu.12.04 packages (last file created new, but effectively supersedes bug 8488) 3) Tweaked ubuntu.12.04.packages: * changed yaz3 references to yaz4 * dropped libmysqlclient16-dev * changed libmysqlclient16 to libmysqlclient18 4) Copied the ubuntu.12.04.packages file to ubuntu.packages Signed-off-by: Jared Camins-Esakov --- install_misc/ubuntu-pkg-check.sh | 24 ++- install_misc/ubuntu.10.04.packages | 134 +++++++++++++++++ ...averick.packages => ubuntu.10.10.packages} | 0 install_misc/ubuntu.12.04.packages | 142 ++++++++++++++++++ install_misc/ubuntu.packages | 16 +- 5 files changed, 304 insertions(+), 12 deletions(-) create mode 100644 install_misc/ubuntu.10.04.packages rename install_misc/{ubuntu_maverick.packages => ubuntu.10.10.packages} (100%) create mode 100644 install_misc/ubuntu.12.04.packages diff --git a/install_misc/ubuntu-pkg-check.sh b/install_misc/ubuntu-pkg-check.sh index 9303082ef0..75bec3f320 100755 --- a/install_misc/ubuntu-pkg-check.sh +++ b/install_misc/ubuntu-pkg-check.sh @@ -1,19 +1,27 @@ #!/bin/sh -UBUNTU_PACKAGES=`dirname $0`/ubuntu.packages +# determine what directory this script is in, because the packages files +# should be there too. +DIR=`dirname $0` -# sanity checks +#determine which vbersion of ubuntu +VERSION=`lsb_release -r | cut -f2 -d' '` +UBUNTU_PACKAGES=$DIR/ubuntu.$VERSION.packages +# sanity checks if [ ! -e $UBUNTU_PACKAGES ]; then - echo ERROR: Could not find $UBUNTU_PACKAGES file for running check. - exit + echo "WARNING! We strongly recommend an LTS release." + UBUNTU_PACKAGES=$DIR/ubuntu.packages fi +echo "Using the $UBUNTU_PACKAGES file." # main - UBUNTU_PACKAGES_LIST=`awk '{print $1}' $UBUNTU_PACKAGES | grep -v '^\s*#' | grep -v '^\s*$'` for F in $UBUNTU_PACKAGES_LIST; do - UBUNTU_PKG_POLICY=`apt-cache policy $F | grep "Installed:"` - UBUNTU_PKG_VERSION=`echo $UBUNTU_PKG_POLICY | awk '{print $2}'` - echo "$F = $UBUNTU_PKG_VERSION" + UBUNTU_PKG_POLICY=`apt-cache policy $F 2> /dev/null | grep "Installed:"` + if [ "${#UBUNTU_PKG_POLICY}" -eq "0" ]; then + UBUNTU_PKG_POLICY="Installed: \(none\)\*" + fi + UBUNTU_PKG_VERSION=`echo $UBUNTU_PKG_POLICY | awk '{print $2}'` + echo "$F = $UBUNTU_PKG_VERSION" done diff --git a/install_misc/ubuntu.10.04.packages b/install_misc/ubuntu.10.04.packages new file mode 100644 index 0000000000..61fbebf946 --- /dev/null +++ b/install_misc/ubuntu.10.04.packages @@ -0,0 +1,134 @@ +apache2 install +at install +daemon install +gcc install +gettext install +make install + +# mysql packages + +mysql-server install +libmysqlclient16 install +libmysqlclient16-dev install + +# yaz packages + +yaz install +yaz-doc install +libyaz3 install +libyaz3-dev install + +# zebra packages + +idzebra-2.0 install +idzebra-2.0-common install +idzebra-2.0-doc install +idzebra-2.0-utils install +libidzebra-2.0-0 install +libidzebra-2.0-dev install +libidzebra-2.0-mod-alvis install +libidzebra-2.0-mod-grs-marc install +libidzebra-2.0-mod-grs-regx install +libidzebra-2.0-mod-grs-xml install +libidzebra-2.0-mod-text install +libidzebra-2.0-modules install + +# crypto packages + +libgcrypt11 install +libgcrypt11-dev install + +# xml/xslt packages + +libxml2 install +libxml2-dev install +libxml2-utils install +libxslt1.1 install +libxslt1-dev install + +# perl packages + +libalgorithm-checkdigits-perl install +libauthen-cas-client-perl install +libbiblio-endnotestyle-perl install +libbusiness-isbn-perl install +libcgi-session-driver-memcached-perl install +libcgi-session-perl install +libcgi-session-serialize-yaml-perl install +libclass-factory-util-perl install +libdata-ical-perl install +libdate-calc-perl install +libdate-manip-perl install +libdatetime-perl install +libdatetime-format-dateparse-perl install +libdatetime-format-ical-perl install +libdatetime-format-mail-perl install +libdatetime-format-strptime-perl install +libdatetime-format-w3cdtf-perl install +libdatetime-locale-perl install +libdatetime-timezone-perl install +libdbd-mysql-perl install +libdbd-sqlite2-perl install +libdbi-perl install +libemail-date-perl install +libgd-barcode-perl install +libgraphics-magick-perl install +libgravatar-url-perl install +libhtml-scrubber-perl install +libhtml-template-pro-perl install +libhttp-oai-perl install +liblingua-ispell-perl install +liblingua-stem-perl install +liblingua-stem-snowball-perl install +liblist-moreutils-perl install +liblocale-currency-format-perl install +liblocale-gettext-perl install +liblocale-po-perl install +libmail-sendmail-perl install +libmarc-charset-perl install +libmarc-crosswalk-dublincore-perl install +libmarc-record-perl install +libmarc-xml-perl install +libmemoize-memcached-perl install +libmime-lite-perl install +libmodern-perl install +libmodule-install-perl install +libnet-ldap-perl install +libnet-server-perl install +libpdf-api2-simple-perl install +libreadonly-perl install +libreadonly-xs-perl install +libnet-z3950-zoom-perl install +libnumber-format-perl install +libpdf-api2-perl install +libpdf-reuse-perl install +libpdf-reuse-barcode-perl install +libpdf-table-perl install +libpoe-perl install +libschedule-at-perl install +libsms-send-perl install +libtemplate-perl install +libtext-charwidth-perl install +libtext-csv-encoded-perl install +libtext-csv-perl install +libtext-iconv-perl install +libtext-wrapi18n-perl install +libtimedate-perl install +libtime-duration-perl install +libtime-format-perl install +libuniversal-require-perl install +libunix-syslog-perl install +libxml-perl install +libxml-dom-perl install +libxml-dumper-perl install +libxml-libxml-perl install +libxml-libxslt-perl install +libxml-namespacesupport-perl install +libxml-parser-perl install +libxml-regexp-perl install +libxml-rss-perl install +libxml-sax-writer-perl install +libxml-simple-perl install +libxml-xslt-perl install +libyaml-perl install +libyaml-syck-perl install diff --git a/install_misc/ubuntu_maverick.packages b/install_misc/ubuntu.10.10.packages similarity index 100% rename from install_misc/ubuntu_maverick.packages rename to install_misc/ubuntu.10.10.packages diff --git a/install_misc/ubuntu.12.04.packages b/install_misc/ubuntu.12.04.packages new file mode 100644 index 0000000000..dff4053183 --- /dev/null +++ b/install_misc/ubuntu.12.04.packages @@ -0,0 +1,142 @@ +apache2 install +at install +daemon install +gcc install +gettext install +make install + +# mysql packages + +mysql-server install +libmysqlclient18 install + +# yaz packages + +yaz install +yaz-doc install +libyaz4 install +libyaz4-dev install + +# zebra packages + +idzebra-2.0 install +idzebra-2.0-common install +idzebra-2.0-doc install +idzebra-2.0-utils install +libidzebra-2.0-0 install +libidzebra-2.0-dev install +libidzebra-2.0-mod-alvis install +libidzebra-2.0-mod-grs-marc install +libidzebra-2.0-mod-grs-regx install +libidzebra-2.0-mod-grs-xml install +libidzebra-2.0-mod-text install +libidzebra-2.0-modules install + +# crypto packages + +libgcrypt11 install +libgcrypt11-dev install + +# xml/xslt packages + +libxml2 install +libxml2-dev install +libxml2-utils install +libxslt1.1 install +libxslt1-dev install + +# perl packages + +libalgorithm-checkdigits-perl install +libauthen-cas-client-perl install +libbiblio-endnotestyle-perl install +libbusiness-isbn-perl install +libcgi-session-driver-memcached-perl install +libcgi-session-perl install +libcgi-session-serialize-yaml-perl install +libclass-accessor-perl install +libclass-factory-util-perl install +libdata-ical-perl install +libdate-calc-perl install +libdate-manip-perl install +libdatetime-perl install +libdatetime-format-dateparse-perl install +libdatetime-format-ical-perl install +libdatetime-format-mail-perl install +libdatetime-format-strptime-perl install +libdatetime-format-w3cdtf-perl install +libdatetime-locale-perl install +libdatetime-timezone-perl install +libdbd-mysql-perl install +libdbd-sqlite2-perl install +libdbi-perl install +libemail-date-perl install +libgd-barcode-perl install +libgraphics-magick-perl install +libgravatar-url-perl install +libhtml-scrubber-perl install +libhtml-template-pro-perl install +libhttp-cookies-perl install +libhttp-message-perl install +libhttp-oai-perl install +libjson-perl install +liblingua-ispell-perl install +liblingua-stem-perl install +liblingua-stem-snowball-perl install +liblist-moreutils-perl install +liblocale-currency-format-perl install +liblocale-gettext-perl install +liblocale-po-perl install +libmail-sendmail-perl install +libmarc-charset-perl install +libmarc-crosswalk-dublincore-perl install +libmarc-record-perl install +libmarc-xml-perl install +libmemoize-memcached-perl install +libmime-lite-perl install +libmodern-perl install +libmodern-perl-perl install +libmodule-install-perl install +libnet-ldap-perl install +libnet-server-perl install +libpdf-api2-simple-perl install +libreadonly-perl install +libreadonly-xs-perl install +libnet-z3950-zoom-perl install +libnumber-format-perl install +libpdf-api2-perl install +libpdf-reuse-perl install +libpdf-reuse-barcode-perl install +libpdf-table-perl install +libpoe-perl install +libschedule-at-perl install +libsms-send-perl install +libtemplate-perl install +libtext-charwidth-perl install +libtext-csv-encoded-perl install +libtext-csv-perl install +libtext-csv-xs-perl install +libtext-iconv-perl install +libtext-wrapi18n-perl install +libtimedate-perl install +libtime-duration-perl install +libtime-format-perl install +libuniversal-require-perl install +libunix-syslog-perl install +liburi-perl install +libwww-perl install +libxml-perl install +libxml-dom-perl install +libxml-dumper-perl install +libxml-libxml-perl install +libxml-libxslt-perl install +libxml-namespacesupport-perl install +libxml-parser-perl install +libxml-regexp-perl install +libxml-rss-perl install +libxml-sax-perl install +libxml-sax-writer-perl install +libxml-simple-perl install +libxml-xslt-perl install +libyaml-perl install +libyaml-syck-perl install diff --git a/install_misc/ubuntu.packages b/install_misc/ubuntu.packages index 61fbebf946..dff4053183 100644 --- a/install_misc/ubuntu.packages +++ b/install_misc/ubuntu.packages @@ -8,15 +8,14 @@ make install # mysql packages mysql-server install -libmysqlclient16 install -libmysqlclient16-dev install +libmysqlclient18 install # yaz packages yaz install yaz-doc install -libyaz3 install -libyaz3-dev install +libyaz4 install +libyaz4-dev install # zebra packages @@ -55,6 +54,7 @@ libbusiness-isbn-perl install libcgi-session-driver-memcached-perl install libcgi-session-perl install libcgi-session-serialize-yaml-perl install +libclass-accessor-perl install libclass-factory-util-perl install libdata-ical-perl install libdate-calc-perl install @@ -76,7 +76,10 @@ libgraphics-magick-perl install libgravatar-url-perl install libhtml-scrubber-perl install libhtml-template-pro-perl install +libhttp-cookies-perl install +libhttp-message-perl install libhttp-oai-perl install +libjson-perl install liblingua-ispell-perl install liblingua-stem-perl install liblingua-stem-snowball-perl install @@ -92,6 +95,7 @@ libmarc-xml-perl install libmemoize-memcached-perl install libmime-lite-perl install libmodern-perl install +libmodern-perl-perl install libmodule-install-perl install libnet-ldap-perl install libnet-server-perl install @@ -111,6 +115,7 @@ libtemplate-perl install libtext-charwidth-perl install libtext-csv-encoded-perl install libtext-csv-perl install +libtext-csv-xs-perl install libtext-iconv-perl install libtext-wrapi18n-perl install libtimedate-perl install @@ -118,6 +123,8 @@ libtime-duration-perl install libtime-format-perl install libuniversal-require-perl install libunix-syslog-perl install +liburi-perl install +libwww-perl install libxml-perl install libxml-dom-perl install libxml-dumper-perl install @@ -127,6 +134,7 @@ libxml-namespacesupport-perl install libxml-parser-perl install libxml-regexp-perl install libxml-rss-perl install +libxml-sax-perl install libxml-sax-writer-perl install libxml-simple-perl install libxml-xslt-perl install -- 2.39.5