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
8 YAZ_HOST=http://ftp.indexdata.dk/pub/yaz
15 libbusiness-creditcard-perl\
16 libbusiness-isbn-data-perl\
17 libbusiness-isbn-perl\
18 libbusiness-issn-perl\
19 libbusiness-onlinepayment-authorizenet-perl\
20 libbusiness-onlinepayment-perl\
22 libdatetime-format-builder-perl\
23 libdatetime-format-iso8601-perl\
24 libdatetime-format-mail-perl\
27 libdatetime-timezone-perl\
32 liblocale-maketext-lexicon-perl\
34 libmarc-charset-perl \
42 libnet-z3950-zoom-perl \
44 libole-storage-lite-perl\
51 libuniversal-require-perl\
57 libparse-recdescent-perl\
60 export DEB_APACHE_MODS = \
67 export DEB_APACHE_DISMODS = \
70 export CPAN_MODULES = \
72 Business::OnlinePayment::PayPal \
73 Library::CallNumber::LC \
74 Net::Z3950::Simple2ZOOM \
76 Template::Plugin::POSIX \
81 export CPAN_MODULES_FORCE = \
83 Class::DBI::Frozen::301
85 PGSQL_SERVER_DEBS_91 = \
87 postgresql-contrib-9.1 \
88 postgresql-plperl-9.1 \
89 postgresql-server-dev-9.1
91 PGSQL_CLIENT_DEBS_91 = \
97 all: install_pgsql_client_backport_debs_91 install_yaz
98 make -f $(DIR)/Makefile.debian install_debs
99 make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
100 make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
101 make -f $(DIR)/Makefile.common install_cpan
102 make -f $(DIR)/Makefile.common install_cpan_force
103 make -f $(DIR)/Makefile.common install_libdbi
104 make -f $(DIR)/Makefile.debian install_js_sm
105 make -f $(DIR)/Makefile.debian debian_sys_config
108 if [ ! -d $(YAZ) ]; then wget $(YAZ_HOST)/$(YAZ).tar.gz; fi;
109 tar xzf $(YAZ).tar.gz
110 cd $(YAZ) && ./configure && make && make install && ldconfig
112 install_postgres_server:
113 $(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_91)
115 install_pgsql_client_backport_debs_91:
116 @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
118 echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
119 "of apache2-prefork-dev), but these are the 8.4 versions and they" \
120 "conflict with the 9.1 versions - so remove them, install the pinned" \
121 "backports of 9.1, then reinstall the apache2-prefork-dev package.\n\n" \
122 "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
123 "databases that might currently exist on this machine." && \
124 $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
126 $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
127 $(APT_TOOL) install apache2-prefork-dev
130 make -f $(DIR)/Makefile.common clean
131 make -f $(DIR)/Makefile.debian clean
133 # vim:noet:sw=4:ts=4: