Makefile 850 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 $(GLUONDIR)/include/package.mk
  8. define Package/gluon-setup-mode
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. TITLE:=Setup mode
  12. DEPENDS:=+gluon-core +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. endef
  24. define Package/gluon-setup-mode/install
  25. $(CP) ./files/* $(1)/
  26. endef
  27. define Package/gluon-setup-mode/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-setup-mode))