Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-core
  5. PKG_VERSION:=2
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include $(GLUONDIR)/include/package.mk
  8. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  9. define Package/gluon-config-mode-core
  10. SECTION:=gluon
  11. CATEGORY:=Gluon
  12. TITLE:=Luci based config mode for user friendly setup of new mesh nodes
  13. DEPENDS:=+gluon-setup-mode +gluon-luci-theme +gluon-lock-password $(GLUON_I18N_PACKAGES)
  14. endef
  15. define Build/Prepare
  16. mkdir -p $(PKG_BUILD_DIR)
  17. endef
  18. define Build/Configure
  19. endef
  20. define Build/Compile
  21. $(call GluonBuildI18N,gluon-config-mode-core,i18n)
  22. endef
  23. define Package/gluon-config-mode-core/install
  24. $(CP) ./files/* $(1)/
  25. $(call GluonInstallI18N,gluon-config-mode-core,$(1))
  26. endef
  27. define Package/gluon-config-mode-core/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-config-mode-core))