Makefile 977 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 +luci-base +uhttpd +dnsmasq
  13. PROVIDES:=gluon-setup-mode-virtual
  14. endef
  15. define Package/gluon-setup-mode/description
  16. Offline mode to perform basic setup in a secure manner.
  17. endef
  18. define Build/Prepare
  19. mkdir -p $(PKG_BUILD_DIR)
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  25. endef
  26. define Package/gluon-setup-mode/install
  27. $(CP) ./files/* $(1)/
  28. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  29. endef
  30. define Package/gluon-setup-mode/postinst
  31. #!/bin/sh
  32. $(call GluonCheckSite,check_site.lua)
  33. endef
  34. $(eval $(call BuildPackage,gluon-setup-mode))