diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-04-16 10:53:58 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-19 02:45:27 +0200 |
commit | 037be68e540c6b8781b13f210e67b1a8a95de298 (patch) | |
tree | 6a338ea07655ef493581341c1b4c46043995c7b8 /meta-networking | |
parent | f1d7f500ac51057bb3337fa2945f5b0cbd93ec6a (diff) | |
download | meta-openembedded-037be68e540c6b8781b13f210e67b1a8a95de298.tar.gz |
bridge-utils: move to meta-networking and tweak
* Update HOMEPAGE
* Set SUMMARY instead of DESCRIPTION
* Move DEPENDS up towards the top
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking')
3 files changed, 62 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils.inc b/meta-networking/recipes-support/bridge-utils/bridge-utils.inc new file mode 100644 index 0000000000..271fc82139 --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils.inc | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "Tools for ethernet bridging" | ||
2 | HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge" | ||
3 | SECTION = "console/network" | ||
4 | LICENSE = "GPLv2" | ||
5 | |||
6 | DEPENDS = "sysfsutils" | ||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
12 | EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}" | ||
13 | |||
14 | do_install_append () { | ||
15 | mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN} | ||
16 | install -d ${D}/${datadir}/bridge-utils | ||
17 | install -d ${D}/${sysconfdir}/network/if-pre-up.d | ||
18 | install -d ${D}/${sysconfdir}/network/if-post-down.d | ||
19 | } | ||
20 | |||
21 | RRECOMMENDS_${PN} = "kernel-module-bridge" | ||
22 | |||
23 | pkg_postinst_${PN} () { | ||
24 | update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100 | ||
25 | } | ||
26 | |||
27 | pkg_prerm_${PN} () { | ||
28 | update-alternatives --remove brctl brctl.${PN} | ||
29 | } | ||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils/kernel-headers.patch b/meta-networking/recipes-support/bridge-utils/bridge-utils/kernel-headers.patch new file mode 100644 index 0000000000..de36f0598b --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils/kernel-headers.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | include missing kernel header | ||
2 | |||
3 | Fixes errors like | ||
4 | |||
5 | | /b/kraj/jlinux-next/poky/build/tmp-eglibc/sysroots/re-64b/usr/include/linux/if_bridge.h:172:20: error: field 'ip6' has incomplete type | ||
6 | | In file included from ../libbridge/libbridge.h:24:0, | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Index: bridge-utils-1.5/libbridge/libbridge.h | ||
12 | =================================================================== | ||
13 | --- bridge-utils-1.5.orig/libbridge/libbridge.h 2011-03-28 17:52:54.000000000 -0700 | ||
14 | +++ bridge-utils-1.5/libbridge/libbridge.h 2013-03-04 21:16:25.781188309 -0800 | ||
15 | @@ -20,6 +20,7 @@ | ||
16 | #define _LIBBRIDGE_H | ||
17 | |||
18 | #include <sys/socket.h> | ||
19 | +#include <linux/in6.h> | ||
20 | #include <linux/if.h> | ||
21 | #include <linux/if_bridge.h> | ||
22 | |||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils_1.5.bb b/meta-networking/recipes-support/bridge-utils/bridge-utils_1.5.bb new file mode 100644 index 0000000000..04f863b223 --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils_1.5.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require bridge-utils.inc | ||
2 | |||
3 | SRC_URI += "file://kernel-headers.patch" | ||
4 | |||
5 | PARALLEL_MAKE = "" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37" | ||
8 | |||
9 | SRC_URI[md5sum] = "ec7b381160b340648dede58c31bb2238" | ||
10 | SRC_URI[sha256sum] = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688" | ||
11 | |||