Hiho,

same message but with text/plain as content type for attachments

--On Sunday, March 03, 2002 12:16:22 PM +0000 alex <[EMAIL PROTECTED]> wrote:

> After feedback yesterday (and recovering from the hangover this morning)
> I've commited the RPM changes to CVS. Could people with RPM based system
> check the rpm's build for them and are useable. Change summary is:
[...]

As discussed on IRC, attached is what I use.

What I would like input on:
  * CVS contains a setup script, this is not used yet either in Alex's rpm 
nor in mine. should we call this script post-install?
  * Alex's rpm puts docs in $prefix/doc/speedtouch, AFAIK the version 
should be appended to the dir name, but I could be wrong
  * Alex, there are 3 entries in your changelog but you are still at 
release 1, I suggest incrementing release every time the spec file changes 
if version stays at 1_0.
  * I have not yet found an elegant way to add lines to modules.conf, I'm 
afraid this will not get bettur until all distros support the debian way of 
having multiple files for module configuration

Any comments welcome.

PCFE
-- 
------------------------ http://www.pcfe.de/ -----------------------
 Patrick C. F. Ernzer              | e-mail:   [EMAIL PROTECTED]
--go-and-make-your-own-disclaimer--+--------------------------------
when the server is down, you need a dead tree to read.
when the server is up, you don't need a book.
         /. rapid prototype on Wednesday February 06, @02:49PM

-- Attached file included as plaintext by Listar --
-- File: speedtouch.spec

%define name speedtouch
%define version 20020303
%define release 1

Summary: ALCATEL SpeedTouch USB ADSL modem user-space driver
Name: %{name}
Version: %{version}
Release: %{release}
#Source0: 
http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source0: %{name}-%{version}.tar.bz2
Source1: speedtouch-ppp-peers-adsl
Source2: speedtouch-stusb
URL: http://speedtouch.sourceforge.net/
Copyright: GPL
Group: System Environment/Kernel
Requires: kernel >= 2.2.18
Requires: ppp >= 2.3.11
BuildRoot: %{_tmppath}/%{name}-root
Prefix: %{_prefix}

%description
ALCATEL SpeedTouch USB ADSL modem user-space driver. This package contains
nearly all the necessary software to use your SpeedTouch USB modem under 
Linux.
It currently supports only PPPoA encapsulation.

You will need to download the closed source driver from Alcatel.
It is located at: http://www.alcatel.com/consumer/dsl/supuser.htm
Read the license, fill out the form, download the part 'Binary', extract 
with
tar xfzv <filename>, but DO NOT INSTALL. Copy the microcode (mgmt.o) to
/usr/lib/%{name} you may delete the other files as you do not need them.

It is also important that you change the default configuration files,
the ones provided will not work without editing them. You need to edit
/etc/ppp/peers/adsl and /etc/ppp/chap-secrets

You'll have to add the following two lines to your /etc/modules.conf:
  alias char-major-108 ppp_synctty
  alias tty-ldisc-13 n_hdlc

If you don't automatically get a DNS address from your provider,
you need to enter them into /etc/resolv.conf

To open the connection, type (as root):
  /usr/sbin/stusb start

#
# FIXME
#
# add hotplug functionality
# add the following lines to modules.conf
# and possibly remove the modprobe from the stusb script
#alias char-major-108 ppp_synctty
#alias tty-ldisc-13 n_hdlc
# use doc-linux/adsl-conf-pppd, that should make life easier

%prep
%setup

%build
./configure --prefix=%{buildroot}/usr --mandir=%{buildroot}/usr/share/man 
--datadir=%{buildroot}/usr/share --enable-install=$LOGNAME
make

