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