Makefile 894 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-luci-node-role
  3. PKG_VERSION:=0.1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(GLUONDIR)/include/package.mk
  7. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  8. define Package/gluon-luci-node-role
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. DEPENDS:=+gluon-luci-admin +gluon-node-info
  12. TITLE:=UI for specifying node role
  13. endef
  14. define Build/Prepare
  15. mkdir -p $(PKG_BUILD_DIR)
  16. endef
  17. define Build/Configure
  18. endef
  19. define Build/Compile
  20. $(call GluonBuildI18N,gluon-luci-node-role,i18n)
  21. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  22. endef
  23. define Package/gluon-luci-node-role/install
  24. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  25. $(call GluonInstallI18N,gluon-luci-node-role,$(1))
  26. endef
  27. define Package/gluon-luci-node-role/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-luci-node-role))