Makefile 950 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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-config-mode
  5. PKG_VERSION:=1
  6. PKG_RELEASE:=1.$(GLUON_CONFIG_VERSION)
  7. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  8. include $(INCLUDE_DIR)/package.mk
  9. define Package/gluon-config-mode
  10. SECTION:=gluon
  11. CATEGORY:=Gluon
  12. TITLE:=Luci based config mode for user friendly setup of new meshnodes
  13. DEPENDS:=+gluon-core +gluon-lock-password +gluon-location +gluon-simple-tc +uhttpd +dnsmasq +luci-mod-admin-core +ip +luci-theme-openwrt
  14. endef
  15. define Package/gluon-config-mode/description
  16. Luci based config mode
  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. endef
  25. define Package/gluon-config-mode/install
  26. $(CP) ./files/* $(1)/
  27. $(GLUON_GENERATE) ./generate/* $(1)/
  28. endef
  29. $(eval $(call BuildPackage,gluon-config-mode))