1 # install files for Debian Squeeze
3 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
4 APT_BACKPORT_TOOL = aptitude -t squeeze-backports -yq
5 APT_SAFE_TOOL = aptitude -P
12 libbusiness-creditcard-perl\
13 libbusiness-isbn-data-perl\
14 libbusiness-isbn-perl\
15 libbusiness-onlinepayment-authorizenet-perl\
16 libbusiness-onlinepayment-perl\
17 libdatetime-format-builder-perl\
18 libdatetime-format-iso8601-perl\
19 libdatetime-format-mail-perl\
22 libdatetime-timezone-perl\
27 liblocale-maketext-lexicon-perl\
29 libmarc-charset-perl \
37 libnet-z3950-zoom-perl \
39 libole-storage-lite-perl\
41 libspreadsheet-writeexcel-perl\
45 libuniversal-require-perl\
51 export DEB_APACHE_MODS = \
58 export DEB_APACHE_DISMODS = \
61 export CPAN_MODULES = \
62 Business::OnlinePayment::PayPal \
63 Library::CallNumber::LC \
64 Net::Z3950::Simple2ZOOM \
66 Template::Plugin::POSIX \
71 export CPAN_MODULES_FORCE = \
72 Class::DBI::Frozen::301
74 PGSQL_SERVER_DEBS_91 = \
76 postgresql-contrib-9.1 \
77 postgresql-plperl-9.1 \
78 postgresql-server-dev-9.1
80 PGSQL_CLIENT_DEBS_91 = \
85 all: install_pgsql_client_backport_debs_91
86 make -f $(DIR)/Makefile.debian install_debs
87 make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
88 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
89 make -f $(DIR)/Makefile.common install_cpan
90 make -f $(DIR)/Makefile.common install_cpan_force
91 make -f $(DIR)/Makefile.debian install_js_sm
92 make -f $(DIR)/Makefile.debian debian_sys_config
94 install_postgres_server:
95 $(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_91)
97 install_pgsql_client_backport_debs_91:
98 @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
100 echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
101 "of apache2-prefork-dev), but these are the 8.4 versions and they" \
102 "conflict with the 9.1 versions - so remove them, install the pinned" \
103 "backports of 9.1, then reinstall the apache2-prefork-dev package.\n\n" \
104 "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
105 "databases that might currently exist on this machine." && \
106 $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
108 $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
109 $(APT_TOOL) install apache2-prefork-dev
112 make -f $(DIR)/Makefile.common clean
113 make -f $(DIR)/Makefile.debian clean
115 # vim:noet:sw=4:ts=4: