Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-wifi-mesh-macfilter
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/ffho-wifi-mesh-macfilter
  8. SECTION:=ffho
  9. CATEGORY:=Workarounds
  10. TITLE:=WiFi - block/open 802.11s-mesh stations
  11. DEPENDS:=+iw +uci
  12. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  13. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  14. endef
  15. define Package/ffho-wifi-mesh-macfilter/description
  16. Setting plink_action [block|open], when 802.11s mesh-interface comes up.
  17. Define filterpolicy in uci wireless.<wifi-iface>.macfilter=[disable|deny|allow].
  18. Deny sets iw dev <device> station set <mac> plink_action block, and
  19. allow sets iw dev <device> mesh_param mesh_auto_open_plink=0 and
  20. iw dev <device> station set <mac> plink_action open. List MAC adresses
  21. (divided by spaces) in uci wireless.<wifi-iface>.maclist.
  22. endef
  23. define Build/Prepare
  24. mkdir -p $(PKG_BUILD_DIR)
  25. endef
  26. define Build/Configure
  27. endef
  28. define Build/Compile
  29. endef
  30. define Package/ffho-wifi-mesh-macfilter/install
  31. $(CP) ./files/* $(1)/
  32. endef
  33. $(eval $(call BuildPackage,ffho-wifi-mesh-macfilter))