From c7745cea8e8831f535cf03b32c4c8fc043658961 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 14 Jan 2008 18:29:04 +0000 Subject: ppp-gprs 1.0: Set of pppd configs to easy connect to GPRS. * ... Eventually from anywhere in the world ;-). * These are indended to be light and easy. Please add only what's really required, not some gossip commands here. * Tested to work. --- packages/ppp/ppp-gprs/.mtn2git_empty | 0 packages/ppp/ppp-gprs/chats/.mtn2git_empty | 0 packages/ppp/ppp-gprs/chats/chat-gprs | 9 ++++ packages/ppp/ppp-gprs/peers/.mtn2git_empty | 0 packages/ppp/ppp-gprs/peers/_gprs | 68 +++++++++++++++++++++++++++ packages/ppp/ppp-gprs/peers/_gprs-ap-internet | 3 ++ packages/ppp/ppp-gprs_1.0.bb | 22 +++++++++ 7 files changed, 102 insertions(+) create mode 100644 packages/ppp/ppp-gprs/.mtn2git_empty create mode 100644 packages/ppp/ppp-gprs/chats/.mtn2git_empty create mode 100644 packages/ppp/ppp-gprs/chats/chat-gprs create mode 100644 packages/ppp/ppp-gprs/peers/.mtn2git_empty create mode 100644 packages/ppp/ppp-gprs/peers/_gprs create mode 100644 packages/ppp/ppp-gprs/peers/_gprs-ap-internet create mode 100644 packages/ppp/ppp-gprs_1.0.bb (limited to 'packages') diff --git a/packages/ppp/ppp-gprs/.mtn2git_empty b/packages/ppp/ppp-gprs/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/ppp/ppp-gprs/chats/.mtn2git_empty b/packages/ppp/ppp-gprs/chats/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/ppp/ppp-gprs/chats/chat-gprs b/packages/ppp/ppp-gprs/chats/chat-gprs new file mode 100644 index 0000000000..b90e5ff2cf --- /dev/null +++ b/packages/ppp/ppp-gprs/chats/chat-gprs @@ -0,0 +1,9 @@ +# GPRS AP (Access Point) name should be passed via -T switch + +'' ATZ +OK AT+CGDCONT=1,"IP","\T" +# We setup profile #1 in the above command, and then use it to call +# GPRS. This is correct, but some buggy phone may parse only "ATD*99#" +OK "ATD*99***1#" +# OK "ATD*99#" +CONNECT '' diff --git a/packages/ppp/ppp-gprs/peers/.mtn2git_empty b/packages/ppp/ppp-gprs/peers/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/ppp/ppp-gprs/peers/_gprs b/packages/ppp/ppp-gprs/peers/_gprs new file mode 100644 index 0000000000..cc316951a0 --- /dev/null +++ b/packages/ppp/ppp-gprs/peers/_gprs @@ -0,0 +1,68 @@ +# This is generic pppd config for GPRS connection +# To connect to specific provider, one +# more provider-specific config +# file is required, which will +# usually just set chat utility params +# to make connection and call this one. +# (And in most cases that will be symlink +# to a file with well-known settings). +# +# Usage: +# pppd call gprs call - +# where /etc/ppp/peers/- ends with line +# "call _gprs" +# Example: +# pppd /dev/rfcomm0 call ua-life +# Debugging PPP protocol problems: +# pppd /dev/rfcomm0 call ua-life debug nodetach +# +# By default, pppd will go to +# background once connection is +# established. 'nodetach' option will +# prevent this. If you want pppd to +# even establish connection in +# background, comment 'updetach' below. +# +# To finish connection, use Ctrl+C if +# 'nodetach' was used, or +# kill `head -1 /var/run/ppp-gprs.pid` +# otherwise. If you are sure there is +# only one pppd connection, you can use +# killall pppd + +## +## pppd options +## + +# create /var/run/ppp-gprs.pid +# with pid for this connection +linkname gprs +# Connect in foreground, but go +# to background after that +updetach + +# Treat port as a modem and use +# reasonable speed +modem +crtscts +115200 + +# Don't do CCP (compression) +# negotiation, some providers are +# rumored to be buggy with this, and +# most of the rest simply don't support. +noccp +# We don't request provider to auth +# to us +noauth +# Don't try to make up our IP address +noipdefault +# We want provider to supply us with +# IP addresses +ipcp-accept-remote +ipcp-accept-local +# Ask provider for DNS and use it +usepeerdns +# Route all Internet traffic thru +# this connection +defaultroute diff --git a/packages/ppp/ppp-gprs/peers/_gprs-ap-internet b/packages/ppp/ppp-gprs/peers/_gprs-ap-internet new file mode 100644 index 0000000000..d55eeb0266 --- /dev/null +++ b/packages/ppp/ppp-gprs/peers/_gprs-ap-internet @@ -0,0 +1,3 @@ +# -T options sets value of GPRS AP name. Change this for your cell provider +connect '/usr/sbin/chat -V -f /etc/ppp/chats/chat-gprs -T internet' +call gprs diff --git a/packages/ppp/ppp-gprs_1.0.bb b/packages/ppp/ppp-gprs_1.0.bb new file mode 100644 index 0000000000..2db6e808f4 --- /dev/null +++ b/packages/ppp/ppp-gprs_1.0.bb @@ -0,0 +1,22 @@ +SECTION = "console/network" +DESCRIPTION = "PPP scripts for easy GPRS connection" +LICENSE = "GPL" +RDEPENDS = "ppp" +PR = "r1" + +SRC_URI = "file://peers/* file://chats/*" + +do_install () { + install -d ${D}${sysconfdir}/ppp/peers/ + install -d ${D}${sysconfdir}/ppp/chats/ + install -m 0644 ${WORKDIR}/peers/* ${D}${sysconfdir}/ppp/peers/ + install -m 0644 ${WORKDIR}/chats/* ${D}${sysconfdir}/ppp/chats/ + + # Add links for providers sharing same well-known config + ln -sf _gprs-ap-internet ${D}${sysconfdir}/ppp/peers/ua-life +} + +PACKAGE_ARCH = "all" + +# In worst case, user may need to edit anything +CONFFILES_${PN} = "${sysconfdir}/ppp/peers/_gprs ${sysconfdir}/ppp/chats/chat-gprs" -- cgit v1.2.3 From e74f997c776220f3902a29dc3daa13f0925c046d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 14 Jan 2008 20:24:08 +0000 Subject: rp-pppoe 3.8: Don't swallow crosscompile errors. --- packages/rp-pppoe/rp-pppoe-3.8/dont-swallow-errors.patch | 11 +++++++++++ packages/rp-pppoe/rp-pppoe_3.8.bb | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/rp-pppoe/rp-pppoe-3.8/dont-swallow-errors.patch (limited to 'packages') diff --git a/packages/rp-pppoe/rp-pppoe-3.8/dont-swallow-errors.patch b/packages/rp-pppoe/rp-pppoe-3.8/dont-swallow-errors.patch new file mode 100644 index 0000000000..81ce2db335 --- /dev/null +++ b/packages/rp-pppoe/rp-pppoe-3.8/dont-swallow-errors.patch @@ -0,0 +1,11 @@ +--- a/src/configure.in.org 2008-01-14 21:08:38.000000000 +0200 ++++ a/src/configure.in 2008-01-14 21:20:09.000000000 +0200 +@@ -208,7 +208,7 @@ + return 2; + } + }], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev, +-$ECHO "no defaults for cross-compiling"; exit 0) ++$ECHO "no defaults for cross-compiling"; exit 1) + ]) + + if test "$rpppoe_cv_pack_bitfields" = "rev" ; then diff --git a/packages/rp-pppoe/rp-pppoe_3.8.bb b/packages/rp-pppoe/rp-pppoe_3.8.bb index 35faf8839b..9852522da1 100644 --- a/packages/rp-pppoe/rp-pppoe_3.8.bb +++ b/packages/rp-pppoe/rp-pppoe_3.8.bb @@ -5,13 +5,14 @@ LICENSE = "GPLv2" RDEPENDS_${PN} = "ppp" RDEPENDS_${PN}-server = "${PN}" RRECOMMENDS_${PN} = "ppp-oe" -PR = "r5" +PR = "r6" SRC_URI = "http://www.roaringpenguin.com/files/download/${P}.tar.gz \ file://top-autoconf.patch;patch=1 \ file://configure_in_cross.patch;patch=1 \ file://pppoe-src-restrictions.patch;patch=1 \ file://update-config.patch;patch=1 \ + file://dont-swallow-errors.patch;patch=1 \ file://pppoe-server.default \ file://pppoe-server.init" -- cgit v1.2.3 From 53b09c13d3382621ccacf9895521750b40129701 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 14 Jan 2008 20:30:12 +0000 Subject: ppp-dsl: Separate meta and data. --- packages/ppp-dsl/dsl-provider | 71 ---------------------------------- packages/ppp-dsl/files/.mtn2git_empty | 0 packages/ppp-dsl/files/dsl-provider | 71 ++++++++++++++++++++++++++++++++++ packages/ppp-dsl/files/ppp_on_boot.dsl | 14 +++++++ packages/ppp-dsl/ppp-dsl_0.1.bb | 2 +- packages/ppp-dsl/ppp_on_boot.dsl | 14 ------- 6 files changed, 86 insertions(+), 86 deletions(-) delete mode 100644 packages/ppp-dsl/dsl-provider create mode 100644 packages/ppp-dsl/files/.mtn2git_empty create mode 100644 packages/ppp-dsl/files/dsl-provider create mode 100755 packages/ppp-dsl/files/ppp_on_boot.dsl delete mode 100755 packages/ppp-dsl/ppp_on_boot.dsl (limited to 'packages') diff --git a/packages/ppp-dsl/dsl-provider b/packages/ppp-dsl/dsl-provider deleted file mode 100644 index 6feaf55752..0000000000 --- a/packages/ppp-dsl/dsl-provider +++ /dev/null @@ -1,71 +0,0 @@ -# Configuration file for PPP, using PPP over Ethernet -# to connect to a DSL provider. -# -# See the manual page pppd(8) for information on all the options. - -## -# Section 1 -# -# Stuff to configure... - -# MUST CHANGE: Uncomment the following line, replacing the user@provider.net -# by the DSL user name given to your by your DSL provider. -# (There should be a matching entry in /etc/ppp/pap-secrets with the password.) -# -# maybe helpful for germany: -# T-DSL business PAP "t-online-com/111111111111@t-online-com.de" -# T-DSL t-online PAP "[ANSCHLUSSKENNUNG][T_ONLINE_NUMMER]#[MITBENUTZER]@t-online.de" -# hansenet CHAP "net0815@hansenet.de" -# -#user "" - -# Use the pppoe program to send the ppp packets over the Ethernet link -# This line should work fine if this computer is the only one accessing -# the Internet through this DSL connection. This is the right line to use -# for most people. -pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452" - -# If the computer connected to the Internet using pppoe is not being used -# by other computers as a gateway to the Internet, you can try the following -# line instead, for a small gain in speed: -#pty "/usr/sbin/pppoe -I eth0 -T 80" - -# An even more conservative version of the previous line, if things -# don't work using -m 1452... -#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412" - - -# The following two options should work fine for most DSL users. - -# Assumes that your IP address is allocated dynamically -# by your DSL provider... -noipdefault -# Comment out if you already have the correct default route installed -defaultroute -replacedefaultroute -usepeerdns - -## -# Section 2 -# -# Uncomment if your DSL provider charges by minute connected -# and you want to use demand-dialing. -# -# Disconnect after 300 seconds (5 minutes) of idle time. - -#demand -#idle 300 - -## -# Section 3 -# -# You shouldn't need to change these options... - -hide-password -lcp-echo-interval 20 -lcp-echo-failure 3 -# Override any connect script that may have been set in /etc/ppp/options. -connect /bin/true -noauth -persist -mtu 1492 diff --git a/packages/ppp-dsl/files/.mtn2git_empty b/packages/ppp-dsl/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/ppp-dsl/files/dsl-provider b/packages/ppp-dsl/files/dsl-provider new file mode 100644 index 0000000000..6feaf55752 --- /dev/null +++ b/packages/ppp-dsl/files/dsl-provider @@ -0,0 +1,71 @@ +# Configuration file for PPP, using PPP over Ethernet +# to connect to a DSL provider. +# +# See the manual page pppd(8) for information on all the options. + +## +# Section 1 +# +# Stuff to configure... + +# MUST CHANGE: Uncomment the following line, replacing the user@provider.net +# by the DSL user name given to your by your DSL provider. +# (There should be a matching entry in /etc/ppp/pap-secrets with the password.) +# +# maybe helpful for germany: +# T-DSL business PAP "t-online-com/111111111111@t-online-com.de" +# T-DSL t-online PAP "[ANSCHLUSSKENNUNG][T_ONLINE_NUMMER]#[MITBENUTZER]@t-online.de" +# hansenet CHAP "net0815@hansenet.de" +# +#user "" + +# Use the pppoe program to send the ppp packets over the Ethernet link +# This line should work fine if this computer is the only one accessing +# the Internet through this DSL connection. This is the right line to use +# for most people. +pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452" + +# If the computer connected to the Internet using pppoe is not being used +# by other computers as a gateway to the Internet, you can try the following +# line instead, for a small gain in speed: +#pty "/usr/sbin/pppoe -I eth0 -T 80" + +# An even more conservative version of the previous line, if things +# don't work using -m 1452... +#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412" + + +# The following two options should work fine for most DSL users. + +# Assumes that your IP address is allocated dynamically +# by your DSL provider... +noipdefault +# Comment out if you already have the correct default route installed +defaultroute +replacedefaultroute +usepeerdns + +## +# Section 2 +# +# Uncomment if your DSL provider charges by minute connected +# and you want to use demand-dialing. +# +# Disconnect after 300 seconds (5 minutes) of idle time. + +#demand +#idle 300 + +## +# Section 3 +# +# You shouldn't need to change these options... + +hide-password +lcp-echo-interval 20 +lcp-echo-failure 3 +# Override any connect script that may have been set in /etc/ppp/options. +connect /bin/true +noauth +persist +mtu 1492 diff --git a/packages/ppp-dsl/files/ppp_on_boot.dsl b/packages/ppp-dsl/files/ppp_on_boot.dsl new file mode 100755 index 0000000000..f1d5183b38 --- /dev/null +++ b/packages/ppp-dsl/files/ppp_on_boot.dsl @@ -0,0 +1,14 @@ +#!/bin/sh +# + +# The location of the ppp daemon itself (shouldn't need to be changed) +PPPD=/usr/sbin/pppd + +# The Ethernet interface the DSL modem is connected to. If you change this, +# you also need to edit the file /etc/ppp/peers/dsl-provider. +INTERFACE=eth0 + +# Bring the interface up +/sbin/ifconfig $INTERFACE up + +$PPPD call dsl-provider diff --git a/packages/ppp-dsl/ppp-dsl_0.1.bb b/packages/ppp-dsl/ppp-dsl_0.1.bb index 8796da86da..250d78e90c 100644 --- a/packages/ppp-dsl/ppp-dsl_0.1.bb +++ b/packages/ppp-dsl/ppp-dsl_0.1.bb @@ -4,7 +4,7 @@ LICENSE = "PD" DEPENDS = "ppp rp-pppoe" RDEPENDS = "ppp rp-pppoe" RRECOMMENDS = "kernel-module-ppp-async kernel-module-ppp-generic kernel-module-slhc" -PR = "r2" +PR = "r3" SRC_URI = "file://dsl-provider \ file://ppp_on_boot.dsl" diff --git a/packages/ppp-dsl/ppp_on_boot.dsl b/packages/ppp-dsl/ppp_on_boot.dsl deleted file mode 100755 index f1d5183b38..0000000000 --- a/packages/ppp-dsl/ppp_on_boot.dsl +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# - -# The location of the ppp daemon itself (shouldn't need to be changed) -PPPD=/usr/sbin/pppd - -# The Ethernet interface the DSL modem is connected to. If you change this, -# you also need to edit the file /etc/ppp/peers/dsl-provider. -INTERFACE=eth0 - -# Bring the interface up -/sbin/ifconfig $INTERFACE up - -$PPPD call dsl-provider -- cgit v1.2.3 From 8b98d396e28d2fca9ef6a9b9572a1117c253321b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 14 Jan 2008 20:31:51 +0000 Subject: ppp-dsl: Having CONFFILES flip-flop based on DISTRO is something new. Well, rather, the bug. --- packages/ppp-dsl/ppp-dsl_0.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/ppp-dsl/ppp-dsl_0.1.bb b/packages/ppp-dsl/ppp-dsl_0.1.bb index 250d78e90c..a322e3394e 100644 --- a/packages/ppp-dsl/ppp-dsl_0.1.bb +++ b/packages/ppp-dsl/ppp-dsl_0.1.bb @@ -4,7 +4,7 @@ LICENSE = "PD" DEPENDS = "ppp rp-pppoe" RDEPENDS = "ppp rp-pppoe" RRECOMMENDS = "kernel-module-ppp-async kernel-module-ppp-generic kernel-module-slhc" -PR = "r3" +PR = "r4" SRC_URI = "file://dsl-provider \ file://ppp_on_boot.dsl" @@ -25,4 +25,4 @@ else fi } -CONFFILES_${PN}_nylon = "${sysconfdir}/ppp/peers/dsl-provider" +CONFFILES_${PN} = "${sysconfdir}/ppp/peers/dsl-provider" -- cgit v1.2.3 From 962f3f84a4520004901322b13eb2153808e9f3a7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 14 Jan 2008 20:33:30 +0000 Subject: ppp-dsl: Not machine-dependent. --- packages/ppp-dsl/ppp-dsl_0.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/ppp-dsl/ppp-dsl_0.1.bb b/packages/ppp-dsl/ppp-dsl_0.1.bb index a322e3394e..8d63e8fc47 100644 --- a/packages/ppp-dsl/ppp-dsl_0.1.bb +++ b/packages/ppp-dsl/ppp-dsl_0.1.bb @@ -4,7 +4,7 @@ LICENSE = "PD" DEPENDS = "ppp rp-pppoe" RDEPENDS = "ppp rp-pppoe" RRECOMMENDS = "kernel-module-ppp-async kernel-module-ppp-generic kernel-module-slhc" -PR = "r4" +PR = "r5" SRC_URI = "file://dsl-provider \ file://ppp_on_boot.dsl" @@ -25,4 +25,6 @@ else fi } +PACKAGE_ARCH = "all" + CONFFILES_${PN} = "${sysconfdir}/ppp/peers/dsl-provider" -- cgit v1.2.3 From 33236898a3b8971b77a8d163f8becc7db038b053 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 14 Jan 2008 20:34:32 +0000 Subject: ppp-dialin: Not machine-dependent. --- packages/ppp-dialin/ppp-dialin_0.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/ppp-dialin/ppp-dialin_0.1.bb b/packages/ppp-dialin/ppp-dialin_0.1.bb index f0d410e455..6861d8ad44 100644 --- a/packages/ppp-dialin/ppp-dialin_0.1.bb +++ b/packages/ppp-dialin/ppp-dialin_0.1.bb @@ -2,7 +2,7 @@ SECTION = "console/network" DESCRIPTION = "Enables PPP dial-in through a serial connection" DEPENDS = "ppp" RDEPENDS = "ppp" -PR = "r4" +PR = "r5" LICENSE = "MIT" SRC_URI = "file://host-peer \ @@ -16,6 +16,7 @@ do_install() { install -m 0755 ${WORKDIR}/ppp-dialin ${D}${sbindir} } +PACKAGE_ARCH = "all" pkg_postinst() { if test "x$D" != "x"; then -- cgit v1.2.3 From d1bb720841fe4eddeb5519296b78ae5801ed4a6f Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 14 Jan 2008 20:45:28 +0000 Subject: ppp-dsl 0.1-monolithic: Drop botched recipe. * Commit message read "ppp-dsl: added ppp-dsl version for monolithic kernels." Few issues: a) there's no need to have version of userspace app for "monolithic" kernels; b) The recipes doesn't contain any changes comparing to original recipe; c) It should not be "version", it always should be "package". This indeed adds the version, which shadows the normal one. --- packages/ppp-dsl/ppp-dsl_0.1-monolithic.bb | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 packages/ppp-dsl/ppp-dsl_0.1-monolithic.bb (limited to 'packages') diff --git a/packages/ppp-dsl/ppp-dsl_0.1-monolithic.bb b/packages/ppp-dsl/ppp-dsl_0.1-monolithic.bb deleted file mode 100644 index 216c87fffd..0000000000 --- a/packages/ppp-dsl/ppp-dsl_0.1-monolithic.bb +++ /dev/null @@ -1,5 +0,0 @@ -include ppp-dsl_0.1.bb - -RDEPENDS = "ppp rp-pppoe" - -S = "${WORKDIR}/ppp-dsl-0.1" -- cgit v1.2.3