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