Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 1 | SUMMARY = "Filtering tool for a Linux-based bridging firewall" |
| 2 | HOMEPAGE = "http://sourceforge.net/projects/ebtables/" |
| 3 | DESCRIPTION = "Utility for basic Ethernet frame filtering on a Linux bridge, \ |
| 4 | advanced logging, MAC DNAT/SNAT and brouting." |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 5 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=53b4a999993871a28ab1488fdbd2e73e" |
| 7 | SECTION = "net" |
| 8 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 9 | RDEPENDS:${PN} += "bash" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 10 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 11 | RRECOMMENDS:${PN} += "kernel-module-ebtables \ |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 12 | " |
| 13 | |
| 14 | SRC_URI = "http://ftp.netfilter.org/pub/ebtables/ebtables-${PV}.tar.gz \ |
| 15 | file://0001-Makefile.am-do-not-install-etc-ethertypes.patch \ |
| 16 | file://ebtables-legacy-save \ |
| 17 | file://ebtables.common \ |
| 18 | file://ebtables.service \ |
| 19 | " |
| 20 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | SRC_URI:append:libc-musl = " file://0010-Adjust-header-include-sequence.patch" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 22 | |
| 23 | SRC_URI[md5sum] = "071c8b0a59241667a0044fb040d4fc72" |
| 24 | SRC_URI[sha256sum] = "b71f654784a726329f88b412ef7b96b4e5d786ed2bd28193ed7b4c0d677dfd2a" |
| 25 | |
| 26 | inherit systemd autotools |
| 27 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | do_install:append () { |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 29 | # Replace upstream ebtables-save perl script with Fedora bash based rewrite |
| 30 | # http://pkgs.fedoraproject.org/cgit/rpms/ebtables.git/tree/ebtables-save |
| 31 | rm -f ${D}${sbindir}/ebtables-legacy-save |
| 32 | install -m 0755 ${WORKDIR}/ebtables-legacy-save ${D}${sbindir}/ebtables-legacy-save |
| 33 | |
| 34 | # Install systemd service files |
| 35 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 36 | install -d ${D}${systemd_unitdir}/system |
| 37 | install -m 0644 ${WORKDIR}/ebtables.service ${D}${systemd_unitdir}/system |
| 38 | sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/ebtables.service |
| 39 | install -m 0755 ${WORKDIR}/ebtables.common ${D}${sbindir}/ebtables.common |
| 40 | fi |
| 41 | |
| 42 | install -d ${D}${base_sbindir} |
| 43 | ln -sf ${sbindir}/ebtables-legacy ${D}${base_sbindir}/ebtables |
| 44 | } |
| 45 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 46 | do_configure:prepend () { |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 47 | ( cd ${S}; ./autogen.sh ) |
| 48 | } |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | FILES:${PN}-dbg += "${base_libdir}/ebtables/.debug" |
| 51 | FILES:${PN} += "${base_libdir}/ebtables/*.so" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 52 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 53 | SYSTEMD_SERVICE:${PN} = "ebtables.service" |