provide a fallback for fetching Net-Z3950-SimpleServer collab/phasefx/prereq-fallback-for-Net-Z3950-SimpleServer
authorJason Etheridge <jason@esilibrary.com>
Wed, 9 Oct 2013 18:38:10 +0000 (14:38 -0400)
committerJason Etheridge <jason@esilibrary.com>
Wed, 9 Oct 2013 18:38:10 +0000 (14:38 -0400)
Open-ILS/src/extras/Makefile.install
Open-ILS/src/extras/install/Makefile.common

index 4ddd7cb..53aae37 100644 (file)
@@ -37,6 +37,7 @@ export JS_INSTALL_PREFIX=/usr/
 
 export LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
 export LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
+export LIBNET_Z3950_SIMPLESERVER_ALT_URL=http://evergreen-ils.org/~phasefx/ftp.indexdata.dk/$(LIBNET_Z3950_SIMPLESERVER)
 
 # The libdbi sources can be fetched from sourceforge.net.  They are stored on
 # the open-ils.org site now for ease of direct linking
index efd52d3..c785665 100644 (file)
@@ -11,7 +11,9 @@ install_cpan_force:
 
 install_net_z3950_simpleserver:
        if [ ! -f $(LIBNET_Z3950_SIMPLESERVER).tar.gz ]; \
-               then wget $(LIBNET_Z3950_SIMPLESERVER_URL).tar.gz; \
+               then \
+               (wget $(LIBNET_Z3950_SIMPLESERVER_URL).tar.gz \
+               || wget $(LIBNET_Z3950_SIMPLESERVER_ALT_URL).tar.gz); \
        fi;
        tar -zxf $(LIBNET_Z3950_SIMPLESERVER).tar.gz
        cd $(LIBNET_Z3950_SIMPLESERVER) && \