Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffnw-hoodselector
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. PKG_BUILD_DEPENDS := lua/host luci-base/host respondd
  7. include $(GLUONDIR)/include/package.mk
  8. define Package/ffnw-hoodselector
  9. SECTION:=networke
  10. CATEGORY:=Freifunk Nordwest
  11. TITLE:=Select the hoods depending on the geo coordinate
  12. DEPENDS:=+ffnw-hoods +luci-lib-jsonc gluon-mesh-batman-adv-15 +gluon-mesh-vpn-fastd +respondd
  13. endef
  14. define Package/ffnw-hoodselector/description
  15. Select the hoods depending on the geo coordinates
  16. endef
  17. define Build/Prepare
  18. mkdir -p $(PKG_BUILD_DIR)
  19. $(CP) ./src/* $(PKG_BUILD_DIR)/
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. $(call Build/Compile/Default)
  25. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  26. endef
  27. define Package/ffnw-hoodselector/install
  28. $(CP) ./files/* $(1)/
  29. $(INSTALL_DIR) $(1)/usr/sbin
  30. $(CP) $(PKG_BUILD_DIR)/luadest/hoodselector $(1)/usr/sbin/hoodselector
  31. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  32. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/hoodselector.so
  33. endef
  34. $(eval $(call BuildPackage,ffnw-hoodselector))