added my Recipes
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From b990146a149e1729c12e4541a67e32ed1dd6e578 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 13 Aug 2020 19:41:08 -0700
|
||||
Subject: [PATCH] src/interface.h: Make declarations as extern
|
||||
|
||||
Fixed build with -fno-common
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/interface.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/interface.h b/src/interface.h
|
||||
index d223b1f..fd4a5f4 100644
|
||||
--- a/src/interface.h
|
||||
+++ b/src/interface.h
|
||||
@@ -21,8 +21,8 @@
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
||||
*/
|
||||
|
||||
-int interface_auto_up;
|
||||
-int interface_do_message;
|
||||
+extern int interface_auto_up;
|
||||
+extern int interface_do_message;
|
||||
|
||||
typedef enum { IFSTATUS_UP, IFSTATUS_DOWN, IFSTATUS_ERR } interface_status_t;
|
||||
|
||||
--
|
||||
2.28.0
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From 3f2fc79385398f213a9bd3c99616d749d699f2bb Mon Sep 17 00:00:00 2001
|
||||
From: Fabio Berton <fabio.berton@ossystems.com.br>
|
||||
Date: Thu, 14 Mar 2019 19:26:14 -0300
|
||||
Subject: [PATCH] Fix build with musl
|
||||
Organization: O.S. Systems Software LTDA.
|
||||
|
||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
||||
---
|
||||
src/ethtool-local.h | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/src/ethtool-local.h
|
||||
+++ b/src/ethtool-local.h
|
||||
@@ -20,11 +20,11 @@
|
||||
* along with ifplugd; if not, write to the Free Software Foundation,
|
||||
* 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"
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
DESCRIPTION = "ifplugd is a Linux daemon which will automatically configure your ethernet device \
|
||||
when a cable is plugged in and automatically unconfigure it if the cable is pulled."
|
||||
HOMEPAGE = "http://0pointer.de/lennart/projects/ifplugd/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
|
||||
DEPENDS = "libdaemon"
|
||||
|
||||
SRC_URI = "http://0pointer.de/lennart/projects/ifplugd/ifplugd-${PV}.tar.gz \
|
||||
file://0001-src-interface.h-Make-declarations-as-extern.patch \
|
||||
"
|
||||
|
||||
SRC_URI:append:libc-musl = " file://Fix-build-with-musl.patch"
|
||||
|
||||
SRC_URI[md5sum] = "df6f4bab52f46ffd6eb1f5912d4ccee3"
|
||||
SRC_URI[sha256sum] = "474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0"
|
||||
|
||||
inherit autotools update-rc.d pkgconfig
|
||||
|
||||
EXTRA_OECONF = "--disable-lynx --with-initdir=${sysconfdir}/init.d"
|
||||
|
||||
INITSCRIPT_NAME = "ifplugd"
|
||||
INITSCRIPT_PARAMS = "defaults"
|
||||
|
||||
CONFFILES:${PN} = "${sysconfdir}/ifplugd/ifplugd.conf"
|
||||
|
||||
RDEPENDS:${PN} += "bash"
|
||||
Reference in New Issue
Block a user