Skip to contentSkip to conversation

ppp: avoid host contamination

PATCH Applied Andreas Oberritter 2 participants 2 messages May 22, 2012 – May 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppp: avoid host contamination

* Import patch from OE-Classic commit f7c547ede1bfc94c24f6315a23ff48a4c5b9ffaf.
* Fixes linking with libpcap (ppp filter).

---
 .../makefile-remove-hard-usr-reference.patch       |   16 ++++++++++++++++
 meta/recipes-connectivity/ppp/ppp_2.4.5.bb         |    2 +-
 2 files changed, 17 insertions(+), 1 deletion(-)
meta/recipes-connectivity/ppp/ppp-2.4.5/makefile-remove-hard-usr-reference.patch +16 -0
index 8cc354a..d59717e 100644
@@ -1,6 +1,9 @@
 The patch comes from OpenEmbedded.
 Rebased for ppp-2.4.5. Dongxiao Xu <[email protected]>
 
+Updated from OE-Classic to include the pcap hunk.
+Signed-off-by: Andreas Oberritter <[email protected]>
+
 Upstream-Status: Inappropriate [configuration]
 
 diff -urN ppp-2.4.5-orig/pppd/Makefile.linux ppp-2.4.5/pppd/Makefile.linux
@@ -19,3 +22,16 @@ diff -urN ppp-2.4.5-orig/pppd/Makefile.linux ppp-2.4.5/pppd/Makefile.linux
  
  ifdef NEEDDES
  ifndef USE_CRYPT
+@@ -169,10 +169,10 @@
+ endif
+ 
+ ifdef FILTER
+-ifneq ($(wildcard /usr/include/pcap-bpf.h),)
++#ifneq ($(wildcard /usr/include/pcap-bpf.h),)
+ LIBS    += -lpcap
+ CFLAGS  += -DPPP_FILTER
+-endif
++#endif
+ endif
+ 
+ ifdef HAVE_INET6
meta/recipes-connectivity/ppp/ppp_2.4.5.bb +1 -1
index ed815d3..587871a 100644
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://pppd/ccp.c;beginline=1;endline=29;md5=e2c43fe6e81ff77
                     file://pppd/plugins/passprompt.c;beginline=1;endline=10;md5=3bcbcdbf0e369c9a3e0b8c8275b065d8 \
                     file://pppd/tdb.c;beginline=1;endline=27;md5=4ca3a9991b011038d085d6675ae7c4e6 \
                     file://chat/chat.c;beginline=1;endline=15;md5=0d374b8545ee5c62d7aff1acbd38add2"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "http://ppp.samba.org/ftp/ppp/ppp-${PV}.tar.gz \
            file://makefile.patch \
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 45 lines · Andreas Oberritter

* Import patch from OE-Classic commit f7c547ede1bfc94c24f6315a23ff48a4c5b9ffaf.
* Fixes linking with libpcap (ppp filter).

---
  .../makefile-remove-hard-usr-reference.patch       |   16 ++++++++++++++++
  meta/recipes-connectivity/ppp/ppp_2.4.5.bb         |    2 +-
  2 files changed, 17 insertions(+), 1 deletion(-)
meta/recipes-connectivity/ppp/ppp-2.4.5/makefile-remove-hard-usr-reference.patch +16 -0
index 8cc354a..d59717e 100644
@@ -1,6 +1,9 @@
  The patch comes from OpenEmbedded.
  Rebased for ppp-2.4.5. Dongxiao Xu<[email protected]>
 
+Updated from OE-Classic to include the pcap hunk.
+Signed-off-by: Andreas Oberritter<[email protected]>
+
  Upstream-Status: Inappropriate [configuration]
 
  diff -urN ppp-2.4.5-orig/pppd/Makefile.linux ppp-2.4.5/pppd/Makefile.linux
@@ -19,3 +22,16 @@ diff -urN ppp-2.4.5-orig/pppd/Makefile.linux ppp-2.4.5/pppd/Makefile.linux
 
   ifdef NEEDDES
   ifndef USE_CRYPT
+@@ -169,10 +169,10 @@
+ endif
+
+ ifdef FILTER
+-ifneq ($(wildcard /usr/include/pcap-bpf.h),)
++#ifneq ($(wildcard /usr/include/pcap-bpf.h),)
+ LIBS    += -lpcap
+ CFLAGS  += -DPPP_FILTER
+-endif
++#endif
+ endif
+
+ ifdef HAVE_INET6
meta/recipes-connectivity/ppp/ppp_2.4.5.bb +0 -0
index ed815d3..587871a 100644

meta/recipes-connectivity/ppp/ppp_2.4.5.bb LIC_FILES_CHKSUM = "file://pppd/ccp.c;beginline=1;endline=29;md5=e2c43fe6e81ff77 · line 16

Quoted 8 lines
meta/recipes-connectivity/ppp/ppp_2.4.5.bb +1 -1
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://pppd/ccp.c;beginline=1;endline=29;md5=e2c43fe6e81ff77
                      file://pppd/plugins/passprompt.c;beginline=1;endline=10;md5=3bcbcdbf0e369c9a3e0b8c8275b065d8 \
                      file://pppd/tdb.c;beginline=1;endline=27;md5=4ca3a9991b011038d085d6675ae7c4e6 \
                      file://chat/chat.c;beginline=1;endline=15;md5=0d374b8545ee5c62d7aff1acbd38add2"
-PR = "r4"
+PR = "r5"
 
  SRC_URI = "http://ppp.samba.org/ftp/ppp/ppp-${PV}.tar.gz \
             file://makefile.patch \

Merged into OE-Core

Thanks
Sau!