Patchwork [meta-oe,v3,1/3] bridge-utils: add

login
register
mail settings
Submitter Zhenhua Luo
Date Dec. 16, 2011, 2:19 p.m.
Message ID <1324045163-19287-1-git-send-email-b19537@freescale.com>
Download mbox | patch
Permalink /patch/17133/
State Accepted
Commit 1f7f7df5f34b6e3930665b6d9074d65815b5d176
Headers show

Comments

Zhenhua Luo - Dec. 16, 2011, 2:19 p.m.
From: Zhenhua Luo <b19537@freescale.com>

    bridge-utils provides tools for ethernet bridging.

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
---
 .../bridge-utils/bridge-utils.inc                  |   28 ++++++++++++++++++++
 .../bridge-utils/bridge-utils_1.4.bb               |    6 ++++
 2 files changed, 34 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc
 create mode 100644 meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb
Koen Kooi - Dec. 16, 2011, 9:42 p.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

These 3 are all in now

Op 16-12-11 15:19, b19537@freescale.com schreef:
> From: Zhenhua Luo <b19537@freescale.com>
> 
> bridge-utils provides tools for ethernet bridging.
> 
> Signed-off-by: Zhenhua Luo <b19537@freescale.com> --- 
> .../bridge-utils/bridge-utils.inc                  |   28
> ++++++++++++++++++++ .../bridge-utils/bridge-utils_1.4.bb               |
> 6 ++++ 2 files changed, 34 insertions(+), 0 deletions(-) create mode
> 100644 meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc create
> mode 100644
> meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb
> 
> diff --git a/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc
> b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc new file
> mode 100644 index 0000000..75bf2a9 --- /dev/null +++
> b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc @@ -0,0
> +1,28 @@ +DESCRIPTION = "Tools for ethernet bridging." +HOMEPAGE =
> "http://bridge.sourceforge.net/" +SECTION = "console/network" +LICENSE =
> "GPLv2" + +SRC_URI =
> "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz" + +inherit
> autotools + +EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}" + 
> +do_install_append () { +	mv ${D}${sbindir}/brctl
> ${D}${sbindir}/brctl.${PN} +	install -d ${D}/${datadir}/bridge-utils +
> install -d ${D}/${sysconfdir}/network/if-pre-up.d +	install -d
> ${D}/${sysconfdir}/network/if-post-down.d +} + +DEPENDS = "sysfsutils" 
> +RRECOMMENDS_${PN} = "kernel-module-bridge" + +pkg_postinst_${PN} () { +
> update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100 +} 
> + +pkg_prerm_${PN} () { +	update-alternatives --remove brctl brctl.${PN} 
> +} diff --git
> a/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb
> b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb new file
> mode 100644 index 0000000..00a5815 --- /dev/null +++
> b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb @@ -0,0
> +1,6 @@ +require bridge-utils.inc + +LIC_FILES_CHKSUM =
> "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37" + +SRC_URI[md5sum]
> = "0182fcac3a2b307113bbec34e5f1c673" +SRC_URI[sha256sum] =
> "876975e9bcc302aa8b829161ea3348b12b9b879f1db0dc98feaed8d0e5dd5933"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk7ru1YACgkQMkyGM64RGpH3SACfZ4PpCsdoIwlOFy1IRhtbQA9M
w6EAmQHT02CzIKjhd+AN7hE8zLS5nuiQ
=eGKk
-----END PGP SIGNATURE-----

Patch

diff --git a/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc
new file mode 100644
index 0000000..75bf2a9
--- /dev/null
+++ b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc
@@ -0,0 +1,28 @@ 
+DESCRIPTION = "Tools for ethernet bridging."
+HOMEPAGE = "http://bridge.sourceforge.net/"
+SECTION = "console/network"
+LICENSE = "GPLv2"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz"
+
+inherit autotools
+
+EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
+
+do_install_append () {
+	mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN}
+	install -d ${D}/${datadir}/bridge-utils
+	install -d ${D}/${sysconfdir}/network/if-pre-up.d
+	install -d ${D}/${sysconfdir}/network/if-post-down.d
+}
+
+DEPENDS = "sysfsutils"
+RRECOMMENDS_${PN} = "kernel-module-bridge"
+
+pkg_postinst_${PN} () {
+	update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+	update-alternatives --remove brctl brctl.${PN}
+}
diff --git a/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb
new file mode 100644
index 0000000..00a5815
--- /dev/null
+++ b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb
@@ -0,0 +1,6 @@ 
+require bridge-utils.inc
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37"
+
+SRC_URI[md5sum] = "0182fcac3a2b307113bbec34e5f1c673"
+SRC_URI[sha256sum] = "876975e9bcc302aa8b829161ea3348b12b9b879f1db0dc98feaed8d0e5dd5933"