diff options
Diffstat (limited to 'recipes/bridge-utils/bridge-utils.inc')
-rw-r--r-- | recipes/bridge-utils/bridge-utils.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/bridge-utils/bridge-utils.inc b/recipes/bridge-utils/bridge-utils.inc new file mode 100644 index 0000000000..ba4d5827d8 --- /dev/null +++ b/recipes/bridge-utils/bridge-utils.inc @@ -0,0 +1,24 @@ +DESCRIPTION = "Tools for ethernet bridging." +HOMEPAGE = "http://bridge.sourceforge.net/" +SECTION = "console/network" +LICENSE = "GPL" +DEPENDS = "sysfsutils" +RRECOMMENDS = "kernel-module-bridge" + +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} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove brctl brctl.${PN} +} |