From patchwork Sun Feb 3 20:53:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 217806 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 453EC2C0090 for ; Mon, 4 Feb 2013 07:54:01 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E8FB9100AFB; Sun, 3 Feb 2013 20:53:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OEOAeKcyvO2W; Sun, 3 Feb 2013 20:53:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E3398100CF8; Sun, 3 Feb 2013 20:53:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id A938B8F753 for ; Sun, 3 Feb 2013 20:53:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 734E53108D for ; Sun, 3 Feb 2013 20:53:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jQc+m+782kAu for ; Sun, 3 Feb 2013 20:53:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [94.23.35.102]) by silver.osuosl.org (Postfix) with ESMTP id F0AA020157 for ; Sun, 3 Feb 2013 20:53:31 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 8ACC083A; Sun, 3 Feb 2013 21:53:30 +0100 (CET) Received: from localhost (ip-83-134-189-199.dsl.scarlet.be [83.134.189.199]) by mail.free-electrons.com (Postfix) with ESMTPSA id 61E7083D for ; Sun, 3 Feb 2013 21:53:27 +0100 (CET) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Sun, 3 Feb 2013 21:53:20 +0100 Message-Id: <1359924801-30806-1-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH 1/2] pptp-linux: rename patches to remove the version number X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Thomas Petazzoni --- .../pptp-linux/pptp-linux-001-susv3-legacy.patch | 24 +++++++++++ .../pptp-linux/pptp-linux-002-drop-stropts.patch | 26 ++++++++++++ package/pptp-linux/pptp-linux-003-ip-path.patch | 44 ++++++++++++++++++++ .../pptp-linux-1.7.0-001-susv3-legacy.patch | 24 ----------- .../pptp-linux/pptp-linux-1.7.2-drop-stropts.patch | 26 ------------ package/pptp-linux/pptp-linux-1.7.2-ip-path.patch | 44 -------------------- 6 files changed, 94 insertions(+), 94 deletions(-) create mode 100644 package/pptp-linux/pptp-linux-001-susv3-legacy.patch create mode 100644 package/pptp-linux/pptp-linux-002-drop-stropts.patch create mode 100644 package/pptp-linux/pptp-linux-003-ip-path.patch delete mode 100644 package/pptp-linux/pptp-linux-1.7.0-001-susv3-legacy.patch delete mode 100644 package/pptp-linux/pptp-linux-1.7.2-drop-stropts.patch delete mode 100644 package/pptp-linux/pptp-linux-1.7.2-ip-path.patch diff --git a/package/pptp-linux/pptp-linux-001-susv3-legacy.patch b/package/pptp-linux/pptp-linux-001-susv3-legacy.patch new file mode 100644 index 0000000..f41b63f --- /dev/null +++ b/package/pptp-linux/pptp-linux-001-susv3-legacy.patch @@ -0,0 +1,24 @@ +diff -rdup pptp-linux-1.7.0/pptp_callmgr.c pptp-linux-1.7.0.orig/pptp_callmgr.c +--- pptp-linux-1.7.0/pptp_callmgr.c 2005-07-28 03:15:11.000000000 +0200 ++++ pptp-linux-1.7.0.orig/pptp_callmgr.c 2007-08-24 09:20:39.000000000 +0200 +@@ -314,7 +314,7 @@ int open_inetsock(struct in_addr inetadd + return s; + } + if (localbind.s_addr != INADDR_NONE) { +- bzero(&src, sizeof(src)); ++ memset(&src, 0, sizeof(src)); + src.sin_family = AF_INET; + src.sin_addr = localbind; + if (bind(s, (struct sockaddr *) &src, sizeof(src)) != 0) { +diff -rdup pptp-linux-1.7.0/pptp_gre.c pptp-linux-1.7.0.orig/pptp_gre.c +--- pptp-linux-1.7.0/pptp_gre.c 2005-07-28 03:15:11.000000000 +0200 ++++ pptp-linux-1.7.0.orig/pptp_gre.c 2007-08-24 09:20:56.000000000 +0200 +@@ -81,7 +81,7 @@ int pptp_gre_bind(struct in_addr inetadd + int s = socket(AF_INET, SOCK_RAW, PPTP_PROTO); + if (s < 0) { warn("socket: %s", strerror(errno)); return -1; } + if (localbind.s_addr != INADDR_NONE) { +- bzero(&loc_addr, sizeof(loc_addr)); ++ memset(&loc_addr, 0, sizeof(loc_addr)); + loc_addr.sin_family = AF_INET; + loc_addr.sin_addr = localbind; + if (bind(s, (struct sockaddr *) &loc_addr, sizeof(loc_addr)) != 0) { diff --git a/package/pptp-linux/pptp-linux-002-drop-stropts.patch b/package/pptp-linux/pptp-linux-002-drop-stropts.patch new file mode 100644 index 0000000..bc53cc2 --- /dev/null +++ b/package/pptp-linux/pptp-linux-002-drop-stropts.patch @@ -0,0 +1,26 @@ +From ae214f5103dfaa92ecb0b1953d4c9dd059e620ca Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias +Date: Thu, 21 Oct 2010 10:59:02 -0300 +Subject: [PATCH] Drop stropts.h, it's deprecated and unneeded + + +Signed-off-by: Gustavo Zacarias +--- + pptp_compat.c | 1 - + 1 files changed, 0 insertions(+), 1 deletions(-) + +diff --git a/pptp_compat.c b/pptp_compat.c +index 1760a3b..e98cbf0 100644 +--- a/pptp_compat.c ++++ b/pptp_compat.c +@@ -7,7 +7,6 @@ + #include + #include + #include +-#include + #include + #include + #include "pptp_compat.h" +-- +1.7.2.2 + diff --git a/package/pptp-linux/pptp-linux-003-ip-path.patch b/package/pptp-linux/pptp-linux-003-ip-path.patch new file mode 100644 index 0000000..6d8f3c8 --- /dev/null +++ b/package/pptp-linux/pptp-linux-003-ip-path.patch @@ -0,0 +1,44 @@ +From 00b9e2615191439a6c7db960d169129479ac633b Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias +Date: Thu, 21 Oct 2010 11:01:25 -0300 +Subject: [PATCH] The ip tool is in /sbin rather that /bin, fix it + + +Signed-off-by: Gustavo Zacarias +--- + routing.c | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/routing.c b/routing.c +index ab20a03..7fb4277 100644 +--- a/routing.c ++++ b/routing.c +@@ -55,7 +55,7 @@ regardless (not yet implemented). + + void routing_init(char *ip) { + char buf[256]; +- snprintf(buf, 255, "/bin/ip route get %s", ip); ++ snprintf(buf, 255, "/sbin/ip route get %s", ip); + FILE *p = popen(buf, "r"); + fgets(buf, 255, p); + /* TODO: check for failure of fgets */ +@@ -66,14 +66,14 @@ void routing_init(char *ip) { + + void routing_start() { + char buf[256]; +- snprintf(buf, 255, "/bin/ip route replace %s", route); ++ snprintf(buf, 255, "/sbin/ip route replace %s", route); + FILE *p = popen(buf, "r"); + pclose(p); + } + + void routing_end() { + char buf[256]; +- snprintf(buf, 255, "/bin/ip route delete %s", route); ++ snprintf(buf, 255, "/sbin/ip route delete %s", route); + FILE *p = popen(buf, "r"); + pclose(p); + } +-- +1.7.2.2 + diff --git a/package/pptp-linux/pptp-linux-1.7.0-001-susv3-legacy.patch b/package/pptp-linux/pptp-linux-1.7.0-001-susv3-legacy.patch deleted file mode 100644 index f41b63f..0000000 --- a/package/pptp-linux/pptp-linux-1.7.0-001-susv3-legacy.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -rdup pptp-linux-1.7.0/pptp_callmgr.c pptp-linux-1.7.0.orig/pptp_callmgr.c ---- pptp-linux-1.7.0/pptp_callmgr.c 2005-07-28 03:15:11.000000000 +0200 -+++ pptp-linux-1.7.0.orig/pptp_callmgr.c 2007-08-24 09:20:39.000000000 +0200 -@@ -314,7 +314,7 @@ int open_inetsock(struct in_addr inetadd - return s; - } - if (localbind.s_addr != INADDR_NONE) { -- bzero(&src, sizeof(src)); -+ memset(&src, 0, sizeof(src)); - src.sin_family = AF_INET; - src.sin_addr = localbind; - if (bind(s, (struct sockaddr *) &src, sizeof(src)) != 0) { -diff -rdup pptp-linux-1.7.0/pptp_gre.c pptp-linux-1.7.0.orig/pptp_gre.c ---- pptp-linux-1.7.0/pptp_gre.c 2005-07-28 03:15:11.000000000 +0200 -+++ pptp-linux-1.7.0.orig/pptp_gre.c 2007-08-24 09:20:56.000000000 +0200 -@@ -81,7 +81,7 @@ int pptp_gre_bind(struct in_addr inetadd - int s = socket(AF_INET, SOCK_RAW, PPTP_PROTO); - if (s < 0) { warn("socket: %s", strerror(errno)); return -1; } - if (localbind.s_addr != INADDR_NONE) { -- bzero(&loc_addr, sizeof(loc_addr)); -+ memset(&loc_addr, 0, sizeof(loc_addr)); - loc_addr.sin_family = AF_INET; - loc_addr.sin_addr = localbind; - if (bind(s, (struct sockaddr *) &loc_addr, sizeof(loc_addr)) != 0) { diff --git a/package/pptp-linux/pptp-linux-1.7.2-drop-stropts.patch b/package/pptp-linux/pptp-linux-1.7.2-drop-stropts.patch deleted file mode 100644 index bc53cc2..0000000 --- a/package/pptp-linux/pptp-linux-1.7.2-drop-stropts.patch +++ /dev/null @@ -1,26 +0,0 @@ -From ae214f5103dfaa92ecb0b1953d4c9dd059e620ca Mon Sep 17 00:00:00 2001 -From: Gustavo Zacarias -Date: Thu, 21 Oct 2010 10:59:02 -0300 -Subject: [PATCH] Drop stropts.h, it's deprecated and unneeded - - -Signed-off-by: Gustavo Zacarias ---- - pptp_compat.c | 1 - - 1 files changed, 0 insertions(+), 1 deletions(-) - -diff --git a/pptp_compat.c b/pptp_compat.c -index 1760a3b..e98cbf0 100644 ---- a/pptp_compat.c -+++ b/pptp_compat.c -@@ -7,7 +7,6 @@ - #include - #include - #include --#include - #include - #include - #include "pptp_compat.h" --- -1.7.2.2 - diff --git a/package/pptp-linux/pptp-linux-1.7.2-ip-path.patch b/package/pptp-linux/pptp-linux-1.7.2-ip-path.patch deleted file mode 100644 index 6d8f3c8..0000000 --- a/package/pptp-linux/pptp-linux-1.7.2-ip-path.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 00b9e2615191439a6c7db960d169129479ac633b Mon Sep 17 00:00:00 2001 -From: Gustavo Zacarias -Date: Thu, 21 Oct 2010 11:01:25 -0300 -Subject: [PATCH] The ip tool is in /sbin rather that /bin, fix it - - -Signed-off-by: Gustavo Zacarias ---- - routing.c | 6 +++--- - 1 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/routing.c b/routing.c -index ab20a03..7fb4277 100644 ---- a/routing.c -+++ b/routing.c -@@ -55,7 +55,7 @@ regardless (not yet implemented). - - void routing_init(char *ip) { - char buf[256]; -- snprintf(buf, 255, "/bin/ip route get %s", ip); -+ snprintf(buf, 255, "/sbin/ip route get %s", ip); - FILE *p = popen(buf, "r"); - fgets(buf, 255, p); - /* TODO: check for failure of fgets */ -@@ -66,14 +66,14 @@ void routing_init(char *ip) { - - void routing_start() { - char buf[256]; -- snprintf(buf, 255, "/bin/ip route replace %s", route); -+ snprintf(buf, 255, "/sbin/ip route replace %s", route); - FILE *p = popen(buf, "r"); - pclose(p); - } - - void routing_end() { - char buf[256]; -- snprintf(buf, 255, "/bin/ip route delete %s", route); -+ snprintf(buf, 255, "/sbin/ip route delete %s", route); - FILE *p = popen(buf, "r"); - pclose(p); - } --- -1.7.2.2 -