Makefile 928 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-config-mode-geo-location
  3. PKG_VERSION:=1
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include $(GLUONDIR)/include/package.mk
  6. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  7. define Package/ffho-config-mode-geo-location
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Set geographic location of a node
  11. DEPENDS:=gluon-config-mode-core-virtual +gluon-node-info
  12. PROVIDES:=gluon-config-mode-geo-location
  13. endef
  14. define Build/Prepare
  15. mkdir -p $(PKG_BUILD_DIR)
  16. endef
  17. define Build/Configure
  18. endef
  19. define Build/Compile
  20. $(call GluonBuildI18N,ffho-config-mode-geo-location,i18n)
  21. endef
  22. define Package/ffho-config-mode-geo-location/install
  23. $(CP) ./files/* $(1)/
  24. $(call GluonInstallI18N,ffho-config-mode-geo-location,$(1))
  25. endef
  26. define Package/ffho-config-mode-geo-location/postinst
  27. #!/bin/sh
  28. $(call GluonCheckSite,check_site.lua)
  29. endef
  30. $(eval $(call BuildPackage,ffho-config-mode-geo-location))