include $(TOPDIR)/rules.mk PKG_NAME:=ffho-ebtables-net-rules PKG_VERSION:=1 PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/ffho-ebtables-net-rules SECTION:=ffho CATEGORY:=Gluon TITLE:=FFHO net-specific ebtables rules to filter unreasonable L2 traffic. DEPENDS:=+gluon-core +gluon-ebtables MAINTAINER:=Freifunk Hochstift URL:=https://git.c3pb.de/freifunk-pb/ffho-packages SOURCE:=git@git.c3pb.de:freifunk-pb/ffho-packages.git endef define Package/ffho-ebtables-net-rules/description This package adds an additional layer-2 filter-ruleset to prevent traffic, which is not destined for any Freifunk Paderborn layer-3 specific target, from entering the network via the nodes. endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) endef define Build/Configure endef define Build/Compile endef define Package/ffho-ebtables-net-rules/install $(INSTALL_DIR) $(1)/lib/gluon/ebtables/ $(CP) ./files/lib/gluon/ebtables/100-ffho-net-chain $(1)/lib/gluon/ebtables/ $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv4-space $(1)/lib/gluon/ebtables/ $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv6-spaces $(1)/lib/gluon/ebtables/ $(CP) ./files/lib/gluon/ebtables/400-add-ffho-net-chain $(1)/lib/gluon/ebtables/ endef $(eval $(call BuildPackage,ffho-ebtables-net-rules))