Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-config-mode-contact-info
  3. PKG_VERSION:=1
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include $(GLUONDIR)/include/package.mk
  6. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  7. define Package/gluon-config-mode-contact-info
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Allows the user to provide contact information to be distributed in the mesh
  11. DEPENDS:=gluon-config-mode-core-virtual +gluon-node-info
  12. endef
  13. define Package/gluon-config-mode-contact-info/description
  14. Allows the user to provide contact information to be distributed in the mesh.
  15. Can be made obligatory in site.conf
  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. $(call GluonBuildI18N,gluon-config-mode-contact-info,i18n)
  24. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  25. endef
  26. define Package/gluon-config-mode-contact-info/install
  27. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  28. $(call GluonInstallI18N,gluon-config-mode-contact-info,$(1))
  29. endef
  30. define Package/gluon-config-mode-contact-info/postinst
  31. #!/bin/sh
  32. $(call GluonCheckSite,check_site.lua)
  33. endef
  34. $(eval $(call BuildPackage,gluon-config-mode-contact-info))