1 # install files for Ubuntu 10.04 LTS Lucid Lynx
3 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
4 APT_SAFE_TOOL = aptitude -P
6 # We need a recent version of Yaz
7 # Ubuntu 10.04 comes with 3.0.52
9 YAZ_HOST=http://ftp.indexdata.dk/pub/yaz
15 libbusiness-creditcard-perl\
16 libbusiness-isbn-data-perl\
17 libbusiness-isbn-perl\
18 libbusiness-onlinepayment-authorizenet-perl\
19 libbusiness-onlinepayment-perl\
20 libdatetime-format-builder-perl\
21 libdatetime-format-iso8601-perl\
22 libdatetime-format-mail-perl\
25 libdatetime-timezone-perl\
30 liblocale-maketext-lexicon-perl\
32 libmarc-charset-perl \
39 libnet-z3950-zoom-perl \
41 libole-storage-lite-perl\
43 libspreadsheet-writeexcel-perl\
47 libuniversal-require-perl\
55 export DEB_APACHE_MODS = \
62 export DEB_APACHE_DISMODS = \
65 export CPAN_MODULES = \
67 Business::OnlinePayment::PayPal \
69 Library::CallNumber::LC \
71 Net::Z3950::Simple2ZOOM \
73 Template::Plugin::POSIX \
78 export CPAN_MODULES_FORCE = \
79 Class::DBI::Frozen::301
81 PGSQL_SERVER_DEBS_91 = \
83 postgresql-contrib-9.1 \
84 postgresql-plperl-9.1 \
85 postgresql-server-dev-9.1
87 PGSQL_CLIENT_DEBS_91 = \
93 make -f $(DIR)/Makefile.debian install_debs
94 make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
95 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
96 make -f $(DIR)/Makefile.common install_cpan
97 make -f $(DIR)/Makefile.common install_cpan_force
98 make -f $(DIR)/Makefile.debian install_js_sm
99 make -f $(DIR)/Makefile.debian debian_sys_config
102 if [ ! -d $(YAZ) ]; then wget $(YAZ_HOST)/$(YAZ).tar.gz; fi;
103 tar xzf $(YAZ).tar.gz
104 cd $(YAZ) && ./configure && make && make install && ldconfig
106 install_pgsql_server_debs_91:
107 $(APT_TOOL) install $(PGSQL_SERVER_DEBS_91)
109 install_pgsql_client_backport_debs_91:
110 @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
112 echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
113 "of apache2-prefork-dev), but these are the 8.4 versions and they" \
114 "conflict with the 9.1 versions - so remove them, install the pinned" \
115 "backports of 9.1, then reinstall the apache2-prefork-dev package.\n\n" \
116 "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
117 "databases that might currently exist on this machine." && \
118 $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
120 $(APT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
121 $(APT_TOOL) install apache2-prefork-dev
124 make -f $(DIR)/Makefile.common clean
125 make -f $(DIR)/Makefile.debian clean
127 # vim:noet:sw=4:ts=4: