]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/Makefile.install
Add basic unit tests for AuthProxy + associated fixes
[working/Evergreen.git] / Open-ILS / src / extras / Makefile.install
1 # ---------------------------------------------------------------------
2 # Author: Bill Erickson <erickson@esilibrary.com>
3 # Author: Dan Scott <dscott@laurentian.ca>
4 #
5 # Makefile to install prerequisites for OpenSRF and Evergreen
6 #
7 # Currently supports Debian (squeeze), Ubuntu (lucid), and Fedora (16).
8 # Working towards support of CentOS 5 / RHEL 5.
9 # Installs Perl prereqs, libjs with Perl wrapper, libdbi, libdbi-drivers, and libyaz
10 #
11 # usage:
12 #       make -f Makefile.install debian-squeeze
13 #       - or -
14 #       make -f Makefile.install ubuntu-lucid
15 #       - or -
16 #       make -f Makefile.install fedora16
17 #       - or -
18 #       make -f Makefile.install centos
19 #       - or -
20 #       make -f Makefile.install rhel
21 #
22 # Notes:
23 #
24 #       This makefile has been tested much more with Debian, Ubuntu, and
25 #       Fedora than CentOS, or RHEL.
26 #
27 # ---------------------------------------------------------------------
28  
29 # Make any assumptions about the shell being used explicit
30 SHELL=/bin/bash 
31
32 LIBJS=js-1.7.0
33 LIBJS_PERL=JavaScript-SpiderMonkey-0.20
34 LIBJS_URL=http://ftp.mozilla.org/pub/mozilla.org/js/$(LIBJS).tar.gz
35 LIBJS_PERL_URL=http://mirror.datapipe.net/pub/CPAN/authors/id/T/TB/TBUSCH/$(LIBJS_PERL).tar.gz
36 # used for installing libjs lib and header files
37 JS_INSTALL_PREFIX=/usr/
38
39 LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
40 LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
41
42 # The libdbi sources can be fetched from sourceforge.net.  They are stored on
43 # the open-ils.org site now for ease of direct linking
44 LIBDBI=libdbi-0.8.3
45 LIBDBI_DRIVERS=libdbi-drivers-0.8.3
46 LIBDBI_HOST=http://open-ils.org/~denials/evergreen
47
48 # We need a recent version of Yaz
49 # Debian Lenny and Ubuntu 8.10 come with 3.0.34
50 YAZ=yaz-4.2.17
51 YAZ_HOST=http://ftp.indexdata.dk/pub/yaz
52
53 # Business::OnlinePayment is not packaged on CentOS/RHEL
54 PAY_ONLINE=Business-OnlinePayment-3.00_08.tar.gz
55 PAY_ONLINE_HOST=http://ftp.perl.org/pub/CPAN/authors/id/I/IV/IVAN/
56
57 APT_TOOL=aptitude -yq
58 APT_SAFE_TOOL=aptitude -P
59 APT_BACKPORT_TOOL=aptitude -t squeeze-backports -yq
60
61 # 64 or 32 bit os?
62 LBITS=$(shell getconf LONG_BIT)
63
64 # Fedora?
65 FEDORA=$(shell uname -r | grep "\.fc[0-9][0-9]\.")
66
67 # Fedora 64-bit?
68 FEDORA_64=$(shell uname -r | grep "\.fc[0-9][0-9]\.x86_64")
69
70 #RHEL/Centos PGSQL 
71 PGSQL_HOST=http://yum.pgsqlrpms.org/reporpms/9.0
72 PGSQL_CENTOS=pgdg-centos-9.0-2.noarch.rpm
73 PGSQL_REDHAT=pgdg-redhat-9.0-2.noarch.rpm       
74
75 # Debian dependencies
76 DEBS =  \
77         apache2-prefork-dev\
78         aspell\
79         aspell-en\
80         libbusiness-creditcard-perl\
81         libbusiness-onlinepayment-authorizenet-perl\
82         libbusiness-onlinepayment-perl\
83         libdatetime-format-builder-perl\
84         libdatetime-format-iso8601-perl\
85         libdatetime-format-mail-perl\
86         libdatetime-perl\
87         libdatetime-timezone-perl\
88         libdatetime-set-perl\
89         libdbd-pg-perl\
90         libemail-send-perl\
91         libemail-simple-perl\
92         libgd-graph3d-perl\
93         liblog-log4perl-perl\
94         libmarc-record-perl\
95         libncurses5-dev\
96         libnet-ldap-perl \
97         libnet-server-perl\
98         libnet-ssh2-perl\
99         libnspr4-dev\
100         libole-storage-lite-perl\
101         libparent-perl \
102         libreadline5-dev\
103         libspreadsheet-writeexcel-perl\
104         libssh2-1-dev\
105         libtext-aspell-perl\
106         libtext-csv-perl\
107         libuniversal-require-perl\
108         libnet-ip-perl\
109         liblocale-maketext-lexicon-perl\
110         libunix-syslog-perl
111
112 # Debian Lenny and Ubuntu Intrepid bundle recent versions of yaz
113 EXTRA_DEBS = \
114         libbusiness-isbn-perl\
115         libbusiness-isbn-data-perl\
116         libmarc-charset-perl \
117         libmarc-xml-perl \
118         libnet-z3950-zoom-perl \
119         libyaz-dev \
120         yaz
121
122 EXTRA_DEBS_SQUEEZE = \
123     libuuid-tiny-perl
124
125 EXTRA_DEBS_PRECISE = \
126     libdbi-dev \
127     libdbd-pgsql \
128     libmarc-record-perl \
129     libbusiness-edi-perl \
130     liblibrary-callnumber-lc-perl \
131     libsru-perl \
132     libnet-z3950-simple2zoom-perl \
133     libuuid-tiny-perl
134
135 # Ubuntu Hardy requires libencode-perl # to get a version of Encode
136 # > 2.12 - see bug 525069.
137 EXTRA_ENCODE = \
138         libencode-perl
139
140 CENTOS = \
141         aspell \
142         aspell-devel \
143         aspell-en \
144         gd-devel \
145         libssh2-devel \
146         openssl-devel \
147         perl-parent \
148         perl-Business-CreditCard \
149         perl-Business-ISBN \
150         perl-Business-ISBN-Data \
151         perl-Business-OnlinePayment \
152         perl-Class-Data-Inheritable \
153         perl-DateTime-Format-Builder \
154         perl-DateTime-Format-Strptime \
155         perl-Ima-DBI \
156         perl-DBD-Pg \
157         perl-GD-Graph3d \
158         perl-IO-stringy \
159         perl-Spreadsheet-WriteExcel \
160         perl-Text-Aspell \
161         perl-Text-CSV
162
163 CENTOS_PERL = \
164         Encode \
165         DBIx::ContextualFetch \
166         Getopt::Long \
167         Net::SSH2 \
168         Net::XMPP \
169         Net::Z3950::ZOOM
170
171 FEDORA_RPMS = \
172         aspell \
173         aspell-en \
174         libdbi \
175         libdbi-dbd-pgsql \
176         libdbi-devel \
177         libssh2-devel \
178         libyaz \
179         libyaz-devel \
180         mod_ssl \
181         ncurses-devel \
182         ncurses-libs \
183         perl-parent \
184         perl-Business-CreditCard \
185         perl-Business-ISBN \
186         perl-Business-ISBN-Data \
187         perl-DBD-Pg \
188         perl-Email-Send \
189         perl-Email-Simple \
190         perl-GDGraph3d \
191         perl-JSON-XS \
192         perl-LDAP \
193         perl-Locale-Codes \
194         perl-Net-IP \
195         perl-Net-SSH2 \
196         perl-OLE-Storage_Lite \
197         perl-Spreadsheet-WriteExcel \
198         perl-Text-Aspell \
199         perl-Text-CSV \
200         perl-Text-CSV_XS \
201         perl-XML-Writer \
202         postgresql-devel \
203         readline-devel \
204         tcp_wrappers-devel \
205         wget \
206         yaz
207
208 # Note: B:O:AuthorizeNet 3.21 fails with https://rt.cpan.org/Public/Bug/Display.html?id=55172
209 # Should be fixed in 3.22
210 # MARC::Record 2.0.1 is required but only 2.0.0 is packaged
211 FEDORA_CPAN = \
212         Business::OnlinePayment \
213         Business::OnlinePayment::AuthorizeNet \
214         Business::OnlinePayment::PayPal \
215         MARC::Record \
216         UUID::Tiny
217
218 PGSQL_90_RPMS = \
219         postgresql90 \
220         postgresql90-contrib \
221         postgresql90-devel \
222         postgresql90-libs \
223         postgresql90-plperl \
224         postgresql90-server
225
226 PGSQL_FEDORA_RPMS = \
227         postgresql \
228         postgresql-contrib \
229         postgresql-libs \
230         postgresql-plperl \
231         postgresql-server
232
233 PGSQL_CLIENT_DEBS_90 = \
234         libpq5 \
235         libpq-dev \
236         postgresql-client-9.0
237
238 PGSQL_CLIENT_DEBS_91 = \
239         libpq5 \
240         libpq-dev \
241         postgresql-client-9.1
242
243 PGSQL_SERVER_DEBS_90 = \
244         postgresql-9.0 \
245         postgresql-contrib-9.0 \
246         postgresql-plperl-9.0 \
247         postgresql-server-dev-9.0
248
249 PGSQL_SERVER_DEBS_91 = \
250         postgresql-9.1 \
251         postgresql-contrib-9.1 \
252         postgresql-plperl-9.1 \
253         postgresql-server-dev-9.1
254
255 DEB_APACHE_MODS = \
256     expires\
257     include\
258     proxy\
259     proxy_http\
260     rewrite
261
262 DEB_APACHE_DISMODS = \
263     deflate
264
265 # Chronically unpackaged CPAN modules
266 CPAN_MODULES = \
267         Business::EDI \
268         Business::OnlinePayment::PayPal \
269         Library::CallNumber::LC \
270         Net::Z3950::Simple2ZOOM \
271         Template::Plugin::POSIX \
272         SRU
273
274 # More chronically unpackaged CPAN modules (available in Squeeze though)
275 CPAN_MODULES_MORE = \
276     Business::CreditCard::Object \
277     MARC::Record \
278     Net::SSH2 \
279     UUID::Tiny
280
281 # Are we sure most distros don't come with an acceptable version of Safe.pm?
282 CPAN_MODULES_SAFE = \
283         Safe
284
285 # Recent Debian/Ubuntus have libmarc-charset-perl, libmarc-xml-perl, libnet-z3950-zoom-perl
286 CPAN_MODULES_MARC = \
287         Business::ISBN \
288         Business::ISBN::Data \
289         MARC::Charset \
290         MARC::File::XML \
291         Net::Z3950::ZOOM
292
293 CPAN_MODULES_MARC_RECORD = \
294         MARC::Record
295
296 CPAN_MODULES_FORCE = \
297         Class::DBI::Frozen::301
298
299 # Lucid Lynx needs the following additional CPAN modules.
300 CPAN_MODULES_LUCID = \
301     RPC::XML::Function
302
303 # Precise Pangolin needs the following CPAN modules. All others are
304 # avaialalbe as debs.
305 CPAN_MODULES_PRECISE = \
306     Business::CreditCard::Object \
307     Business::OnlinePayment::PayPal \
308     Template::Plugin::POSIX \
309     RPC::XML::Function
310
311 # ----------------------------------------------------------------------------
312
313 all: 
314         @echo "please specify an OS" && exit 0
315
316 # these should be the same for any distro
317 install: install_cpan install_js_sm install_cpan_force
318
319 centos: install_centos_pgsql centos_like
320 rhel: install_redhat_pgsql centos_like
321 centos_like: install_centos_rpms install_yaz install_cpan_marc install install_centos_perl create_ld_local install_cpan_safe install_libdbi
322
323 fedora16: install_fedora_rpms install_cpan_fedora install_cpan_marc install
324
325 debian-squeeze: squeeze generic_debian
326 squeeze: install_pgsql_client_backport_debs_91  install_extra_debs_squeeze
327 generic_debian: install_debs install_yaz test_for_libdbi_pkg install debian_sys_config install_libdbi
328
329 # Needs for Ubuntu Lucid Lynx (10.04 LTS):
330 ubuntu-lucid: lucid generic_ubuntu
331 lucid: install_pgsql_client_debs_90 install_extra_debs \
332        install_cpan_marc_record install_yaz install_cpan_more \
333        install_cpan_safe install_cpan_lucid install test_for_libdbi_pkg \
334        install_libdbi
335
336 # Needs for Ubuntu Precise Pangolin (12.04 LTS):
337 ubuntu-precise: precise generic_ubuntu
338 precise: install_pgsql_client_debs_91 install_extra_debs_precise \
339          install_cpan_precise install_js_sm install_cpan_force
340
341 # We don't do the "install" target on generic_ubuntu because newer
342 # Ubuntu releases, like newer Debian releases, include packages for
343 # many of those prerequisites.
344 generic_ubuntu: install_debs debian_sys_config
345
346 # - COMMON TARGETS ---------------------------------------------------------
347
348 # Install the CPAN modules
349 install_cpan: install_net_z3950_simpleserver
350         for m in $(CPAN_MODULES); do perl -MCPAN -e "install \"$$m\";"; done
351
352 install_cpan_more: 
353         for m in $(CPAN_MODULES_MORE); do perl -MCPAN -e "install \"$$m\";"; done
354
355 # Install the CPAN modules for MARC functionality
356 install_cpan_marc: install_cpan_marc_record
357         for m in $(CPAN_MODULES_MARC); do perl -MCPAN -e "install \"$$m\";"; done
358
359 install_cpan_marc_record:
360         for m in $(CPAN_MODULES_MARC_RECORD); do perl -MCPAN -e "install \"$$m\";"; done
361
362 install_cpan_force:
363         for m in $(CPAN_MODULES_FORCE); do \
364                 echo "force install $$m" | perl -MCPAN -e shell ;\
365         done
366
367 # Install the Safe Perl module
368 # Is this really unpackaged everywhere except for Fedora?
369 install_cpan_safe: 
370         for m in $(CPAN_MODULES_SAFE); do perl -MCPAN -e "install \"$$m\";"; done
371
372 # Install the CPAN modules for Fedora
373 install_cpan_fedora: 
374         for m in $(FEDORA_CPAN); do \
375                 echo "force install $$m" | perl -MCPAN -e shell;\
376         done
377
378 # Install the CPAN modules needed for Lucid
379 install_cpan_lucid:
380         for m in $(CPAN_MODULES_LUCID); do perl -MCPAN -e "install \"$$m\";"; done
381
382 # Install the CPAN modules needed for Precise
383 install_cpan_precise:
384         for m in $(CPAN_MODULES_PRECISE); do perl -MCPAN -e "install \"$$m\";"; done
385
386 # Install a known working version of YAZ
387 install_yaz:    
388         if [ ! -d $(YAZ) ]; then wget $(YAZ_HOST)/$(YAZ).tar.gz; fi;
389         tar xzf $(YAZ).tar.gz
390         cd $(YAZ) && ./configure && make && make install && ldconfig
391
392 # Install the custom spidermonkey libs and JavaScript-SpiderMonkey Perl modules
393 install_js_sm: install_libjs install_spidermonkey
394
395 install_libjs: 
396         if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
397         tar -zxf $(LIBJS).tar.gz
398         cd js/src/ && JS_DIST=/usr make -f Makefile.ref
399         mkdir -p $(JS_INSTALL_PREFIX)/include/js/
400         cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
401         cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
402         if [ ! -z $(FEDORA_64) ]; then \
403                 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib64/ && \
404                 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib64/; \
405         else \
406                 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/ && \
407                 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/; \
408         fi;
409         ldconfig
410
411 install_spidermonkey:
412         if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi;
413         tar -zxf $(LIBJS_PERL).tar.gz
414         if [ ! -z $(FEDORA_64) ]; then \
415                 sed -i -e 's/"\/usr\/lib"/"\/usr\/lib64"/' $(LIBJS_PERL)/Makefile.PL ; \
416         fi;
417         if [ ! -z $(FEDORA) ]; then \
418                 sed -i -e 's/js32.dll/libjs.so/' $(LIBJS_PERL)/Makefile.PL ; \
419         fi;
420         cd $(LIBJS_PERL) && perl Makefile.PL -E4X && make && make test && make install
421
422 install_net_z3950_simpleserver:
423         if [ ! -f $(LIBNET_Z3950_SIMPLESERVER).tar.gz ]; then wget $(LIBNET_Z3950_SIMPLESERVER_URL).tar.gz; fi;
424         tar -zxf $(LIBNET_Z3950_SIMPLESERVER).tar.gz
425         cd $(LIBNET_Z3950_SIMPLESERVER) && perl Makefile.PL && make && make test && make install
426
427 # On Ubuntu and possibly Debian, the libdbi0 package prevents the 
428 # compiled-from-source version from being used and breaks the install.
429 # This package might get installed depending on the install-time choices
430 # for the distro. Test for its existence; if it's there, throw an error
431 # message and exit.
432 test_for_libdbi_pkg:
433                 @if [ "$$(apt-cache policy libdbi0 | grep Installed | grep none | wc -l)" -eq 0 ]; then \
434                                 echo "*** Detected locally installed libdbi0 package; you must remove this"; \
435                                 echo "*** with a command like 'aptitude remove libdbi0' before proceeding"; \
436                                 echo "*** to successfully install Evergreen."; \
437                                 echo; \
438                                 echo "*** Note: this may break other applications on your system."; \
439                                 exit 0; \
440                 fi;
441
442 # Install libdbi and the postgres drivers
443 install_libdbi:
444         if [ ! -d $(LIBDBI) ]; then wget $(LIBDBI_HOST)/$(LIBDBI).tar.gz; fi;
445         if [ ! -d $(LIBDBI_DRIVERS) ]; then wget $(LIBDBI_HOST)/$(LIBDBI_DRIVERS).tar.gz; fi;
446         tar -zxf $(LIBDBI).tar.gz
447         tar -zxf $(LIBDBI_DRIVERS).tar.gz
448         cd $(LIBDBI) && ./configure --disable-docs && make all install
449         cd $(LIBDBI_DRIVERS) && ./configure  \
450                 --disable-docs --with-pgsql --enable-libdbi && make all install  
451
452 clean:
453         make -C $(LIBDBI) clean
454         make -C $(LIBDBI_DRIVERS) clean
455         make -C $(LIBJS_PERL) clean
456         make -f Makefile.ref -C js/src/ clean
457
458
459 # ------------------------------------------------------------------
460 # - DEBIAN ---------------------------------------------------------
461
462 debian_sys_config: 
463         # link the apache modules in
464         for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
465         # keep the bad apache modules away
466         for m in $(DEB_APACHE_DISMODS); do a2dismod $$m; done;
467         # refresh the dynamic library cache
468         ldconfig
469
470 # Install the debian-specific dependencies
471 install_debs:
472         $(APT_TOOL) install $(DEBS)
473
474 install_pgsql_client_debs_90:
475         @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
476                 then \
477                 echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
478                 "of apache2-prefork-dev), but these are the 8.4 versions and they" \
479                 "conflict with the 9.0 versions - so remove them, install the pinned" \
480                 "backports of 9.0, then reinstall the apache2-prefork-dev package.\n\n" \
481                 "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
482                 "databases that might currently exist on this machine." && \
483                 $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
484         fi
485         $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_90)
486         $(APT_TOOL) install apache2-prefork-dev
487
488 install_pgsql_server_debs_90:
489         $(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_90)
490
491 install_pgsql_client_backport_debs_91:
492         @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
493                 then \
494                 echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
495                 "of apache2-prefork-dev), but these are the 8.4 versions and they" \
496                 "conflict with the 9.0 versions - so remove them, install the pinned" \
497                 "backports of 9.0, then reinstall the apache2-prefork-dev package.\n\n" \
498                 "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
499                 "databases that might currently exist on this machine." && \
500                 $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
501         fi
502         $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
503         $(APT_TOOL) install apache2-prefork-dev
504
505 install_pgsql_client_debs_91:
506         $(APT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
507
508 install_pgsql_server_debs_91:
509         $(APT_TOOL) install $(PGSQL_SERVER_DEBS_91)
510
511 install_pgsql_server_backport_debs_91:
512         $(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_91)
513
514 # Install the debian-specific dependencies for more modern distros
515 install_extra_debs_squeeze: install_extra_debs
516         $(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
517
518 # Install dependencies for Ubuntu 12.04:
519 install_extra_debs_precise: install_extra_debs
520         $(APT_TOOL) install $(EXTRA_DEBS_PRECISE)
521
522 install_extra_debs:
523         $(APT_TOOL) install $(EXTRA_DEBS)
524
525 # Install specific modules required by Ubuntu Hardy - see bug 525069
526 install_extra_encode:
527         $(APT_TOOL) install $(EXTRA_ENCODE)
528
529 # ------------------------------------------------------------------
530
531 # FEDORA
532 install_fedora_rpms:
533         yum -y update
534         yum -y install $(FEDORA_RPMS)
535
536 install_fedora_pgsql_server:
537         yum -y install $(PGSQL_FEDORA_RPMS)
538
539 # CENTOS
540 install_centos_rpms:
541         yum -y install $(CENTOS)
542         yum -y update
543         if [ $(LBITS) -eq 64 ]; then \
544                 ln -sf /usr/lib64/libpq.* /usr/lib/ && \
545                 ln -sf /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so /usr/lib/ && \
546                 ldconfig ; \
547         fi;
548         if [ $(LBITS) -eq 32 ]; then \
549                 ln -sf /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so /usr/lib && \
550                 ldconfig ; \
551         fi;
552
553 install_centos_pgsql:
554         if [ $(LBITS) -eq 64 ]; then yum remove -y postgresql-libs-8.1*i386 apr-util-devel-*i386 ; fi;
555         wget $(PGSQL_HOST)/$(PGSQL_CENTOS)
556         rpm -Uvh --force ./$(PGSQL_CENTOS)
557         yum update -y
558         yum -y install $(PGSQL_90_RPMS)
559
560 install_redhat_pgsql:
561         if [ $(LBITS) -eq 64 ]; then yum remove -y postgresql-libs-8.1*i386 apr-util-devel-*i386 ; fi;
562         wget $(PGSQL_HOST)/$(PGSQL_REDHAT)
563         rpm -Uvh --force ./$(PGSQL_REDHAT)
564         yum update -y
565         yum -y install $(PGSQL_90_RPMS)
566
567 install_centos_perl:
568         for m in $(CENTOS_PERL); do perl -MCPAN -e "install \"$$m\";"; done
569         echo "force install Business::OnlinePayment::AuthorizeNet" | perl -MCPAN -e shell
570         echo "force install Scalar::Util" | perl -MCPAN -e shell        
571
572 # We need to add /usr/local/lib to the ldconfig list of directories on CentOS,
573 # if it is not already there
574 create_ld_local:
575         if [ "$$(ldconfig -v 2> /dev/null | grep '^/usr/local/lib' | wc -l)" -eq 0 ]; then \
576                 echo '/usr/local/lib' >> /etc/ld.so.conf.d/local.conf; \
577                 ldconfig; \
578         fi;
579
580 # vim:noet:sw=4:ts=4: