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,17 @@
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: ifplugd-0.28/configure
===================================================================
--- ifplugd-0.28.orig/configure
+++ ifplugd-0.28/configure
@@ -5430,7 +5430,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
- ac_cv_func_malloc_0_nonnull=no
+ ac_cv_func_malloc_0_nonnull=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */

View File

@@ -0,0 +1,24 @@
---
src/interface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: ifplugd-0.28/src/interface.c
===================================================================
--- ifplugd-0.28.orig/src/interface.c
+++ ifplugd-0.28/src/interface.c
@@ -23,7 +23,6 @@
#endif
#include <linux/sockios.h>
-#include <linux/if_ether.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
@@ -32,6 +31,7 @@
#include <string.h>
#include <errno.h>
#include <netinet/in.h>
+#include <netinet/if_ether.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

View File

@@ -0,0 +1,17 @@
[PATCH] ifplugd: configure: don't check for C++ compiler
The configure script was checking for a C++ compiler (and erroring out
if not found), even though it isn't used for anything.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
diff -urpN ifplugd-0.28/configure.ac ifplugd-0.28.new/configure.ac
--- ifplugd-0.28/configure.ac 2005-06-04 21:21:51.000000000 +0200
+++ ifplugd-0.28.new/configure.ac 2008-12-13 20:31:13.000000000 +0100
@@ -33,7 +33,6 @@ if type -p stow > /dev/null && test -d /
fi
# Checks for programs.
-AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL

View File

@@ -0,0 +1,24 @@
The musl C library does not define type names such as `__uint32_t`. Instead we
use the integer types declared in the ISO C standard header file <stdint.h>.
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
diff -purN ifplugd-0.28.orig/src/ethtool-local.h ifplugd-0.28/src/ethtool-local.h
--- ifplugd-0.28.orig/src/ethtool-local.h 2015-08-01 18:43:47.360916834 +0200
+++ ifplugd-0.28/src/ethtool-local.h 2015-08-01 18:44:24.256037746 +0200
@@ -21,10 +21,12 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+#include <stdint.h>
+
typedef unsigned long long u64;
-typedef __uint32_t u32;
-typedef __uint16_t u16;
-typedef __uint8_t u8;
+typedef uint32_t u32;
+typedef uint16_t u16;
+typedef uint8_t u8;
#include "ethtool-kernel.h"

View File

@@ -0,0 +1,13 @@
config BR2_PACKAGE_IFPLUGD
bool "ifplugd"
# libdaemon uses fork()
depends on BR2_USE_MMU
select BR2_PACKAGE_LIBDAEMON
help
Ifplugd is a daemon which will automatically configure your
ethernet device when a cable is plugged in and automatically
de-configure it if the cable is pulled out. This is useful
on laptops with onboard network adapters, since it will only
configure the interface when a cable is really connected.
http://0pointer.de/lennart/projects/ifplugd/

View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 ifplugd-0.28.tar.gz

View File

@@ -0,0 +1,39 @@
################################################################################
#
# ifplugd
#
################################################################################
IFPLUGD_VERSION = 0.28
IFPLUGD_SITE = http://0pointer.de/lennart/projects/ifplugd
IFPLUGD_LICENSE = GPLv2
IFPLUGD_LICENSE_FILES = LICENSE
IFPLUGD_AUTORECONF = YES
# install-strip unconditionally overwrites $(TARGET_DIR)/etc/ifplugd/ifplugd.*
IFPLUGD_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
IFPLUGD_CONF_OPTS = --disable-lynx --with-initdir=/etc/init.d/
IFPLUGD_DEPENDENCIES = libdaemon
# Prefer big ifplugd
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
IFPLUGD_DEPENDENCIES += busybox
endif
define IFPLUGD_INSTALL_FIXUP
$(INSTALL) -D -m 0644 $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
$(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
$(TARGET_DIR)/etc/ifplugd/ifplugd.action
endef
IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
define IFPLUGD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
$(TARGET_DIR)/etc/init.d/S45ifplugd
# don't use bash for init script
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
endef
$(eval $(autotools-package))