Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
bzero is deprecated in POSIX.1-2001 and removed for POSIX.1-2008 so
switch to memset instead.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
diff -Nura pptp-1.8.0.orig/pptp_callmgr.c pptp-1.8.0/pptp_callmgr.c
--- pptp-1.8.0.orig/pptp_callmgr.c 2013-10-23 05:10:46.000000000 -0300
+++ pptp-1.8.0/pptp_callmgr.c 2014-03-31 16:47:42.617643298 -0300
@@ -340,7 +340,7 @@
}
#endif
if (localbind.s_addr != INADDR_NONE) {
- bzero(&src, sizeof(src));
+ memset(&src, 0, sizeof(src));
src.i.sin_family = AF_INET;
src.i.sin_addr = localbind;
if (bind(s, &src.a, sizeof(src.i)) != 0) {
diff -Nura pptp-1.8.0.orig/pptp_gre.c pptp-1.8.0/pptp_gre.c
--- pptp-1.8.0.orig/pptp_gre.c 2013-10-23 05:10:46.000000000 -0300
+++ pptp-1.8.0/pptp_gre.c 2014-03-31 16:47:30.745249066 -0300
@@ -103,7 +103,7 @@
}
#endif
if (localbind.s_addr != INADDR_NONE) {
- bzero(&loc_addr, sizeof(loc_addr));
+ memset(&loc_addr, 0, sizeof(loc_addr));
loc_addr.i.sin_family = AF_INET;
loc_addr.i.sin_addr = localbind;
if (bind(s, &loc_addr.a, sizeof(loc_addr.i)) != 0) {

View File

@@ -0,0 +1,23 @@
Fix parallel build issue
The config.h header file must be created before being used to build
source files that include it, especially version.c. In order for this
to happen even in highly-parallel builds, we add a dependency of all
object files on config.h, in order to ensure it gets generated before
make attempts to build the object files.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/Makefile
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,8 @@
all: config.h $(PPTP_BIN) pptpsetup.8
+$(PPTP_OBJS): config.h
+
$(PPTP_BIN): $(PPTP_OBJS) $(PPTP_DEPS)
$(CC) -o $(PPTP_BIN) $(PPTP_OBJS) $(LDFLAGS) $(LIBS)

View File

@@ -0,0 +1,30 @@
From 060ad28b9ca5e99d7c6e8010132da58a3a8a0585 Mon Sep 17 00:00:00 2001
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date: Fri, 22 Jan 2016 10:19:18 -0300
Subject: [PATCH] pqueue.h: include sys/types.h
We're using u_int32_t here, this breaks on musl libc builds otherwise.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
Patch status: sent upstream to the devel mailing list
(moderated, no archive link yet)
pqueue.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/pqueue.h b/pqueue.h
index a56590f..8c60c62 100644
--- a/pqueue.h
+++ b/pqueue.h
@@ -3,6 +3,7 @@
#include <time.h>
#include <sys/time.h>
+#include <sys/types.h>
/* wait this many seconds for missing packets before forgetting about them */
#define DEFAULT_PACKET_TIMEOUT 0.3
--
2.4.10

View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_PPTP_LINUX
bool "pptp-linux"
depends on BR2_USE_MMU # fork()
help
An implementation of the Point-to-point protocol client.
http://pptpclient.sourceforge.net/

View File

@@ -0,0 +1,3 @@
# From http://sourceforge.net/projects/pptpclient/files/pptp/pptp-1.8.0/
md5 4efce9f263e2c3f38d79d9df222476de pptp-1.8.0.tar.gz
sha1 6289953812ac986c7234e83aefb10b5e279dc613 pptp-1.8.0.tar.gz

View File

@@ -0,0 +1,26 @@
################################################################################
#
# pptp-linux
#
################################################################################
PPTP_LINUX_VERSION = 1.8.0
PPTP_LINUX_SITE = http://downloads.sourceforge.net/project/pptpclient/pptp/pptp-$(PPTP_LINUX_VERSION)
PPTP_LINUX_SOURCE = pptp-$(PPTP_LINUX_VERSION).tar.gz
PPTP_LINUX_MAKE = $(MAKE1)
PPTP_LINUX_LICENSE = GPLv2+
PPTP_LINUX_LICENSE_FILES = COPYING
define PPTP_LINUX_BUILD_CMDS
$(MAKE) -C $(@D) OPTIMIZE= DEBUG= \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
IP=/sbin/ip
endef
define PPTP_LINUX_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/pptp $(TARGET_DIR)/usr/sbin/pptp
endef
$(eval $(generic-package))