# HG changeset patch # User Pascal Bellard # Date 1296680653 -3600 # Node ID d78f9bb77b89014bca1cfa5fbf19904bf3d0e6c5 # Parent 8ac92f6cb7aee5ededec3010c464d1154f8756ad Add ppp diff -r 8ac92f6cb7ae -r d78f9bb77b89 ppp-plugins-atm/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ppp-plugins-atm/receipt Wed Feb 02 22:04:13 2011 +0100 @@ -0,0 +1,73 @@ +# SliTaz package receipt. + +PACKAGE="ppp-plugins-atm" +VERSION="2.4.5" +CATEGORY="network" +SHORT_DESC="ppp extras ADSL using pppoatm" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://ppp.samba.org/" +DEPENDS="ppp" +WANTED="ppp" +CONFIG_FILES="/etc/ppp/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/pppd/$VERSION + cp -a $_pkg/usr/lib/pppd/$VERSION/pppoatm.so $fs/usr/lib/pppd/$VERSION +} + +config_form() +{ + [ -n "$OPTIONS" -a "$OPTIONS" != "lock" ] || OPTIONS="lock +plugin pppoatm.so 8.35 +name provider-ID +noipdefault +usepeerdns +defaultroute +persist +noauth + +" + cat < + +Options + + + +
$(cat $1/etc/ppp/chap-secrets)
+ + +chap-secrets + + + +
$(cat $1/etc/ppp/pap-secrets)
+ + +pap-secrets + + + +EOT +} + +post_install() +{ + dos2unix > $1/etc/ppp/options <> $1/etc/ppp/pap-secrets <> $1/etc/ppp/chap-secrets < +$(cat $1/etc/ppp/README.scripts) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Telephone number
Account name
Account password
callback password
Options
$(cat $1/etc/ppp/chap-secrets)
chap-secrets
$(cat $1/etc/ppp/pap-secrets)
pap-secrets
Connection script
local ip
remote ip
netmask
+EOT +} + +post_install() +{ + rm -f $1/etc/ppp/README.scripts + cat > $1/etc/ppp/options <> $1/etc/ppp/pap-secrets <> $1/etc/ppp/chap-secrets < /proc/sys/net/ipv4/ip_forward + exec /etc/ppp/scripts/ppp-on ;; +stop) + exec /etc/ppp/scripts/ppp-off ;; +restart) + $0 stop + $0 start ;; +esac diff -r 8ac92f6cb7ae -r d78f9bb77b89 ppp/stuff/etc/ppp/README.scripts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ppp/stuff/etc/ppp/README.scripts Wed Feb 02 22:04:13 2011 +0100 @@ -0,0 +1,67 @@ +README.scripts - PPP scripts documentation for SliTaz GNU/Linux 2007 +=============================================================================== + + +This README.scripts file is based on the documentation found in the ppp source +package (version 2.4.4). The files in the scripts/ directory were contributed +by Al Longyear (longyear@netcom.com) and Adi Masputra (adi.masputra@sun.com). +This file was modified for SliTaz by Christophe Lincoln (pankso@slitaz.org). + + +ppp-on +------ +This script will initiate a connection to the PPP system. It will run +the chat program with the connection script as a parameter. This is a +possible security hole. However, it is simple. It is meant to replace +the previous version of ppp-on which was not very functional. + +The ppp-on script has entries for the account name, password, IP +addresses, and telephone numbers. The parameters are passed to the +pppd process and, then in turn, to the second part of the connect +script, as a set of environment variables. + +Please make sure that you put the full path name to the ppp-on-dialer +script in the reference to it in ppp-on. + + +ppp-on-dialer +------------- +This is the second part to the simple calling script, ppp-on. It +executes the chat program to connect the user with a standard UNIX +style getty/login connection sequence. + + +callback +-------- +This script may be used in lieu of the ppp-on-dialer to permit the +common modem callback sequence. You may need to make changes to the +expected prompt string for the modem. + +The script works by disabling the system's detection of the DCD +condition and working on the modem status message "NO CARRIER" which +is generated when the modem disconnects. + +It is crude. It does work for my modem connection. Use as you see fit. + + +redialer +-------- +The redialer script is a replacement for the ppp-on-dialer script. It +will do 'attack dialing' or 'demon dialing' of one or more telephone +numbers. The first number which responds will be used for a +connection. + +There is a limit of ten attempts and a 15 second delay between dialing +attempts. Both values are set in the script. + + +ppp-off +------- +This is a script which will terminate the active ppp connection. Use +as either "ppp-off" to terminate ppp0, or "ppp-off " to +terminate the connection on . For example, "ppp-off ppp2" will +terminate the ppp2 connection. + + +=============================================================================== +http://ppp.samba.org/ http://www.slitaz.org/ diff -r 8ac92f6cb7ae -r d78f9bb77b89 pppdump/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pppdump/receipt Wed Feb 02 22:04:13 2011 +0100 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="pppdump" +VERSION="2.4.5" +CATEGORY="network" +SHORT_DESC="Point to Point Protocol debug tool" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://ppp.samba.org/" +DEPENDS="ppp" +WANTED="ppp" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/sbin + cp -a $_pkg/usr/sbin/pppdump $fs/usr/sbin +} + diff -r 8ac92f6cb7ae -r d78f9bb77b89 pppstats/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pppstats/receipt Wed Feb 02 22:04:13 2011 +0100 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="pppstats" +VERSION="2.4.5" +CATEGORY="network" +SHORT_DESC="Point to Point Protocol report tool" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://ppp.samba.org/" +DEPENDS="ppp" +WANTED="ppp" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/sbin + cp -a $_pkg/usr/sbin/pppstats $fs/usr/sbin +}