# Functions used by all installers
+# We need a recent version of Yaz
+# Ubuntu 10.04 comes with 3.0.52
+YAZ=yaz-4.2.32
+YAZ_HOST=http://ftp.indexdata.dk/pub/yaz
+
# Install the CPAN modules
install_cpan:
for m in $(CPAN_MODULES); do perl -MCPAN -e "install \"$$m\";"; done
make -C $(LIBDBI_DRIVERS) clean
make -C $(LIBJS_PERL) clean
+# Install a known working version of YAZ
+install_yaz:
+ if [ ! -d $(YAZ) ]; then wget $(YAZ_HOST)/$(YAZ).tar.gz; fi;
+ tar xzf $(YAZ).tar.gz
+ cd $(YAZ) && ./configure && make && make install && ldconfig
+
# vim:noet:sw=4:ts=4:
--- /dev/null
+# install files for Ubuntu 10.04 LTS Lucid Lynx
+
+DIR = $(dir $(lastword $(MAKEFILE_LIST)))
+APT_SAFE_TOOL = aptitude -P
+
+export DEBS = \
+ apache2-prefork-dev\
+ aspell\
+ aspell-en\
+ libbusiness-creditcard-perl\
+ libbusiness-isbn-data-perl\
+ libbusiness-isbn-perl\
+ libbusiness-onlinepayment-authorizenet-perl\
+ libbusiness-onlinepayment-perl\
+ libdatetime-format-builder-perl\
+ libdatetime-format-iso8601-perl\
+ libdatetime-format-mail-perl\
+ libdatetime-perl\
+ libdatetime-set-perl\
+ libdatetime-timezone-perl\
+ libdbd-pg-perl\
+ libemail-send-perl\
+ libemail-simple-perl\
+ libgd-graph3d-perl\
+ liblocale-maketext-lexicon-perl\
+ liblog-log4perl-perl\
+ libmarc-charset-perl \
+ libmarc-xml-perl \
+ libncurses5-dev\
+ libnet-ip-perl\
+ libnet-ldap-perl \
+ libnet-server-perl\
+ libnet-ssh2-perl\
+ libnet-z3950-zoom-perl \
+ libnspr4-dev\
+ libole-storage-lite-perl\
+ libparent-perl\
+ libspreadsheet-writeexcel-perl\
+ libssh2-1-dev\
+ libtext-aspell-perl\
+ libtext-csv-perl\
+ libuniversal-require-perl\
+ libunix-syslog-perl\
+ libuuid-tiny-perl\
+ libyaz-dev\
+
+export DEB_APACHE_MODS = \
+ expires\
+ include\
+ proxy\
+ proxy_http\
+ rewrite
+
+export DEB_APACHE_DISMODS = \
+ deflate
+
+export CPAN_MODULES = \
+ Business::OnlinePayment::PayPal \
+ Library::CallNumber::LC \
+ MARC::Record \
+ Net::Z3950::Simple2ZOOM \
+ RPC::XML \
+ Template::Plugin::POSIX \
+ SRU \
+ Rose::URI \
+ Safe
+
+export CPAN_MODULES_FORCE = \
+ Class::DBI::Frozen::301
+
+PGSQL_SERVER_DEBS_91 = \
+ postgresql-9.1 \
+ postgresql-contrib-9.1 \
+ postgresql-plperl-9.1 \
+ postgresql-server-dev-9.1
+
+PGSQL_CLIENT_DEBS_91 = \
+ libpq5 \
+ libpq-dev \
+ postgresql-client-9.1
+
+all:
+ make -f $(DIR)/Makefile.debian install_debs
+ make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
+ make -f $(DIR)/Makefile.common install_yaz
+ make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
+ make -f $(DIR)/Makefile.common install_cpan
+ make -f $(DIR)/Makefile.common install_cpan_force
+ make -f $(DIR)/Makefile.debian install_js_sm
+ make -f $(DIR)/Makefile.debian debian_sys_config
+
+install_pgsql_server_debs_91:
+ $(APT_TOOL) install $(PGSQL_SERVER_DEBS_91)
+
+install_pgsql_client_backport_debs_91:
+ @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
+ then \
+ echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
+ "of apache2-prefork-dev), but these are the 8.4 versions and they" \
+ "conflict with the 9.1 versions - so remove them, install the pinned" \
+ "backports of 9.1, then reinstall the apache2-prefork-dev package.\n\n" \
+ "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
+ "databases that might currently exist on this machine." && \
+ $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
+ fi
+ $(APT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
+ $(APT_TOOL) install apache2-prefork-dev
+
+clean:
+ make -f $(DIR)/Makefile.common clean
+ make -f $(DIR)/Makefile.debian clean
+
+# vim:noet:sw=4:ts=4:
--- /dev/null
+# install files for Ubuntu 12.04 LTS Precise Pangolin
+
+DIR = $(dir $(lastword $(MAKEFILE_LIST)))
+
+export DEBS = \
+ apache2-prefork-dev\
+ aspell\
+ aspell-en\
+ libbusiness-creditcard-perl\
+ libbusiness-edi-perl \
+ libbusiness-isbn-data-perl\
+ libbusiness-isbn-perl\
+ libbusiness-onlinepayment-authorizenet-perl\
+ libbusiness-onlinepayment-perl\
+ libdatetime-format-builder-perl\
+ libdatetime-format-iso8601-perl\
+ libdatetime-format-mail-perl\
+ libdatetime-perl\
+ libdatetime-set-perl\
+ libdatetime-timezone-perl\
+ libdbd-pg-perl\
+ libdbd-pgsql \
+ libdbi-dev \
+ libemail-send-perl\
+ libemail-simple-perl\
+ libgd-graph3d-perl\
+ liblibrary-callnumber-lc-perl \
+ liblocale-maketext-lexicon-perl\
+ liblog-log4perl-perl\
+ libmarc-charset-perl \
+ libmarc-record-perl\
+ libmarc-xml-perl \
+ libncurses5-dev\
+ libnet-https-any-perl \
+ libnet-ip-perl\
+ libnet-ldap-perl \
+ libnet-server-perl\
+ libnet-ssh2-perl\
+ libnet-z3950-simple2zoom-perl\
+ libnet-z3950-zoom-perl \
+ libnspr4-dev\
+ libole-storage-lite-perl\
+ libbz2-dev \
+ libpq5\
+ libpq-dev\
+ librpc-xml-perl\
+ libspreadsheet-writeexcel-perl\
+ libsru-perl\
+ libssh2-1-dev\
+ libtext-aspell-perl\
+ libtext-csv-perl\
+ libuniversal-require-perl\
+ libunix-syslog-perl\
+ libuuid-tiny-perl\
+ libyaz-dev\
+ postgresql-client-9.1\
+ yaz
+
+export DEB_APACHE_MODS = \
+ expires\
+ include\
+ proxy\
+ proxy_http\
+ rewrite
+
+export DEB_APACHE_DISMODS = \
+ deflate
+
+export CPAN_MODULES = \
+ Business::CreditCard::Object \
+ Business::OnlinePayment::PayPal \
+ Template::Plugin::POSIX \
+ Rose::URI \
+ Safe
+
+export CPAN_MODULES_FORCE = \
+ Class::DBI::Frozen::301
+
+PGSQL_SERVER_DEBS_91 = \
+ postgresql-9.1 \
+ postgresql-contrib-9.1 \
+ postgresql-plperl-9.1 \
+ postgresql-server-dev-9.1
+
+all:
+ make -f $(DIR)/Makefile.debian install_debs
+ make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
+ make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
+ make -f $(DIR)/Makefile.common install_cpan
+ make -f $(DIR)/Makefile.common install_cpan_force
+ make -f $(DIR)/Makefile.debian install_js_sm
+ make -f $(DIR)/Makefile.debian debian_sys_config
+
+install_pgsql_server_debs_91:
+ make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_91)"
+
+clean:
+ make -f $(DIR)/Makefile.common clean
+ make -f $(DIR)/Makefile.debian clean
+
+# vim:noet:sw=4:ts=4: