diff --git a/misc/Makefile b/misc/Makefile index d1f288ef0eb3..b0c68ad7ab56 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -1,219 +1,220 @@ # $FreeBSD$ # SUBDIR += 40upgrade SUBDIR += 41upgrade SUBDIR += 42upgrade SUBDIR += 44bsd-more SUBDIR += Howto SUBDIR += achievo SUBDIR += aclgen SUBDIR += acron SUBDIR += alevt SUBDIR += amanda SUBDIR += amanda24-client SUBDIR += amanda24-server SUBDIR += argparse SUBDIR += ari-yahoo SUBDIR += asbutton SUBDIR += astrolog SUBDIR += bb SUBDIR += bbjd SUBDIR += biblereader SUBDIR += bidwatcher SUBDIR += birthday SUBDIR += bogosort SUBDIR += bottlerocket SUBDIR += boxes SUBDIR += brs SUBDIR += buffer SUBDIR += cassowary SUBDIR += chord SUBDIR += cmatrix SUBDIR += colorls SUBDIR += colortail SUBDIR += compat22 SUBDIR += compat3x SUBDIR += compat4x SUBDIR += cpuid SUBDIR += crosspad SUBDIR += cstream SUBDIR += cuecat SUBDIR += cwish SUBDIR += datedif SUBDIR += deco SUBDIR += dejagnu SUBDIR += delay SUBDIR += diction SUBDIR += dirtree SUBDIR += display SUBDIR += dnetc SUBDIR += dog SUBDIR += dotfile SUBDIR += emma SUBDIR += estic SUBDIR += ewipe SUBDIR += explosions SUBDIR += ezload SUBDIR += fd SUBDIR += felis SUBDIR += fep SUBDIR += figlet SUBDIR += figlet-fonts SUBDIR += findutils SUBDIR += fortuneit SUBDIR += freedialog SUBDIR += ftree SUBDIR += gctpc SUBDIR += geekcode SUBDIR += git SUBDIR += gkrellscore SUBDIR += gkrellweather SUBDIR += gman SUBDIR += gnomepm SUBDIR += gnomeuserdocs SUBDIR += gnomeutils SUBDIR += gnuls SUBDIR += goldstr SUBDIR += gone SUBDIR += gonvert SUBDIR += gplbp SUBDIR += granulate SUBDIR += grc SUBDIR += grdb SUBDIR += grun SUBDIR += gtkfind SUBDIR += gtl SUBDIR += gwhich SUBDIR += hb SUBDIR += hello SUBDIR += heyu SUBDIR += histring SUBDIR += instant-server SUBDIR += instant-workstation SUBDIR += iselect SUBDIR += jargon SUBDIR += jive SUBDIR += kcd SUBDIR += kde2-i18n SUBDIR += kdeutils2 SUBDIR += kdirstat SUBDIR += khotkeys SUBDIR += kp SUBDIR += kwatch SUBDIR += lc SUBDIR += less SUBDIR += libh SUBDIR += lifelines SUBDIR += lile SUBDIR += logsurfer SUBDIR += lv SUBDIR += magicpoint SUBDIR += man.el SUBDIR += mango SUBDIR += matrix-kmod SUBDIR += mc SUBDIR += menushki SUBDIR += metatheme SUBDIR += mgp-mode.el SUBDIR += misterproper SUBDIR += mmv SUBDIR += most SUBDIR += moviedb SUBDIR += mshell SUBDIR += muuz SUBDIR += nsf SUBDIR += numchar SUBDIR += nwrite SUBDIR += orville-write SUBDIR += p5-Array-PrintCols SUBDIR += p5-Business-CreditCard SUBDIR += p5-DataCash SUBDIR += p5-File-CounterFile SUBDIR += p5-Finance-Quote SUBDIR += p5-Geo-Weather SUBDIR += p5-I18N-Charset SUBDIR += p5-I18N-LangTags SUBDIR += p5-LEGO-RCX SUBDIR += p5-Locale-Codes SUBDIR += peq SUBDIR += patchutils SUBDIR += pbs SUBDIR += pdmenu SUBDIR += pg SUBDIR += pinfo SUBDIR += pkg_tarup SUBDIR += porteasy SUBDIR += projectionlib SUBDIR += proxyper SUBDIR += py-distutils SUBDIR += pybliographer SUBDIR += pypanda SUBDIR += qbrew SUBDIR += qhacc SUBDIR += qlas SUBDIR += quantlib SUBDIR += quotes SUBDIR += quranref SUBDIR += reed SUBDIR += rfc SUBDIR += rname SUBDIR += rtfm SUBDIR += salias SUBDIR += screen SUBDIR += scriptkit SUBDIR += seizedesktop SUBDIR += sh-utils SUBDIR += shc SUBDIR += shuffle SUBDIR += sloccount SUBDIR += sls SUBDIR += smssend SUBDIR += snowflake + SUBDIR += speedtouch_usb SUBDIR += splitvt SUBDIR += sshbuddy SUBDIR += stan SUBDIR += tcb SUBDIR += team SUBDIR += tet SUBDIR += tkcron SUBDIR += tkinfo SUBDIR += tkman SUBDIR += tkregexp SUBDIR += tkrunit SUBDIR += ttyrec SUBDIR += tvguide SUBDIR += txt2regex SUBDIR += uf-view SUBDIR += uk-phone SUBDIR += uk-postcodes SUBDIR += unclutter SUBDIR += upclient SUBDIR += us-zipcodes SUBDIR += vbidecode SUBDIR += vera SUBDIR += videotext SUBDIR += viz SUBDIR += whichman SUBDIR += wmScoreBoard SUBDIR += wmcp SUBDIR += wmmand SUBDIR += wmpal SUBDIR += wmstock SUBDIR += wmweather SUBDIR += wmx10 SUBDIR += xd SUBDIR += xdelta SUBDIR += xenmenu SUBDIR += xgas SUBDIR += xless SUBDIR += xosd SUBDIR += xpns SUBDIR += xquote SUBDIR += xtail SUBDIR += xtar SUBDIR += yaucg SUBDIR += yaunc SUBDIR += ytree .include diff --git a/misc/speedtouch_usb/Makefile b/misc/speedtouch_usb/Makefile new file mode 100644 index 000000000000..c1350c47e359 --- /dev/null +++ b/misc/speedtouch_usb/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: speedtouch_usb +# Date created: 7 August 2001 +# Whom: Nick Hibma +# +# $FreeBSD$ +# + +PORTNAME= speedtouch +PORTVERSION= 21062001 +CATEGORIES= misc +MASTER_SITES= http://www.xsproject.org/speedtouch/files/ \ + http://www.alcatel.com/consumer/dsl/ +DISTFILES= speedtouch-${PORTVERSION}.tar.gz \ + speedmgmt.tar.gz + +MAINTAINER= ports@FreeBSD.org + +do-install: + [ -d ${PREFIX} ] || ${MKDIR} ${PREFIX} + ${INSTALL_PROGRAM} ${WRKSRC}/modem_run ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/pppoa2 ${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKDIR}/mgmt/mgmt.o ${PREFIX}/libdata + + @${ECHO} "#!/bin/sh" > ${WRKDIR}/adsl.sh.sample + @${ECHO} "PREFIX=${PREFIX}" >> ${WRKDIR}/adsl.sh.sample + ${CAT} files/adsl.sh.sample >> ${WRKDIR}/adsl.sh.sample + ${INSTALL_SCRIPT} ${WRKDIR}/adsl.sh.sample ${PREFIX}/etc/rc.d/ + + ${INSTALL_DATA} files/adsl.conf.sample /etc/ppp/ + + @${CAT} files/configuration + +.include diff --git a/misc/speedtouch_usb/distinfo b/misc/speedtouch_usb/distinfo new file mode 100644 index 000000000000..dcd0a9a57c36 --- /dev/null +++ b/misc/speedtouch_usb/distinfo @@ -0,0 +1,2 @@ +MD5 (speedmgmt.tar.gz) = 102dc7a457c3942ee21dc834db68eac2 +MD5 (speedtouch-21062001.tar.gz) = a82e7feceedfa0ef5836f11b15a7286d diff --git a/misc/speedtouch_usb/files/adsl.conf.sample b/misc/speedtouch_usb/files/adsl.conf.sample new file mode 100644 index 000000000000..2e91951cb960 --- /dev/null +++ b/misc/speedtouch_usb/files/adsl.conf.sample @@ -0,0 +1,22 @@ +# Sample configuration for the SpeedTouch ADSL adapter. +# +# You will have to fill in: +# - +# - +# - . is defined by your provider. Common values are: +# - 8.35 or 8.67 in France +# - 0.38 in the UK +# - 8.48 in the Netherlands +# or check the value used in Windows. + +adsl: + set authname + set authkey + set device !"pppoa2 -vpi -vci -v 1" + accept chap + set speed sync + set timeout 900 + set dial "" + set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 + add default HISADDR + enable dns diff --git a/misc/speedtouch_usb/files/adsl.sh.sample b/misc/speedtouch_usb/files/adsl.sh.sample new file mode 100644 index 000000000000..722e77c63c97 --- /dev/null +++ b/misc/speedtouch_usb/files/adsl.sh.sample @@ -0,0 +1,14 @@ +ISP=adsl +PATH=$PATH:$PREFIX/bin + +case $1 in +stop) + killall modem_run + killall ppp + ;; +*) + modem_run -f $PREFIX/libdata/mgmt.o -m \ + && ppp -quiet -auto $ISP \ + && echo -n ' ppp($ISP)' + ;; +esac diff --git a/misc/speedtouch_usb/files/configuration b/misc/speedtouch_usb/files/configuration new file mode 100644 index 000000000000..5713cf892f15 --- /dev/null +++ b/misc/speedtouch_usb/files/configuration @@ -0,0 +1,16 @@ +---------------------------------------------------------------------- +Installation instructions: + +- Your kernel will need to contain support for USB and the ugen device. + +- Your /etc/ppp/ppp.conf file will need to contain an entry for the ADSL +connection. A sample has been installed as /etc/ppp/adsl.conf.sample. + +- You can then start your connection with the following sequence: + modem_run -f $PREFIX/libdata/mgmt.o -m + ppp -ddial adsl +or use the sample rc.d file in + $PREFIX/etc/rc.d/adsl.sh.sample + +For more information see the INSTALL-BSD in the source directory. +----------------------------------------------------------------------- diff --git a/misc/speedtouch_usb/files/patch-modem_run.c b/misc/speedtouch_usb/files/patch-modem_run.c new file mode 100644 index 000000000000..5ef54dc7a05b --- /dev/null +++ b/misc/speedtouch_usb/files/patch-modem_run.c @@ -0,0 +1,67 @@ +--- modem_run.c.orig Tue Aug 7 22:57:21 2001 ++++ modem_run.c Tue Aug 7 23:08:42 2001 +@@ -216,6 +216,7 @@ + printf("usage: modem_run [-v] [-f microcode] [-m]\n"); + printf(" -v : verbose mode\n"); + printf(" -f microcode : upload this microcode file first\n"); ++ printf(" -d device : use this USB device\n"); + printf(" -m : monitor the line\n"); + printf(" --help : this message\n"); + exit (-1); +@@ -611,6 +612,7 @@ + int verbose = 0, monitoring = 0; + unsigned char buf[TOTAL+1000], prevbuf[TOTAL]; + const char * file = NULL; ++ const char * device = NULL; + + for (i=1;i Where is this crappy modem ?!\n", this_process); +- return(-1); ++ if(fdusb == NULL && verbose) { ++ printf("< pid=%d > Where is this crappy modem ?!\n", this_process); ++ return(-1); ++ } ++ } else { ++ fdusb = pusb_open(device); ++ ++ if(fdusb == NULL && verbose) { ++ printf("< pid=%d > The modem is not at %s\n", this_process, device); ++ return(-1); ++ } + } + + /*Debug message*/ diff --git a/misc/speedtouch_usb/pkg-comment b/misc/speedtouch_usb/pkg-comment new file mode 100644 index 000000000000..62d633810d2e --- /dev/null +++ b/misc/speedtouch_usb/pkg-comment @@ -0,0 +1 @@ +Support for the SpeedTouch ADSL USB adapter diff --git a/misc/speedtouch_usb/pkg-descr b/misc/speedtouch_usb/pkg-descr new file mode 100644 index 000000000000..be6dd73685b4 --- /dev/null +++ b/misc/speedtouch_usb/pkg-descr @@ -0,0 +1,7 @@ +Driver for the SpeedTouch ADSL USB adapter. + +It uses a closed source kernel provided by Alcatel, surrounded +by some glue code to make it work on Linux, FreeBSD, NetBSD and +OpenBSD. + +WWW: http://www.xsproject.org/speedtouch/index.html diff --git a/misc/speedtouch_usb/pkg-plist b/misc/speedtouch_usb/pkg-plist new file mode 100644 index 000000000000..c9e8d9b1c88e --- /dev/null +++ b/misc/speedtouch_usb/pkg-plist @@ -0,0 +1,3 @@ +bin/modem_run +bin/pppoa2 +libdata/mgmt.o