diff options
Diffstat (limited to 'meta/recipes-connectivity/ppp/ppp-2.4.5')
-rw-r--r-- | meta/recipes-connectivity/ppp/ppp-2.4.5/copts.patch | 21 | ||||
-rw-r--r-- | meta/recipes-connectivity/ppp/ppp-2.4.5/pap | 22 | ||||
-rw-r--r-- | meta/recipes-connectivity/ppp/ppp-2.4.5/ppp_on_boot | 21 | ||||
-rw-r--r-- | meta/recipes-connectivity/ppp/ppp-2.4.5/provider | 35 |
4 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ppp/ppp-2.4.5/copts.patch b/meta/recipes-connectivity/ppp/ppp-2.4.5/copts.patch new file mode 100644 index 0000000000..53ff06e03e --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp-2.4.5/copts.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | ppp: use build system CFLAGS when compiling | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Override the hard-coded COPTS make variables with | ||
6 | CFLAGS. Add COPTS into one Makefile that did not | ||
7 | use it. | ||
8 | |||
9 | Signed-off-by: Joe Slater <jslater@windriver.com> | ||
10 | |||
11 | --- a/pppd/plugins/radius/Makefile.linux | ||
12 | +++ b/pppd/plugins/radius/Makefile.linux | ||
13 | @@ -12,7 +12,7 @@ VERSION = $(shell awk -F '"' '/VERSION/ | ||
14 | INSTALL = install | ||
15 | |||
16 | PLUGIN=radius.so radattr.so radrealms.so | ||
17 | -CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON | ||
18 | +CFLAGS=-I. -I../.. -I../../../include $(COPTS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON | ||
19 | |||
20 | # Uncomment the next line to include support for Microsoft's | ||
21 | # MS-CHAP authentication protocol. | ||
diff --git a/meta/recipes-connectivity/ppp/ppp-2.4.5/pap b/meta/recipes-connectivity/ppp/ppp-2.4.5/pap new file mode 100644 index 0000000000..093c32607a --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp-2.4.5/pap | |||
@@ -0,0 +1,22 @@ | |||
1 | # You can use this script unmodified to connect to sites which allow | ||
2 | # authentication via PAP, CHAP and similar protocols. | ||
3 | # This script can be shared among different pppd peer configurations. | ||
4 | # To use it, add something like this to your /etc/ppp/peers/ file: | ||
5 | # | ||
6 | # connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T PHONE-NUMBER" | ||
7 | # user YOUR-USERNAME-IN-PAP-SECRETS | ||
8 | # noauth | ||
9 | |||
10 | # Uncomment the following line to see the connect speed. | ||
11 | # It will be logged to stderr or to the file specified with the -r chat option. | ||
12 | #REPORT CONNECT | ||
13 | |||
14 | ABORT BUSY | ||
15 | ABORT VOICE | ||
16 | ABORT "NO CARRIER" | ||
17 | ABORT "NO DIALTONE" | ||
18 | ABORT "NO DIAL TONE" | ||
19 | "" ATZ | ||
20 | OK ATDT\T | ||
21 | CONNECT "" | ||
22 | |||
diff --git a/meta/recipes-connectivity/ppp/ppp-2.4.5/ppp_on_boot b/meta/recipes-connectivity/ppp/ppp-2.4.5/ppp_on_boot new file mode 100644 index 0000000000..9793761840 --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp-2.4.5/ppp_on_boot | |||
@@ -0,0 +1,21 @@ | |||
1 | ###!/bin/sh | ||
2 | # | ||
3 | # Rename this file to ppp_on_boot and pppd will be fired up as | ||
4 | # soon as the system comes up, connecting to `provider'. | ||
5 | # | ||
6 | # If you also make this file executable, and replace the first line | ||
7 | # with just "#!/bin/sh", the commands below will be executed instead. | ||
8 | # | ||
9 | |||
10 | # The location of the ppp daemon itself (shouldn't need to be changed) | ||
11 | PPPD=/usr/sbin/pppd | ||
12 | |||
13 | # The default provider to connect to | ||
14 | $PPPD call provider | ||
15 | |||
16 | # Additional connections, which would just use settings from | ||
17 | # /etc/ppp/options.<tty> | ||
18 | #$PPPD ttyS0 | ||
19 | #$PPPD ttyS1 | ||
20 | #$PPPD ttyS2 | ||
21 | #$PPPD ttyS3 | ||
diff --git a/meta/recipes-connectivity/ppp/ppp-2.4.5/provider b/meta/recipes-connectivity/ppp/ppp-2.4.5/provider new file mode 100644 index 0000000000..e74d71a8eb --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp-2.4.5/provider | |||
@@ -0,0 +1,35 @@ | |||
1 | # example configuration for a dialup connection authenticated with PAP or CHAP | ||
2 | # | ||
3 | # This is the default configuration used by pon(1) and poff(1). | ||
4 | # See the manual page pppd(8) for information on all the options. | ||
5 | |||
6 | # MUST CHANGE: replace myusername@realm with the PPP login name given to | ||
7 | # your by your provider. | ||
8 | # There should be a matching entry with the password in /etc/ppp/pap-secrets | ||
9 | # and/or /etc/ppp/chap-secrets. | ||
10 | user "myusername@realm" | ||
11 | |||
12 | # MUST CHANGE: replace ******** with the phone number of your provider. | ||
13 | # The /etc/chatscripts/pap chat script may be modified to change the | ||
14 | # modem initialization string. | ||
15 | connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********" | ||
16 | |||
17 | # Serial device to which the modem is connected. | ||
18 | /dev/modem | ||
19 | |||
20 | # Speed of the serial line. | ||
21 | 115200 | ||
22 | |||
23 | # Assumes that your IP address is allocated dynamically by the ISP. | ||
24 | noipdefault | ||
25 | # Try to get the name server addresses from the ISP. | ||
26 | usepeerdns | ||
27 | # Use this connection as the default route. | ||
28 | defaultroute | ||
29 | |||
30 | # Makes pppd "dial again" when the connection is lost. | ||
31 | persist | ||
32 | |||
33 | # Do not ask the remote to authenticate. | ||
34 | noauth | ||
35 | |||