Makefile 1.0 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 $(INCLUDE_DIR)/package.mk
  7. define Package/ffho-ebtables-net-rules
  8. SECTION:=ffho
  9. CATEGORY:=FFHO
  10. TITLE:=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 unreasonable
  17. traffic 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. $(CP) ./files/* $(1)/
  28. endef
  29. define Package/ffho-ebtables-net-rules/postinst
  30. #!/bin/sh
  31. $(call GluonCheckSite,check_site.lua)
  32. endef
  33. $(eval $(call BuildPackage,ffho-ebtables-net-rules))