summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12
diff options
context:
space:
mode:
authorDai Caiyun <daicy.fnst@cn.fujitsu.com>2016-01-06 21:00:33 -0800
committerJoe MacDonald <joe_macdonald@mentor.com>2016-01-20 21:41:43 -0500
commit829fe87b14eb21bbbea42521aff0020cd59e4bdc (patch)
tree4fca3c9cf4c064e53ac189a42f2924742e1d1d32 /meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12
parent28b009f98e93b72efc7b65842cdac140202d9002 (diff)
downloadmeta-openembedded-829fe87b14eb21bbbea42521aff0020cd59e4bdc.tar.gz
rp-pppoe: 3.11 -> 3.12
Upgrade rp-pppoe from 3.11 to 3.12. Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12')
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch59
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.patch11
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure_in_cross.patch156
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/discard-use-of-dnl-in-Makefile.am.patch27
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/dont-swallow-errors.patch28
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.default22
-rwxr-xr-xmeta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.init59
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.service11
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-src-restrictions.patch20
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/top-autoconf.patch27
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/update-config.patch32
11 files changed, 452 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch
new file mode 100644
index 0000000000..2661fd3dbc
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch
@@ -0,0 +1,59 @@
1From 71956de46feef962dc0645af4c81ae074ca3b818 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Wed, 19 Aug 2015 13:52:57 +0900
4Subject: [PATCH] configure.in: Error fix.
5
6the error is: conftest.c:9:28: fatal error: ac_nonexistent.h:
7No such file or directory #include <ac_nonexistent.h>
8
9Upstream-Status: pending
10
11Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
12---
13 src/configure.in | 30 ------------------------------
14 1 file changed, 30 deletions(-)
15
16diff --git a/src/configure.in b/src/configure.in
17index 0b23df5..31c7fbc 100644
18--- a/src/configure.in
19+++ b/src/configure.in
20@@ -193,36 +193,6 @@ if test "$GCC" = yes; then
21 CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes"
22 fi
23
24-dnl Figure out packing order of structures
25-AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
26-if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
27-AC_TRY_RUN([
28-union foo {
29- struct bar {
30- unsigned int ver:4;
31- unsigned int type:4;
32- } bb;
33- unsigned char baz;
34-};
35-
36-int
37-main(void)
38-{
39- union foo x;
40- x.bb.ver = 1;
41- x.bb.type = 2;
42- if (x.baz == 0x21) {
43- return 1;
44- } else if (x.baz == 0x12) {
45- return 0;
46- } else {
47- return 2;
48- }
49-}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
50-$ECHO "no defaults for cross-compiling"; exit 1)
51-fi
52-])
53-
54 if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
55 AC_MSG_RESULT(reversed)
56 AC_DEFINE([PACK_BITFIELDS_REVERSED], [], [Reversed bitfields])
57--
581.8.4.2
59
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.patch
new file mode 100644
index 0000000000..1380ba4891
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.patch
@@ -0,0 +1,11 @@
1Index: rp-pppoe-3.8/configure.in
2===================================================================
3--- rp-pppoe-3.8.orig/configure.in 2014-07-16 19:31:33.549991388 +0000
4+++ rp-pppoe-3.8/configure.in 2014-07-17 22:01:18.116590827 +0000
5@@ -1,4 +1,4 @@
6-AC_INIT(src/pppoe.c)
7-AM_INIT_AUTOMAKE([rp-pppoe], [3.8])
8+AC_INIT([rp-pppoe], [3.8])
9+AM_INIT_AUTOMAKE([foreign])
10 AC_CONFIG_SUBDIRS(src)
11 AC_OUTPUT(Makefile)
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure_in_cross.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure_in_cross.patch
new file mode 100644
index 0000000000..88cf7e6777
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure_in_cross.patch
@@ -0,0 +1,156 @@
1From cab02076afb808a43c6ff3d7b1c64e71f5a1b397 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Wed, 19 Aug 2015 12:17:03 +0900
4Subject: [PATCH] configure in cross
5
6Update the configure script to cross-compiling with OE. This hard-codes
7a few target paths, reworks a few tests to be more friendly for cross
8and drops other tests.
9
10Upstream-Status: Inappropriate [build system specific changes]
11
12---
13 src/configure.in | 66 ++++++++++++++------------------------------------------
14 1 file changed, 16 insertions(+), 50 deletions(-)
15
16diff --git a/src/configure.in b/src/configure.in
17index e194295..82d64d6 100644
18--- a/src/configure.in
19+++ b/src/configure.in
20@@ -5,6 +5,13 @@ AC_INIT(pppoe.c)
21 dnl pppd directory for kernel-mode PPPoE
22 PPPD_DIR=ppp-2.4.1.pppoe2
23
24+dnl hard code some paths
25+PPPD=/usr/sbin/pppd
26+ID=/usr/bin/id
27+ECHO=/bin/echo
28+AC_ARG_VAR(PPPD)
29+AC_ARG_VAR(ID)
30+
31 AC_CONFIG_HEADER(config.h)
32
33 AC_PREFIX_DEFAULT(/usr)
34@@ -45,7 +52,7 @@ ac_cv_struct_sockaddr_ll=no)
35 AC_MSG_RESULT($ac_cv_struct_sockaddr_ll)
36
37 if test "$ac_cv_struct_sockaddr_ll" = yes ; then
38-AC_DEFINE(HAVE_STRUCT_SOCKADDR_LL)
39+AC_DEFINE([HAVE_STRUCT_SOCKADDR_LL], [], [Have struct SOCKADDR_LL])
40 fi
41
42 dnl Check for N_HDLC line discipline
43@@ -56,7 +63,7 @@ AC_TRY_COMPILE([#include <linux/termios.h>],
44 ac_cv_n_hdlc=no)
45 AC_MSG_RESULT($ac_cv_n_hdlc)
46 if test "$ac_cv_n_hdlc" = yes ; then
47-AC_DEFINE(HAVE_N_HDLC)
48+AC_DEFINE([HAVE_N_HDLC], [], [Have N_HDLC])
49 fi
50
51 AC_ARG_ENABLE(plugin, [ --enable-plugin=pppd_src_path build pppd plugin], ac_cv_pluginpath=$enableval, ac_cv_pluginpath=no)
52@@ -104,7 +111,7 @@ PPPD_INCDIR=""
53 if test "$ac_cv_header_linux_if_pppox_h" = yes ; then
54 if test "$ac_cv_pluginpath" != no ; then
55 LINUX_KERNELMODE_PLUGIN=rp-pppoe.so
56- AC_DEFINE(HAVE_LINUX_KERNEL_PPPOE)
57+ AC_DEFINE([HAVE_LINUX_KERNEL_PPPOE], [], [Have kernel PPPoE])
58 PPPD_INCDIR=$ac_cv_pluginpath
59 fi
60 fi
61@@ -114,7 +121,7 @@ if test "$PPPD_INCDIR" = "" ; then
62 fi
63
64 if test "$ac_cv_debugging" = "yes" ; then
65- AC_DEFINE(DEBUGGING_ENABLED)
66+ AC_DEFINE([DEBUGGING_ENABLED], [], [Debugging enabled])
67 fi
68
69 AC_SUBST(LINUX_KERNELMODE_PLUGIN)
70@@ -140,15 +147,8 @@ AC_CHECK_SIZEOF(unsigned short)
71 AC_CHECK_SIZEOF(unsigned int)
72 AC_CHECK_SIZEOF(unsigned long)
73
74-dnl Check for location of pppd
75-AC_PATH_PROG(PPPD, pppd, NOTFOUND, $PATH:/sbin:/usr/sbin:/usr/local/sbin)
76-AC_PATH_PROG(ECHO, echo, echo)
77-
78-dnl Check for setsid (probably Linux-specific)
79-AC_PATH_PROG(SETSID, setsid, "", $PATH:/sbin:/usr/sbin:/usr/local/sbin)
80-
81 dnl Check for an "id" which accepts "-u" option -- hack for Solaris.
82-AC_PATH_PROG(ID, id, "", /usr/xpg4/bin:$PATH)
83+dnl AC_PATH_PROG(ID, id, "", /usr/xpg4/bin:$PATH)
84
85 dnl Check for Linux-specific kernel support for PPPoE
86 AC_MSG_CHECKING(for Linux 2.4.X kernel-mode PPPoE support)
87@@ -193,44 +193,8 @@ if test "$GCC" = yes; then
88 CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes"
89 fi
90
91-dnl If we couldn't find pppd, die
92-if test "$PPPD" = "NOTFOUND"; then
93- AC_MSG_WARN([*** Oops! I couldn't find pppd, the PPP daemon anywhere.])
94- AC_MSG_WARN([*** You must install pppd, version 2.3.10 or later.])
95- AC_MSG_WARN([*** I will keep going, but it may not work.])
96- PPPD=pppd
97-fi
98-
99-dnl Figure out pppd version. 2.3.7 to 2.3.9 -- issue warning. Less than
100-dnl 2.3.7 -- stop
101-
102-PPPD_VERSION=`$PPPD --version 2>&1 | awk ' /version/ {print $NF}'`
103-
104-case "$PPPD_VERSION" in
105-1.*|2.0.*|2.1.*|2.2.*|2.3.0|2.3.1|2.3.2|2.3.3|2.3.4|2.3.5|2.3.6)
106- AC_MSG_WARN([*** Oops! Your version of pppd is $PPPD_VERSION, which is too old.])
107- AC_MSG_WARN([*** You need at least 2.3.7 (2.3.10 or newer recommended.])
108- AC_MSG_WARN([*** I will keep going, but it may not work.])
109- ;;
110-
111-2.3.7|2.3.8|2.3.9)
112- AC_MSG_WARN([*** Warning. Your version of pppd is $PPPD_VERSION. You will])
113- AC_MSG_WARN([*** not be able to use connect-on-demand. Upgrade to pppd])
114- AC_MSG_WARN([*** 2.3.10 or newer if you need connect-on-demand.])
115- ;;
116-
117-2*|3*|4*|5*|6*|7*|8*|9*)
118- ;;
119-
120-*)
121- AC_MSG_WARN([*** Oops. I cannot figure out what version of pppd you have.])
122- AC_MSG_WARN([*** All I got back was '$PPPD_VERSION'])
123- AC_MSG_WARN([*** I will keep going, but it may not work.])
124- ;;
125-esac
126-
127 dnl Figure out packing order of structures
128-AC_MSG_CHECKING([packing order of bit fields])
129+AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
130 if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
131 AC_TRY_RUN([
132 union foo {
133@@ -257,10 +221,11 @@ main(void)
134 }], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
135 $ECHO "no defaults for cross-compiling"; exit 0)
136 fi
137+])
138
139 if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
140 AC_MSG_RESULT(reversed)
141- AC_DEFINE(PACK_BITFIELDS_REVERSED)
142+ AC_DEFINE([PACK_BITFIELDS_REVERSED], [], [Reversed bitfields])
143 else
144 AC_MSG_RESULT(normal)
145 fi
146@@ -324,6 +289,7 @@ AC_SUBST(PPPOE_SERVER_DEPS)
147 AC_SUBST(RDYNAMIC)
148 AC_SUBST(LIBEVENT)
149 AC_SUBST(ECHO)
150+AC_SUBST(HAVE_STRUCT_SOCKADDR_LL)
151 AC_SUBST(LDFLAGS)
152
153 datadir_evaluated=`eval echo $datadir`
154--
1551.8.4.2
156
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/discard-use-of-dnl-in-Makefile.am.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/discard-use-of-dnl-in-Makefile.am.patch
new file mode 100644
index 0000000000..8b7886485a
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/discard-use-of-dnl-in-Makefile.am.patch
@@ -0,0 +1,27 @@
1From 611c9fe719c5aa264a2ad2eb920cf4522ae2ddec Mon Sep 17 00:00:00 2001
2From: Ting Liu <b28495@freescale.com>
3Date: Tue, 12 Jun 2012 14:26:16 -0400
4Subject: [PATCH] discard use of dnl in Makefile.am
5
6Since Makefile.am is not processed by m4, but by automake, 'dnl' does
7not introduce a comment.
8
9Signed-off-by: Ting Liu <b28495@freescale.com>
10---
11 Makefile.am | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14diff --git a/Makefile.am b/Makefile.am
15index eff6977..3091c33 100644
16--- a/Makefile.am
17+++ b/Makefile.am
18@@ -1,5 +1,5 @@
19 PACKAGE = rp-pppoe
20 VERSION = 3.8
21
22-dnl AM_CFLAGS = -Wall -DDEBUG
23+##dnl AM_CFLAGS = -Wall -DDEBUG
24 SUBDIRS = src
25--
261.7.6.5
27
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/dont-swallow-errors.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/dont-swallow-errors.patch
new file mode 100644
index 0000000000..f61337f153
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/dont-swallow-errors.patch
@@ -0,0 +1,28 @@
1From bbdadb803b19f002e76e7bb5ce3faf770dd7c413 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Wed, 19 Aug 2015 12:33:41 +0900
4Subject: [PATCH] don't swallow errors
5
6Further fixup to the configure scripts to not swallow errors
7
8Upstream-Status: Pending
9---
10 src/configure.in | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/configure.in b/src/configure.in
14index 82d64d6..0b23df5 100644
15--- a/src/configure.in
16+++ b/src/configure.in
17@@ -219,7 +219,7 @@ main(void)
18 return 2;
19 }
20 }], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
21-$ECHO "no defaults for cross-compiling"; exit 0)
22+$ECHO "no defaults for cross-compiling"; exit 1)
23 fi
24 ])
25
26--
271.8.4.2
28
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.default b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.default
new file mode 100644
index 0000000000..996d57f3cf
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.default
@@ -0,0 +1,22 @@
1# PPPoE Server options
2
3# Maximum segment size, not used for in kernel PPPoE
4#MSS=1412
5
6# Device(s) - Space seperated list of devices to listen on
7#DEVICES="eth1"
8
9# Local IP
10#LOCAL_IP=10.0.0.1
11
12# Starting remote IP
13#REMOTE_IP=10.67.15.1
14
15# Service name
16#SERVICE_NAME="acme"
17
18# Maximum number of sessions, default is 16
19#MAX_SESSIONS=64
20
21# Access concentrator name, default is the hostname
22#ACCESS_CONCENTRATOR_NAME="pppoe-rtr-1"
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.init b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.init
new file mode 100755
index 0000000000..21afe0be39
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.init
@@ -0,0 +1,59 @@
1#! /bin/sh
2
3test -f /usr/sbin/pppoe-server || exit 0
4test -f /etc/default/pppoe-server && . /etc/default/pppoe-server
5
6case $1 in
7 start)
8 OPTIONS=""
9 if [ -n "$MSS" ]; then
10 OPTIONS="$OPTIONS -m $MSS"
11 fi
12 if [ -n "$DEVICES" ]; then
13 for i in $DEVICES; do
14 OPTIONS="$OPTIONS -I $i"
15 done
16 fi
17 if [ -n "$LOCAL_IP" ]; then
18 OPTIONS="$OPTIONS -L $LOCAL_IP"
19 fi
20 if [ -n "$REMOTE_IP" ]; then
21 OPTIONS="$OPTIONS -R $REMOTE_IP"
22 fi
23 if [ -n "$SERVICE_NAME" ]; then
24 OPTIONS="$OPTIONS -S $SERVICE_NAME"
25 fi
26 if [ -n "$MAX_SESSIONS" ]; then
27 OPTIONS="$OPTIONS -N $MAX_SESSIONS"
28 fi
29 if [ -n "$ACCESS_CONCENTRATOR_NAME" ]; then
30 OPTIONS="$OPTIONS -C $ACCESS_CONCENTRATOR_NAME"
31 fi
32 echo -n "Starting PPPoE server: pppoe-server"
33 start-stop-daemon --start --quiet --exec /usr/sbin/pppoe-server -- $OPTIONS
34 echo "."
35 ;;
36 stop)
37 echo -n "Stopping PPPoE server: pppoe-server"
38 start-stop-daemon --stop --quiet --exec /usr/sbin/pppoe-server -- $OPTIONS
39 echo "."
40 ;;
41 status)
42 pid=$(pidof pppoe-server)
43 if [ -n "$pid" ] ; then
44 echo "Running with pid $pid"
45 else
46 echo "Not running"
47 fi
48 ;;
49 restart|force-reload)
50 $0 stop
51 $0 start
52 ;;
53 *)
54 echo "Usage: /etc/init.d/pppoe-server {start|stop|restart|force-reload}"
55 exit 1
56 ;;
57esac
58
59exit 0
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.service b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.service
new file mode 100644
index 0000000000..41e0b9e851
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-server.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=PPPOE Service
3After=network.target
4
5[Service]
6Type=forking
7EnvironmentFile=-@SYSCONFDIR@/default/pppoe-server
8ExecStart=@SBINDIR@/pppoe-server
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-src-restrictions.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-src-restrictions.patch
new file mode 100644
index 0000000000..bcf4d1164d
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/pppoe-src-restrictions.patch
@@ -0,0 +1,20 @@
1Relax restrictions on the PPPoE src address, as per debian bug
2293811:
3
4 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293811
5
6Upstream-Status: Inappropriate [Backport from Debian]
7
8--- rp-pppoe-3.8.orig/src/discovery.c
9+++ rp-pppoe-3.8/src/discovery.c
10@@ -376,8 +376,8 @@
11 if (!packetIsForMe(conn, &packet)) continue;
12
13 if (packet.code == CODE_PADO) {
14- if (NOT_UNICAST(packet.ethHdr.h_source)) {
15- printErr("Ignoring PADO packet from non-unicast MAC address");
16+ if (BROADCAST(packet.ethHdr.h_source)) {
17+ printErr("Ignoring broadcast PADO packet");
18 continue;
19 }
20 parsePacket(&packet, parsePADOTags, &pc);
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/top-autoconf.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/top-autoconf.patch
new file mode 100644
index 0000000000..4fe73d0171
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/top-autoconf.patch
@@ -0,0 +1,27 @@
1The autoconf stuff is all in a subdirectory, which is rather annoying
2as OE expects patches to be applied and autoconf stuff to be done in
3S. This adds enough autoconf at the top level to allow it to be
4called there - all it does is run a sub autoconf stuff in the src
5directory.
6
7Upstream-Status: Inappropriate [build system specific change]
8
9Index: rp-pppoe-3.8/Makefile.am
10===================================================================
11--- /dev/null 1970-01-01 00:00:00.000000000 +0000
12+++ rp-pppoe-3.8/Makefile.am 2007-06-08 15:58:16.000000000 +1000
13@@ -0,0 +1,5 @@
14+PACKAGE = rp-pppoe
15+VERSION = 3.8
16+
17+dnl AM_CFLAGS = -Wall -DDEBUG
18+SUBDIRS = src
19Index: rp-pppoe-3.8/configure.in
20===================================================================
21--- /dev/null 1970-01-01 00:00:00.000000000 +0000
22+++ rp-pppoe-3.8/configure.in 2007-06-08 15:58:16.000000000 +1000
23@@ -0,0 +1,4 @@
24+AC_INIT(src/pppoe.c)
25+AM_INIT_AUTOMAKE([rp-pppoe], [3.8])
26+AC_CONFIG_SUBDIRS(src)
27+AC_OUTPUT(Makefile)
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/update-config.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/update-config.patch
new file mode 100644
index 0000000000..42a3bc62c8
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/update-config.patch
@@ -0,0 +1,32 @@
1Set the timeout to 0 since we don't want pppoe to try reconnecting,
2we want whatever is calling it to reconnect. Lots of odd things
3happen when you have pppoe retrying itself.
4
5The path for the plugin is wrong, it's now part of ppp and is in a
6ppp's plugin lib directory. If no path is specified then that's where
7ppp looks, so that's what we do here.
8
9Upstream-Status: Inappropriate [configuration]
10
11Index: rp-pppoe-3.8/configs/pppoe.conf
12===================================================================
13--- rp-pppoe-3.8.orig/configs/pppoe.conf 2006-04-03 00:29:41.000000000 +1000
14+++ rp-pppoe-3.8/configs/pppoe.conf 2007-06-08 16:02:47.000000000 +1000
15@@ -66,7 +66,7 @@
16 # to connect forever after pppoe-start is called. Otherwise, it will
17 # give out after CONNECT_TIMEOUT seconds and will not attempt to
18 # connect again, making it impossible to reach.
19-CONNECT_TIMEOUT=30
20+CONNECT_TIMEOUT=0
21
22 # How often in seconds pppoe-start polls to check if link is up
23 CONNECT_POLL=2
24@@ -115,7 +115,7 @@
25 FIREWALL=NONE
26
27 # Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
28-# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
29+# plugin, use LINUX_PLUGIN=rp-pppoe.so
30 LINUX_PLUGIN=
31
32 # Any extra arguments to pass to pppoe. Normally, use a blank string