summaryrefslogtreecommitdiff
path: root/net/speedtouch/patches
diff options
context:
space:
mode:
authorabs <abs>2001-07-29 01:18:33 +0000
committerabs <abs>2001-07-29 01:18:33 +0000
commitead789b39b567d018691cecbc1bdb8e90498718c (patch)
treee99843e9c1042fdf6f0913666c5956f5cd72dc57 /net/speedtouch/patches
parent09aebdc6fa5e0b8dbcfb0c9897dfd4640b670f0a (diff)
downloadpkgsrc-ead789b39b567d018691cecbc1bdb8e90498718c.tar.gz
Import speedtouch-21062001:
Driver for the ALCATEL SpeedTouch USB ADSL modem. It currently only supports PPPoA encapsulation.
Diffstat (limited to 'net/speedtouch/patches')
-rw-r--r--net/speedtouch/patches/patch-aa45
-rw-r--r--net/speedtouch/patches/patch-ab13
-rw-r--r--net/speedtouch/patches/patch-ac14
3 files changed, 72 insertions, 0 deletions
diff --git a/net/speedtouch/patches/patch-aa b/net/speedtouch/patches/patch-aa
new file mode 100644
index 00000000000..ef2061e099a
--- /dev/null
+++ b/net/speedtouch/patches/patch-aa
@@ -0,0 +1,45 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/29 01:18:33 abs Exp $
+
+--- Makefile.orig Thu Jun 21 21:58:46 2001
++++ Makefile
+@@ -17,6 +17,10 @@
+ # The next path is Linux specific
+ CFLAGS += -I/usr/src/linux/include
+
++PREFIX ?= /usr/local
++INSTALL_PROGRAM ?= cp
++INSTALL_DATA ?= cp
++
+ COMMON_SRC = pusb.c pool.c
+ COMMON_OBJ = $(COMMON_SRC:%.c=%.o)
+
+@@ -44,12 +48,16 @@
+
+ clean:
+ $(RM) $(PPPOA_BIN) $(MODEM_BIN) $(PPPOA_OBJ) $(MODEM_OBJ) \
+- $(COMMON_OBJ) $(DEP)
++ $(COMMON_OBJ) $(DEP) ppp.conf.sample.out
+
+ install:
+- mkdir -p /usr/local/bin
+- cp $(MODEM_BIN) /usr/local/bin/$(MODEM_BIN)
+- cp $(PPPOA_BIN) /usr/local/bin/$(PPPOA_BIN)
++ mkdir -p ${PREFIX}/sbin
++ ${INSTALL_PROGRAM} $(MODEM_BIN) ${PREFIX}/sbin/$(MODEM_BIN)
++ ${INSTALL_PROGRAM} $(PPPOA_BIN) ${PREFIX}/sbin/$(PPPOA_BIN)
++ mkdir -p ${PREFIX}/share/examples/speedtouch
++ sed "s:/usr/local:${PREFIX}:g" ppp.conf.sample > ppp.conf.sample.out
++ ${INSTALL_DATA} ppp.conf.sample.out ${PREFIX}/share/examples/speedtouch/ppp.conf
++ ${INSTALL_DATA} INSTALL-BSD ${PREFIX}/share/doc/speedtouch.txt
+ # mkdir -p /etc/ppp/peers
+ # cp adsl /etc/ppp/peers/adsl
+ # mkdir -p /etc/rc.d/init.d
+@@ -57,7 +65,7 @@
+ # ( cd /etc/rc.d/init.d ; chkconfig adsl.sh on)
+
+ uninstall:
+- $(RM) /usr/local/bin/$(MODEM_BIN) /usr/local/bin/$(PPPOA_BIN)
++ $(RM) ${PREFIX}/sbin/$(MODEM_BIN) ${PREFIX}/sbin/$(PPPOA_BIN)
+
+ # The target I used to make the speedtouch-DDMMYYYY.tar.gz
+ targz:
diff --git a/net/speedtouch/patches/patch-ab b/net/speedtouch/patches/patch-ab
new file mode 100644
index 00000000000..177aa6a862d
--- /dev/null
+++ b/net/speedtouch/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/07/29 01:18:33 abs Exp $
+
+--- ppp.conf.sample.orig Sun Jul 29 01:39:43 2001
++++ ppp.conf.sample
+@@ -7,7 +7,7 @@
+ accept chap
+ # These are the value of vpi and vci in france.
+ # Check in the INSTALL-BSD to see value for uk or netherland
+- set device !"/usr/local/bin/pppoa2 -vpi 8 -vci 35"
++ set device !"/usr/local/sbin/pppoa2 -vpi 8 -vci 35"
+ set speed sync
+ set authname login@provider
+ set authkey password
diff --git a/net/speedtouch/patches/patch-ac b/net/speedtouch/patches/patch-ac
new file mode 100644
index 00000000000..f53f89f6c8c
--- /dev/null
+++ b/net/speedtouch/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/07/29 01:18:33 abs Exp $
+
+--- pppoa2.c.orig Wed Jun 13 21:56:03 2001
++++ pppoa2.c
+@@ -78,7 +78,9 @@
+ #include <termios.h> /* N_HDLC & TIOCSETD */
+ #include <sys/resource.h> /* setpriority() */
+ #include <string.h>
++#ifndef __NetBSD__
+ #include <sched.h> /* for sched_setscheduler */
++#endif
+ #include <limits.h> /* for LONG_MAX */
+ #include <sys/types.h>
+ #include <sys/socket.h>