Makefile 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-ebtables-source-filter
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include ../gluon.mk
  7. define Package/gluon-ebtables-source-filter
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Ebtables rules to filter unreasonable L2 traffic.
  11. DEPENDS:=+gluon-core +gluon-ebtables
  12. endef
  13. define Package/gluon-ebtables-source-filter/description
  14. This package adds an additional layer-2 filter-ruleset to prevent unreasonable
  15. traffic entering the network via the nodes.
  16. endef
  17. define Build/Prepare
  18. mkdir -p $(PKG_BUILD_DIR)
  19. endef
  20. define Build/Configure
  21. endef
  22. define Build/Compile
  23. endef
  24. define Package/gluon-ebtables-source-filter/install
  25. $(CP) ./files/* $(1)/
  26. endef
  27. define Package/gluon-ebtables-source-filter/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-ebtables-source-filter))