Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  14. endef
  15. define Package/ffho-ebtables-net-rules/description
  16. This package adds an additional layer-2 filter-ruleset to prevent traffic,
  17. which is not destined for any Freifunk Paderborn layer-3 specific target,
  18. from entering the network via the nodes.
  19. endef
  20. define Build/Prepare
  21. mkdir -p $(PKG_BUILD_DIR)
  22. endef
  23. define Build/Configure
  24. endef
  25. define Build/Compile
  26. endef
  27. define Package/ffho-ebtables-net-rules/install
  28. $(INSTALL_DIR) $(1)/lib/gluon/ebtables/
  29. $(CP) ./files/lib/gluon/ebtables/100-ffho-net-chain $(1)/lib/gluon/ebtables/
  30. $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv4-space $(1)/lib/gluon/ebtables/
  31. $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv6-spaces $(1)/lib/gluon/ebtables/
  32. $(CP) ./files/lib/gluon/ebtables/400-add-ffho-net-chain $(1)/lib/gluon/ebtables/
  33. endef
  34. $(eval $(call BuildPackage,ffho-ebtables-net-rules))