Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright (C) 2013 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-web-admin
  5. PKG_VERSION:=1
  6. PKG_RELEASE:=1
  7. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  8. include ../gluon.mk
  9. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  10. define Package/gluon-web-admin
  11. SECTION:=gluon
  12. CATEGORY:=Gluon
  13. TITLE:=Web-based simple administration interface for mesh nodes
  14. DEPENDS:=+gluon-config-mode-core +pretty-hostname
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. $(call GluonBuildI18N,gluon-web-admin,i18n)
  23. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  24. endef
  25. define Package/gluon-web-admin/install
  26. $(CP) ./files/* $(1)/
  27. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  28. $(call GluonInstallI18N,gluon-web-admin,$(1))
  29. endef
  30. define Package/gluon-web-admin/postinst
  31. #!/bin/sh
  32. $(call GluonCheckSite,check_site.lua)
  33. endef
  34. $(eval $(call BuildPackage,gluon-web-admin))