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