Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-ebtables-net-rules
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(TOPDIR)/../package/gluon.mk
  7. define Package/ffho-ebtables-net-rules
  8. SECTION:=ffho
  9. CATEGORY:=FFHO
  10. TITLE:=FFHO net-specific ebtables rules to filter unreasonable L2 traffic.
  11. DEPENDS:=+gluon-core +gluon-ebtables
  12. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  13. endef
  14. define Package/ffho-ebtables-net-rules/description
  15. This package adds an additional layer-2 filter-ruleset to prevent traffic,
  16. which is not destined for any Freifunk Paderborn layer-3 specific target,
  17. from entering the network via the nodes.
  18. endef
  19. define Build/Prepare
  20. mkdir -p $(PKG_BUILD_DIR)
  21. endef
  22. define Build/Configure
  23. endef
  24. define Build/Compile
  25. endef
  26. define Package/ffho-ebtables-net-rules/install
  27. $(INSTALL_DIR) $(1)/lib/gluon/ebtables/
  28. $(CP) ./files/lib/gluon/ebtables/100-ffho-net-chain $(1)/lib/gluon/ebtables/
  29. $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv4-space $(1)/lib/gluon/ebtables/
  30. $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv6-spaces $(1)/lib/gluon/ebtables/
  31. $(CP) ./files/lib/gluon/ebtables/400-add-ffho-net-chain $(1)/lib/gluon/ebtables/
  32. endef
  33. $(eval $(call BuildPackage,ffho-ebtables-net-rules))