]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.debian-squeeze
LP 1190279 Installer makefiles OS targets for PG server
[working/Evergreen.git] / Open-ILS / src / extras / install / Makefile.debian-squeeze
1 # install files for Debian Squeeze
2
3 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
4 APT_BACKPORT_TOOL = aptitude -t squeeze-backports -yq
5 APT_SAFE_TOOL = aptitude -P
6 APT_TOOL=aptitude -yq
7
8 export DEBS = \
9         apache2-prefork-dev\
10         aspell\
11         aspell-en\
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\
20         libdatetime-perl\
21         libdatetime-set-perl\
22         libdatetime-timezone-perl\
23         libdbd-pg-perl\
24         libemail-send-perl\
25         libemail-simple-perl\
26         libgd-graph3d-perl\
27         liblocale-maketext-lexicon-perl\
28         liblog-log4perl-perl\
29         libmarc-charset-perl \
30         libmarc-record-perl\
31         libmarc-xml-perl \
32         libncurses5-dev\
33         libnet-ip-perl\
34         libnet-ldap-perl \
35         libnet-server-perl\
36         libnet-ssh2-perl\
37         libnet-z3950-zoom-perl \
38         libnspr4-dev\
39         libole-storage-lite-perl\
40         libparent-perl\
41         libspreadsheet-writeexcel-perl\
42         libssh2-1-dev\
43         libtext-aspell-perl\
44         libtext-csv-perl\
45         libuniversal-require-perl\
46         libunix-syslog-perl\
47     libuuid-tiny-perl\
48         libyaz-dev\
49         yaz
50
51 export DEB_APACHE_MODS = \
52     expires\
53     include\
54     proxy\
55     proxy_http\
56     rewrite
57
58 export DEB_APACHE_DISMODS = \
59     deflate
60
61 export CPAN_MODULES = \
62         Business::OnlinePayment::PayPal \
63         Library::CallNumber::LC \
64         Net::Z3950::Simple2ZOOM \
65         RPC::XML \
66         Template::Plugin::POSIX \
67         SRU \
68         Rose::URI \
69         Safe
70
71 export CPAN_MODULES_FORCE = \
72         Class::DBI::Frozen::301
73
74 PGSQL_SERVER_DEBS_91 = \
75         postgresql-9.1 \
76         postgresql-contrib-9.1 \
77         postgresql-plperl-9.1 \
78         postgresql-server-dev-9.1
79
80 PGSQL_CLIENT_DEBS_91 = \
81         libpq5 \
82         libpq-dev \
83         postgresql-client-9.1
84
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
93
94 install_postgres_server:
95         $(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_91)
96
97 install_pgsql_client_backport_debs_91:
98         @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
99                 then \
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 ; \
107         fi
108         $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
109         $(APT_TOOL) install apache2-prefork-dev
110
111 clean:
112         make -f $(DIR)/Makefile.common clean
113         make -f $(DIR)/Makefile.debian clean
114
115 # vim:noet:sw=4:ts=4: