Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-radv-filterd
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include ../gluon.mk
  7. define Package/gluon-radv-filterd
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Filter IPv6 router advertisements
  11. DEPENDS:=+gluon-ebtables
  12. endef
  13. define Package/gluon-radv-filterd/description
  14. Gluon community wifi mesh firmware framework: filter IPv6 router advertisements
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. $(CP) ./src/* $(PKG_BUILD_DIR)/
  19. endef
  20. define Build/Configure
  21. endef
  22. define Build/Compile
  23. CFLAGS="$(TARGET_CFLAGS)" CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
  24. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  25. endef
  26. define Package/gluon-radv-filterd/install
  27. $(CP) ./files/* $(1)/
  28. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  29. $(INSTALL_DIR) $(1)/usr/sbin/
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-radv-filterd $(1)/usr/sbin/
  31. endef
  32. define Package/gluon-radv-filterd/postinst
  33. #!/bin/sh
  34. $(call GluonCheckSite,check_site.lua)
  35. endef
  36. $(eval $(call BuildPackage,gluon-radv-filterd))