Makefile 1.4 KB

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