Makefile 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright (C) 2012 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:=gluon-setup-mode
  5. PKG_VERSION:=1
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include ../gluon.mk
  8. define Package/gluon-setup-mode
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. TITLE:=Setup mode
  12. DEPENDS:=+gluon-core +gluon-web +ubus +uhttpd +dnsmasq
  13. endef
  14. define Package/gluon-setup-mode/description
  15. Offline mode to perform basic setup in a secure manner.
  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 GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  24. endef
  25. define Package/gluon-setup-mode/install
  26. $(CP) ./files/* $(1)/
  27. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  28. endef
  29. define Package/gluon-setup-mode/postinst
  30. #!/bin/sh
  31. $(call GluonCheckSite,check_site.lua)
  32. endef
  33. $(eval $(call BuildPackage,gluon-setup-mode))