]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.debian-squeeze
LP 1190279 Modularize Makefile.install
[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
7 export DEBS = \
8         apache2-prefork-dev\
9         aspell\
10         aspell-en\
11         libbusiness-creditcard-perl\
12         libbusiness-isbn-data-perl\
13         libbusiness-isbn-perl\
14         libbusiness-onlinepayment-authorizenet-perl\
15         libbusiness-onlinepayment-perl\
16         libdatetime-format-builder-perl\
17         libdatetime-format-iso8601-perl\
18         libdatetime-format-mail-perl\
19         libdatetime-perl\
20         libdatetime-set-perl\
21         libdatetime-timezone-perl\
22         libdbd-pg-perl\
23         libemail-send-perl\
24         libemail-simple-perl\
25         libgd-graph3d-perl\
26         liblocale-maketext-lexicon-perl\
27         liblog-log4perl-perl\
28         libmarc-charset-perl \
29         libmarc-record-perl\
30         libmarc-xml-perl \
31         libncurses5-dev\
32         libnet-ip-perl\
33         libnet-ldap-perl \
34         libnet-server-perl\
35         libnet-ssh2-perl\
36         libnet-z3950-zoom-perl \
37         libnspr4-dev\
38         libole-storage-lite-perl\
39         libparent-perl\
40         libspreadsheet-writeexcel-perl\
41         libssh2-1-dev\
42         libtext-aspell-perl\
43         libtext-csv-perl\
44         libuniversal-require-perl\
45         libunix-syslog-perl\
46     libuuid-tiny-perl\
47         libyaz-dev\
48         yaz
49
50 export DEB_APACHE_MODS = \
51     expires\
52     include\
53     proxy\
54     proxy_http\
55     rewrite
56
57 export DEB_APACHE_DISMODS = \
58     deflate
59
60 export CPAN_MODULES = \
61         Business::OnlinePayment::PayPal \
62         Library::CallNumber::LC \
63         Net::Z3950::Simple2ZOOM \
64         RPC::XML \
65         Template::Plugin::POSIX \
66         SRU \
67         Rose::URI \
68         Safe
69
70 export CPAN_MODULES_FORCE = \
71         Class::DBI::Frozen::301
72
73 PGSQL_SERVER_DEBS_91 = \
74         postgresql-9.1 \
75         postgresql-contrib-9.1 \
76         postgresql-plperl-9.1 \
77         postgresql-server-dev-9.1
78
79 PGSQL_CLIENT_DEBS_91 = \
80         libpq5 \
81         libpq-dev \
82         postgresql-client-9.1
83
84 all:
85         make -f $(DIR)/Makefile.debian install_debs
86         make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
87         make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
88         make -f $(DIR)/Makefile.common install_cpan
89         make -f $(DIR)/Makefile.common install_cpan_force
90         make -f $(DIR)/Makefile.debian install_js_sm
91         make -f $(DIR)/Makefile.debian debian_sys_config
92
93 install_pgsql_server_backport_debs_91:
94         $(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_91)
95
96 install_pgsql_client_backport_debs_91:
97         @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
98                 then \
99                 echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
100                 "of apache2-prefork-dev), but these are the 8.4 versions and they" \
101                 "conflict with the 9.1 versions - so remove them, install the pinned" \
102                 "backports of 9.1, then reinstall the apache2-prefork-dev package.\n\n" \
103                 "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
104                 "databases that might currently exist on this machine." && \
105                 $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
106         fi
107         $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
108         $(APT_TOOL) install apache2-prefork-dev
109
110 clean:
111         make -f $(DIR)/Makefile.common clean
112         make -f $(DIR)/Makefile.debian clean
113
114 # vim:noet:sw=4:ts=4: