]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.debian-squeeze
3bc586a091ba93062d3754c6d8e4033292c3a93a
[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 YAZ=yaz-4.2.32
8 YAZ_HOST=http://ftp.indexdata.dk/pub/yaz
9
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-record-perl\
34         libmarc-xml-perl \
35         libncurses5-dev\
36         libnet-ip-perl\
37         libnet-ldap-perl \
38         libnet-server-perl\
39         libnet-ssh2-perl\
40         libnet-z3950-zoom-perl \
41         libnspr4-dev\
42         libole-storage-lite-perl\
43         libparent-perl\
44         libspreadsheet-writeexcel-perl\
45         libssh2-1-dev\
46         libtest-warn-perl\
47         libtext-aspell-perl\
48         libtext-csv-perl\
49         libuniversal-require-perl\
50         libunix-syslog-perl\
51     libuuid-tiny-perl\
52         libyaz-dev\
53         libsoap-lite-perl\
54         libbz2-dev\
55         yaz
56
57 export DEB_APACHE_MODS = \
58     expires\
59     include\
60     proxy\
61     proxy_http\
62     rewrite
63
64 export DEB_APACHE_DISMODS = \
65     deflate
66
67 export CPAN_MODULES = \
68         Business::OnlinePayment::PayPal \
69         Library::CallNumber::LC \
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
92 all: install_pgsql_client_backport_debs_91 install_yaz
93         make -f $(DIR)/Makefile.debian install_debs
94         make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
95         make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
96         make -f $(DIR)/Makefile.common install_cpan
97         make -f $(DIR)/Makefile.common install_cpan_force
98         make -f $(DIR)/Makefile.common install_libdbi
99         make -f $(DIR)/Makefile.debian install_js_sm
100         make -f $(DIR)/Makefile.debian debian_sys_config
101
102 install_yaz:
103         if [ ! -d $(YAZ) ]; then wget $(YAZ_HOST)/$(YAZ).tar.gz; fi;
104         tar xzf $(YAZ).tar.gz
105         cd $(YAZ) && ./configure && make && make install && ldconfig
106
107 install_postgres_server:
108         $(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_91)
109
110 install_pgsql_client_backport_debs_91:
111         @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
112                 then \
113                 echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
114                 "of apache2-prefork-dev), but these are the 8.4 versions and they" \
115                 "conflict with the 9.1 versions - so remove them, install the pinned" \
116                 "backports of 9.1, then reinstall the apache2-prefork-dev package.\n\n" \
117                 "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
118                 "databases that might currently exist on this machine." && \
119                 $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
120         fi
121         $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
122         $(APT_TOOL) install apache2-prefork-dev
123
124 clean:
125         make -f $(DIR)/Makefile.common clean
126         make -f $(DIR)/Makefile.debian clean
127
128 # vim:noet:sw=4:ts=4: