Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-luci-autoupdater-wifi-fallback
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(GLUONDIR)/include/package.mk
  7. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  8. define Package/ffho-luci-autoupdater-wifi-fallback
  9. SECTION:=ffho
  10. CATEGORY:=FFHO
  11. TITLE:=Luci module for gluon-autoupdater and ffho-autoupdater-wifi-fallback
  12. DEPENDS:=+gluon-luci-admin +gluon-autoupdater +ffho-autoupdater-wifi-fallback
  13. PROVIDES:=gluon-luci-autoupdater
  14. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  15. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  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-luci-autoupdater-wifi-fallback,i18n)
  24. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  25. endef
  26. define Package/ffho-luci-autoupdater-wifi-fallback/install
  27. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  28. $(call GluonInstallI18N,ffho-luci-autoupdater-wifi-fallback,$(1))
  29. endef
  30. $(eval $(call BuildPackage,ffho-luci-autoupdater-wifi-fallback))