From a6f50cbcb92c2575eb31e906ea54bf0386654906 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Feb 2017 12:42:43 +0100 Subject: [PATCH] Bug 18028: Remove outdated install_misc directory This directory is no longer maintained and contain outdated information on how to install Koha. On the Internet there are tutos using them and that can create confusion to new user (yes it could be confusing as well to execute a file that does no longer exist). NOTE: last tweak was mid 2016, but before that 2015. So I agree with the deletion. Signed-off-by: Mark Tompsett Signed-off-by: Marcel de Rooy Signed-off-by: Brendan A Gallagher --- install_misc/UpgradeBackup.pm | 94 ------------- install_misc/debian.packages | 148 -------------------- install_misc/environment_Makefile.PL | 80 ----------- install_misc/ubuntu-packages.sh | 194 --------------------------- install_misc/ubuntu.10.04.packages | 163 ---------------------- install_misc/ubuntu.12.04.packages | 168 ----------------------- install_misc/ubuntu.packages | 168 ----------------------- 7 files changed, 1015 deletions(-) delete mode 100644 install_misc/UpgradeBackup.pm delete mode 100644 install_misc/debian.packages delete mode 100644 install_misc/environment_Makefile.PL delete mode 100755 install_misc/ubuntu-packages.sh delete mode 100644 install_misc/ubuntu.10.04.packages delete mode 100644 install_misc/ubuntu.12.04.packages delete mode 100644 install_misc/ubuntu.packages diff --git a/install_misc/UpgradeBackup.pm b/install_misc/UpgradeBackup.pm deleted file mode 100644 index ad79883048..0000000000 --- a/install_misc/UpgradeBackup.pm +++ /dev/null @@ -1,94 +0,0 @@ -package install_misc::UpgradeBackup; - -# Copyright (C) 2008 LibLime -# -# This file is part of Koha. -# -# Koha is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# Koha is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Koha; if not, see . - -use strict; -#use warnings; FIXME - Bug 2505 -use File::Compare qw(compare); -use Cwd qw(cwd); -use File::Copy; -use File::Find; -use File::Spec; -use Exporter; - -use vars qw(@ISA @EXPORT ); - -@ISA = ('Exporter'); -@EXPORT = ('backup_changed_files'); - -=head1 NAME - -install_misc::UpgradeBackup - -=head1 DESCRIPTION - -This is a helper module used during a 'make upgrade' that -creates backups of files updated during an upgrade. - -=cut - -sub backup_changed_files { - my $from_to = shift; - my $suffix = shift; - my $verbose = shift; - my $inc_uninstall = shift; - - my $cwd = cwd(); - foreach my $sourceroot (sort keys %$from_to) { - my $targetroot = $from_to->{$sourceroot}; - my $currdir = File::Spec->catdir($cwd, $sourceroot); - - next unless -d $currdir; - - chdir $currdir or die "could not change to $currdir: $!"; - - # expand path - find(sub { - return unless -f $_; - my $filename = $_; - - my $targetdir = File::Spec->catdir($targetroot, $File::Find::dir); - my $targetfile = File::Spec->catfile($targetdir, $filename); - my $sourcedir = File::Spec->catdir($currdir, $File::Find::dir); - my $sourcefile = File::Spec->catfile($sourcedir, $filename); - - if (-f $targetfile) { - my ($size) = (stat $sourcefile)[7]; - my $backup = $targetfile . $suffix; - unless (-s $targetfile == $size and not compare($sourcefile, $targetfile)) { - print "Backed up $targetfile to $backup\n"; - File::Copy::copy($targetfile, $backup); - } - } - }, "."); - } -} - -=head1 AUTHOR - -Code based on parts of ExtUtils::Install in order to -approximately track how it identifies files to -install. - -Koha Development Team - -Galen Charlton - -=cut - -1; diff --git a/install_misc/debian.packages b/install_misc/debian.packages deleted file mode 100644 index 5d939dc9e6..0000000000 --- a/install_misc/debian.packages +++ /dev/null @@ -1,148 +0,0 @@ -apache2 install -at install -cvs install -daemon install -gcc install -gettext install -idzebra-2.0 install -idzebra-2.0-common install -idzebra-2.0-doc install -idzebra-2.0-utils install -letsencrypt install -libalgorithm-checkdigits-perl install -libanyevent-http-perl install -libanyevent-perl install -libarchive-zip-perl install -libauthen-cas-client-perl install -libbiblio-endnotestyle-perl install -libbusiness-isbn-perl install -libcache-fastmmap-perl install -libcache-memcached-fast-perl install -libcache-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 -libdata-paginator-perl install -libdate-calc-perl install -libdate-manip-perl install -libdatetime-event-ical-perl install -libdatetime-format-dateparse-perl install -libdatetime-format-ical-perl install -libdatetime-format-mail-perl install -libdatetime-format-mysql-perl install -libdatetime-format-strptime-perl install -libdatetime-format-w3cdtf-perl install -libdatetime-locale-perl install -libdatetime-perl install -libdatetime-set-perl install -libdatetime-timezone-perl install -libdbd-mock-perl install -libdbd-mysql-perl install -libdbd-sqlite2-perl install -libdbi-perl install -libdbix-class-schema-loader-perl install -libemail-date-perl install -libgcrypt11 install -libgcrypt11-dev install -libgd-barcode-perl install -libgd-gd2-perl install -libgd2-noxpm-dev install -libgraphics-magick-perl install -libgravatar-url-perl install -libhtml-format-perl install -libhtml-scrubber-perl install -libhtml-template-pro-perl install -libhttp-oai-perl install -libidzebra-2.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 -libjson-any-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-record-perl install -libmarc-xml-perl install -libmime-lite-perl install -libmodern-perl-perl install -libmodule-bundled-files-perl install -libmoose-perl install -libmoosex-storage-perl install -libmoosex-types-perl install -libmysqlclient15-dev install -libnet-ldap-perl install -libnet-server-perl install -libnet-z3950-zoom-perl install -libnumber-format-perl install -libpdf-api2-perl install -libpdf-api2-simple-perl install -libpdf-reuse-barcode-perl install -libpdf-reuse-perl install -libpdf-table-perl install -libschedule-at-perl install -libsms-send-perl install -libstring-random-perl install -libstring-rewriteprefix-perl install -libtemplate-perl install -libtemplate-plugin-htmltotext-perl install -libtest-deep-perl install -libtest-mockmodule-perl install -libtest-strict-perl install -libtest-warn-perl install -libtest-yaml-valid-perl install -libtext-bidi-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-unaccent-perl install -libtext-wrapi18n-perl install -libtime-duration-perl install -libtime-format-perl install -libtime-progress-perl install -libtimedate-perl install -libuniversal-require-perl install -libunix-syslog-perl install -liburi-perl install -libwww-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-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 -libxml2 install -libxml2-dev install -libxml2-utils install -libxslt1-dev install -libxslt1.1 install -libyaml-perl install -libyaml-syck-perl install -libyaz install -libyaz-dev install -make install -mysql-server install -yaz install -yaz-doc install diff --git a/install_misc/environment_Makefile.PL b/install_misc/environment_Makefile.PL deleted file mode 100644 index ed61f00e9c..0000000000 --- a/install_misc/environment_Makefile.PL +++ /dev/null @@ -1,80 +0,0 @@ -# this file provides environment variables to use perl Makefile.PL -# without interactive mode. it can be seen as config file. - -# usage from shell: -# source environment_Makefile.PL && -# perl Makefile.PL && -# make install - -# TODO: add explainations from the installer ? - -export PERL_MM_USE_DEFAULT=1 # makes the environment variables work -export KOHA_USER='koha' # unix account used by zebra -export KOHA_GROUP='koha' # unix group used by zebra - -# default root to install config files -export DESTDIR=$HOME # here would be koha configuration, logs and zebra base - -# The installer tries to guess what's your ip address and your hostname -# if you plan to use koha with vhosts strategy or run koha on a recent linux -# guesses won't be appropriate: edit by yourself -# If you plan to use vhosts, you have to edit the koha-httpd.conf file -# anyway :( -export WEBSERVER_HOST=EDITME -export WEBSERVER_IP=EDITME - -# from now, commented export directives are alternatives -# uncomment one of them to choose it - -#export INSTALL_MODE=dev -#export INSTALL_MODE=single -export INSTALL_MODE=standard - -export INSTALL_SRU=no -#export INSTALL_SRU=yes - -export INSTALL_ZEBRA=yes -#export INSTALL_ZEBRA=no - -export INSTALL_PAZPAR2=no -#export INSTALL_PAZPAR2=yes - -export RUN_DATABASE_TESTS=no -#export RUN_DATABASE_TESTS=yes - -export PATH_TO_ZEBRA='' - -export DB_TYPE=mysql -#export DB_TYPE=Pg - -export DB_HOST='localhost' -export DB_NAME='koha' - -# /!\ concider changing password if you don't want -# some script kiddies to crack you koha server -export DB_USER='kohaadmin' -export DB_PASS='katikoan' - -#export AUTH_INDEX_MODE=grs1 -export AUTH_INDEX_MODE=dom -#export BIB_INDEX_MODE=grs1 -export BIB_INDEX_MODE=dom - -#export ZEBRA_MARC_FORMAT=unimarc -export ZEBRA_MARC_FORMAT=marc21 - -#export ZEBRA_LANGUAGE=fr -export ZEBRA_LANGUAGE=en - -# /!\ concider changing password if you don't want -# some script kiddies to crack you koha server -export ZEBRA_USER='kohauser' -export ZEBRA_PASS='zebrastripes' -export ZEBRA_SRU_HOST='localhost' -export ZEBRA_SRU_BIBLIOS_PORT='9998' -export ZEBRA_SRU_AUTHORITIES_PORT='9999' - -export MERGE_SERVER_HOST='localhost' -export MERGE_SERVER_PORT='11001' -export PAZPAR2_HOST='localhost' -export PAZPAR2_PORT='11002' diff --git a/install_misc/ubuntu-packages.sh b/install_misc/ubuntu-packages.sh deleted file mode 100755 index 11f8a7fc9f..0000000000 --- a/install_misc/ubuntu-packages.sh +++ /dev/null @@ -1,194 +0,0 @@ -#!/bin/bash - -# Copyright 2012 Universidad Nacional de Cordoba -# Written by Tomas Cohen Arazi -# Mark Tompsett -# -# This file is part of Koha. -# -# Koha is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# Koha is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Koha; if not, see . - -# Output simple help -usage() { - local scriptname=$(basename $0) - cat < /dev/null` - - if [ "$package_status" == "install ok installed" ] ; then - echo "yes" - else - echo "no" - fi -} - -# Get the installed package version -getPackageVersion() { - local package=$1 - dpkg-query --showformat='${Version}' -W $package -} - -# A parameter is required. -if [ "$#" -eq "0" ]; then - usage - exit 1 -fi - -# Initialize variables -CHECK=no -INSTALLCMD=no -HELP=no - -# Loop over parameters -while (( "$#" )); do - case $1 in - -r | --report ) - CHECK=yes - ;; - -ic | --install-command ) - INSTALLCMD=yes - ;; - -h | --help) - HELP=yes - ;; - * ) - usage - exit 1 - esac - shift -done - -if [ "$HELP" = "yes" ]; then - usage - exit 0 -fi - -# Determine what directory this script is in, the packages files -# should be in the same path. -DIR=`dirname $0` - -# Determine the Ubuntu release -UBUNTU_RELEASE=`lsb_release -r | cut -f2 -d' '` -UBUNTU_PACKAGES_FILE=$DIR/ubuntu.$UBUNTU_RELEASE.packages - -# Check for the release-specific packages file. Default to the general one -# but warn the user about LTS releases recommended, if they are attempting -# to do an install command option. -if [ ! -e $UBUNTU_PACKAGES_FILE ]; then - UBUNTU_PACKAGES_FILE=$DIR/ubuntu.packages - if [ "$INSTALLCMD" == "yes" ]; then - echo "# There's no packages file for your distro/release" - echo "# WARNING! We strongly recommend an LTS release." - fi -fi - -# We where asked to print the packages list and current versions (if any) -UBUNTU_PACKAGES=`awk '{print $1}' $UBUNTU_PACKAGES_FILE | grep -v '^\s*#' | grep -v '^\s*$'` - -# Only output this on an install command option in order to maintain -# output equivalence to the former script, in the case of reporting -# only. -if [ "$INSTALLCMD" == "yes" ]; then - - # Tell them which file being used to determine the output. - echo "# Using the $UBUNTU_PACKAGES_FILE file as source" - - # Comment for skiping the dots if needed .... - if [ "$CHECK" == "no" ]; then - echo -n "#" - fi -fi - -# Initialize variable to accumulate missing packages in. -MISSING_PACKAGES="" - -# Loop used to accumulate the missing packages and display package information if requested to report. -for PACKAGE in $UBUNTU_PACKAGES; do - - # If an install command option is running, but not a report option, - # There is no need to determine the version number. If it was - # This would run even slower! - - # Test if the package is installed - PACKAGE_INSTALLED=`packageInstalled $PACKAGE` - - # Determine the package version if it is installed. - if [ "$PACKAGE_INSTALLED" == "yes" ]; then - PACKAGE_VERSION=`getPackageVersion $PACKAGE` - - # otherwise default to 'none'. - else - PACKAGE_VERSION="none" - MISSING_PACKAGES="$PACKAGE $MISSING_PACKAGES" - fi - - # If we are supposed to report... - if [ "$CHECK" == "yes" ]; then - - - # report the package name and version number. - echo "$PACKAGE = $PACKAGE_VERSION" - - # Otherwise, we'll just echo a dot for the impatient. - else - echo -n "." - fi - -done - -# If we aren't reporting, then the last echo didn't have a newline. -if [ ! "$CHECK" == "yes" ]; then - echo -fi - -# If the install command was requested... -if [ "$INSTALLCMD" == "yes" ]; then - - # Give them a nicely indented command to copy, if dependencies are missing. - if [ "${#MISSING_PACKAGES}" -gt "0" ]; then - cat <