%install
rm -rf %{buildroot}
make install
# create the directory where the microcode goes
# need to change docs and eventual scripts
# need to somehow tell the user to get the microcode from Alcatel
# preferably on installing the rpm and then extracting the file
# to this directory
mkdir -p %{buildroot}/usr/lib/%{name}
#
# install the config for pppd (must be edited by the user!)
install -D -m 644  %{SOURCE1} %{buildroot}/etc/ppp/peers/adsl
#
# install the control script for the STUSB
install -D -m 700 %{SOURCE2} %{buildroot}/usr/sbin/stusb
#
# move the docs for rpm
mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}
mv %{buildroot}/usr/share/doc/%{name}/* 
%{buildroot}/%{_docdir}/%{name}-%{version}/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
/usr/sbin/modem_run
/usr/sbin/pppoa2
/usr/sbin/pppoa3
/usr/sbin/stusb
/usr/share/man/*
%dir /usr/lib/speedtouch
%config /etc/ppp/peers/adsl
%doc %{_docdir}/%{name}-%{version}/*
#%doc %{_docdir}/%{name}/*

%changelog
* Sun Mar 03 2002 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- rebuild for 2002-03-03

* Sat Mar 02 2002 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- rebuild for 2002-03-02

* Tue Dec 04 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- rebuild for 20011007

* Fri Sep 14 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- rebuild for 20010914

* Sat Sep  8 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- made section about downloading alcatel driver more verbose in description

* Thu Sep  6 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- rebuild for 20010906

* Wed Sep  5 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- added pppoa2m and pppoa3 to filelist

* Wed Sep  5 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- cleaned up description

* Mon Sep  3 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- added a check for the presence of the microcode to the stusb script
  thanks bozo_fr for suggesting this

* Mon Sep  3 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- rebuild for 03092001
- removed mandrake patch as configure now has a new option
  for specifying the user (./configure --enable-install=$LOGNAME)
  thanks francoiss for changing the Makefile

* Sun Aug 26 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- rebuild for 15082001
- included patch from mandrake rpm

* Sat Aug 25 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- added sample config files
- added script to control the STUSB

* Thu Aug 23 2001 Patrick C. F. Ernzer <[EMAIL PROTECTED]>
- New Build

* Mon Apr  9 2001 Benoit PAPILLAULT <[EMAIL PROTECTED]> VERSION-1mdk
- initial build

# end of file


-- Attached file included as plaintext by Listar --
-- File: speedtouch-ppp-peers-adsl

#debug
#kdebug 1
noauth
usepeerdns
lock
noipdefault
defaultroute
#
# edit the following line for your provider. examples follow
# France, wanadoo: -vpi 8 -vci 35
# France, ?      : -vpi 8 -vci 67
# Belgium, ?     : -vpi 8 -vci 35
# Italy, ?       : -vpi 8 -vci 35
# UK, BTopenworld: -vpi 0 -vci 38
# Denmark, Orange: -vpi 8 -vci 35
# Netherlands, ? : -vpi 8 -vci 48
# you may use one of the following PPPoA methods:
# (pppoa2 was previously known as pppoa2m)
# pppoa2: backported new atm-aal5 stack from pppoa3
# pppoa3: uses threads
pty "/usr/sbin/pppoa3 -vpi 8 -vci 35"
nodetach
sync
#
# put your username in the following line
user "you@yourprovider"
#kdebug 7
noaccomp
nopcomp
#nomagic
noccp
#passive
#lcp-echo-interval 5
#lcp-echo-failure 30
#persist


-- Attached file included as plaintext by Listar --
-- File: speedtouch-stusb

#!/bin/bash
#
# stusb
#
# this will start and stop the Alcatel SpeedTouch USB ADSL adapter
# this script is based on the two scripts provided by Johan Dijoux
#
# [EMAIL PROTECTED]
# Mon Sep  3 2001
#
RETVAL=0
prog="stusb"
if [ ! -e /usr/lib/speedtouch/mgmt.o ]
  then echo 'You need the microcode from the Alcatel driver';
  echo 'RTFM and then';
  echo 'place it under /usr/lib/speedtouch/mgmt.o';
  exit 1;
fi


case "$1" in
        start)
                route del default
                modprobe n_hdlc >& /tmp/pppd.log
                modprobe ppp_synctty &> /tmp/pppd.log
                modem_run -f /usr/lib/speedtouch/mgmt.o -m
                pppd call adsl &> /tmp/pppd.log
                ;;
        stop)
                route del default
                kill -INT `pidof pppd`
                ;;
        *)
                echo $"Usage: $0 {start|stop}"
                RETVAL=1
esac
exit $RETVAL


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe

        

Reply via email to