Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright (C) 2013 Nils Schneider <nils at nilsschneider.net>
  2. # This is free software, licensed under the Apache 2.0 license.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=ffho-web-autoupdater
  5. PKG_VERSION:=1
  6. PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
  7. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  8. include $(TOPDIR)/../package/gluon.mk
  9. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  10. define Package/ffho-web-autoupdater
  11. SECTION:=ffho
  12. CATEGORY:=FFHO
  13. TITLE:=gluon-web module for gluon-autoupdater and ffho-autoupdater-wifi-fallback
  14. DEPENDS:=+gluon-web-admin +ffho-autoupdater-wifi-fallback
  15. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  16. endef
  17. define Build/Prepare
  18. mkdir -p $(PKG_BUILD_DIR)
  19. endef
  20. define Build/Configure
  21. endef
  22. define Build/Compile
  23. $(call GluonBuildI18N,ffho-web-autoupdater,i18n)
  24. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  25. endef
  26. define Package/ffho-web-autoupdater/install
  27. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  28. $(call GluonInstallI18N,ffho-web-autoupdater,$(1))
  29. endef
  30. $(eval $(call BuildPackage,ffho-web-autoupdater))