diff options
Diffstat (limited to 'recipes/ebtables/ebtables_2.0.9-2.bb')
-rw-r--r-- | recipes/ebtables/ebtables_2.0.9-2.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes/ebtables/ebtables_2.0.9-2.bb b/recipes/ebtables/ebtables_2.0.9-2.bb new file mode 100644 index 0000000000..b1fe7a2fb8 --- /dev/null +++ b/recipes/ebtables/ebtables_2.0.9-2.bb @@ -0,0 +1,50 @@ +DESCRIPTION = "Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and brouting." +PRIORITY = "optional" +LICENSE = "GPL" +SECTION = "console/network" +PR = "r0" + +TARGET_CC_ARCH += "${LDFLAGS}" + +SRC_URI = " \ + ${SOURCEFORGE_MIRROR}/ebtables/ebtables-v${PV}.tar.gz \ + file://installnonroot.patch \ + file://01debian_defaultconfig.patch \ + file://ebtables.init \ + " + +SRC_URI[md5sum] = "b880429a6424186728eb57ae80ef878a" +SRC_URI[sha256sum] = "98855f644d43c615a8e663197978e49c95642f46f2bbf8e6f3213af87f8ad6a3" + +S = "${WORKDIR}/ebtables-v${PV}" + +EXTRA_OEMAKE = " \ + BINDIR=${base_sbindir} \ + MANDIR=${mandir} \ + ETHERTYPESPATH=${sysconfdir} \ + INITDIR=${sysconfdir}/init.d \ + SYSCONFIGDIR=${sysconfdir}/default \ + LIBDIR=${base_libdir}/ebtables \ + 'CC=${CC}' \ + 'CFLAGS=${CFLAGS}' \ + 'LD=${LD}' \ + " + +do_install () { + install -d ${D}${sysconfdir}/init.d + install -d ${D}${sysconfdir}/default + install -d ${D}${sysconfdir}/ebtables + oe_runmake DESTDIR='${D}' install + install -m 0755 ${WORKDIR}/ebtables.init ${D}/${sysconfdir}/init.d/ebtables + mv ${D}${sysconfdir}/default/ebtables-config ${D}${sysconfdir}/default/ebtables +} + +CONFFILES_${PN} += "${sysconfdir}/default/ebtables" + +inherit update-rc.d + +INITSCRIPT_NAME = "ebtables" +INITSCRIPT_PARAMS = "start 41 S . stop 41 6 ." + +FILES_${PN}-dbg += "${base_libdir}/ebtables/.debug" +FILES_${PN} += "${base_libdir}/ebtables/*.so" |