Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-mesh-batman-adv-core
  3. PKG_VERSION:=1
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. PKG_BUILD_DEPENDS := respondd
  6. include ../gluon.mk
  7. define Package/gluon-mesh-batman-adv-core
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Support for batman-adv meshing (core)
  11. DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +gluon-ebtables +firewall +libiwinfo +kmod-dummy +libnl-tiny
  12. endef
  13. define Build/Prepare
  14. mkdir -p $(PKG_BUILD_DIR)
  15. $(CP) ./src/* $(PKG_BUILD_DIR)/
  16. endef
  17. define Build/Compile
  18. $(call Build/Compile/Default)
  19. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  20. endef
  21. define Package/gluon-mesh-batman-adv-core/install
  22. $(CP) ./files/* $(1)/
  23. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  24. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  25. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-batman-adv-core.so
  26. endef
  27. define Package/gluon-mesh-batman-adv-core/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-mesh-batman-adv-core))