summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-connectivity/ifplugd/ifplugd/Fix-build-with-musl.patch31
-rw-r--r--meta-oe/recipes-connectivity/ifplugd/ifplugd_0.28.bb25
2 files changed, 56 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/ifplugd/ifplugd/Fix-build-with-musl.patch b/meta-oe/recipes-connectivity/ifplugd/ifplugd/Fix-build-with-musl.patch
new file mode 100644
index 0000000000..4bd40606b0
--- /dev/null
+++ b/meta-oe/recipes-connectivity/ifplugd/ifplugd/Fix-build-with-musl.patch
@@ -0,0 +1,31 @@
1From 3f2fc79385398f213a9bd3c99616d749d699f2bb Mon Sep 17 00:00:00 2001
2From: Fabio Berton <fabio.berton@ossystems.com.br>
3Date: Thu, 14 Mar 2019 19:26:14 -0300
4Subject: [PATCH] Fix build with musl
5Organization: O.S. Systems Software LTDA.
6
7Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
8---
9 src/ethtool-local.h | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-)
11
12diff --git a/src/ethtool-local.h b/src/ethtool-local.h
13index 200476b..0edc7a9 100644
14--- a/src/ethtool-local.h
15+++ b/src/ethtool-local.h
16@@ -22,9 +22,9 @@
17 */
18
19 typedef unsigned long long u64;
20-typedef __uint32_t u32;
21-typedef __uint16_t u16;
22-typedef __uint8_t u8;
23+typedef uint32_t u32;
24+typedef uint16_t u16;
25+typedef uint8_t u8;
26
27 #include "ethtool-kernel.h"
28
29--
302.20.1
31
diff --git a/meta-oe/recipes-connectivity/ifplugd/ifplugd_0.28.bb b/meta-oe/recipes-connectivity/ifplugd/ifplugd_0.28.bb
new file mode 100644
index 0000000000..0b5c5a6ce8
--- /dev/null
+++ b/meta-oe/recipes-connectivity/ifplugd/ifplugd_0.28.bb
@@ -0,0 +1,25 @@
1DESCRIPTION = "ifplugd is a Linux daemon which will automatically configure your ethernet device \
2when a cable is plugged in and automatically unconfigure it if the cable is pulled."
3HOMEPAGE = "http://0pointer.de/lennart/projects/ifplugd/"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f"
6
7DEPENDS = "libdaemon"
8
9SRC_URI = "http://0pointer.de/lennart/projects/ifplugd/ifplugd-${PV}.tar.gz"
10
11SRC_URI_append_libc-musl = " file://Fix-build-with-musl.patch"
12
13SRC_URI[md5sum] = "df6f4bab52f46ffd6eb1f5912d4ccee3"
14SRC_URI[sha256sum] = "474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0"
15
16inherit autotools update-rc.d pkgconfig
17
18EXTRA_OECONF = "--disable-lynx --with-initdir=${sysconfdir}/init.d"
19
20INITSCRIPT_NAME = "ifplugd"
21INITSCRIPT_PARAMS = "defaults"
22
23CONFFILES_${PN} = "${sysconfdir}/ifplugd/ifplugd.conf"
24
25RDEPENDS_${PN} += "bash"