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