[zaptel-commits] file: branch file/zaptel-firmware r1801 - /team/file/zaptel-firmware/

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Mon Jan 8 10:58:05 MST 2007


Author: file
Date: Mon Jan  8 11:58:04 2007
New Revision: 1801

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1801
Log:
We now look for something to download files with so we might as well use it for the B410P target.

Modified:
    team/file/zaptel-firmware/Makefile
    team/file/zaptel-firmware/makeopts.in

Modified: team/file/zaptel-firmware/Makefile
URL: http://svn.digium.com/view/zaptel/team/file/zaptel-firmware/Makefile?view=diff&rev=1801&r1=1800&r2=1801
==============================================================================
--- team/file/zaptel-firmware/Makefile (original)
+++ team/file/zaptel-firmware/Makefile Mon Jan  8 11:58:04 2007
@@ -313,11 +313,22 @@
 	./checkstack *.o
 
 b410p:
-	@wget -V >/dev/null || (echo "You need wget in order to install the drivers" ; false)
-	[ -f misdn-b410p.tar.bz ] || wget ftp://ftp.digium.com/pub/zaptel/b410p/misdn-b410p.tar.gz
+	@if test "$(DOWNLOAD)" = ":" ; then \
+		echo "**************************************************"; \
+		echo "***                                            ***"; \
+		echo "*** You must have either wget or fetch to be   ***"; \
+		echo "*** able to automatically download and install ***"; \
+		echo "*** b410p support.                             ***"; \
+		echo "***                                            ***"; \
+		echo "*** Please install one of these.               ***"; \
+		echo "***                                            ***"; \
+		echo "**************************************************"; \
+		exit 1; \
+	fi
+	[ -f misdn-b410p.tar.bz ] || $(DOWNLOAD) ftp://ftp.digium.com/pub/zaptel/b410p/misdn-b410p.tar.gz
 	tar -zxf misdn-b410p.tar.gz
 	$(MAKE) -C misdn install
-	[ -f mISDNuser.tar.gz ] || wget ftp://ftp.digium.com/pub/zaptel/b410p/mISDNuser.tar.gz
+	[ -f mISDNuser.tar.gz ] || $(DOWNLOAD) ftp://ftp.digium.com/pub/zaptel/b410p/mISDNuser.tar.gz
 	tar -zxf mISDNuser.tar.gz
 	$(MAKE) -C mISDNuser install
 

Modified: team/file/zaptel-firmware/makeopts.in
URL: http://svn.digium.com/view/zaptel/team/file/zaptel-firmware/makeopts.in?view=diff&rev=1801&r1=1800&r2=1801
==============================================================================
--- team/file/zaptel-firmware/makeopts.in (original)
+++ team/file/zaptel-firmware/makeopts.in Mon Jan  8 11:58:04 2007
@@ -22,6 +22,8 @@
 sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 
+DOWNLOAD=@DOWNLOAD@
+
 NEWT_LIB=@NEWT_LIB@
 NEWT_INCLUDE=@NEWT_INCLUDE@
 



More information about the zaptel-commits mailing list