Eolisation de Munin

apps.mk 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # NE PAS EDITER CE FICHIER
  3. #
  4. # Voir Makefile
  5. ##########################
  6. # Application web envole #
  7. ##########################
  8. ifneq (, $(filter oui web, $(PKGAPPS)))
  9. #
  10. # Sanity check
  11. #
  12. ifeq (, $(filter-out X.X, $(strip $(VERSION))))
  13. $(error $$(VERSION) variable has incorrect value '$(VERSION)')
  14. endif
  15. # Where to store web application files
  16. WEB_PATH := $(DESTDIR)/var/www/html
  17. # Envole
  18. sharenvole_PROG_DIR := $(DESTDIR)/usr/share/envole/$(SOURCE)
  19. src_$(SOURCE)-$(VERSION)_REC_DIR := $(WEB_PATH)/$(SOURCE)
  20. src_plugins-$(VERSION)_REC_DIR := $(WEB_PATH)/$(SOURCE)/plugin
  21. src_lang-$(VERSION)_REC_DIR := $(WEB_PATH)/$(SOURCE)/lang
  22. endif
  23. ##########################
  24. # Application EOLE flask #
  25. ##########################
  26. ifneq (, $(filter flask, $(PKGAPPS)))
  27. #
  28. # Sanity check
  29. #
  30. ifeq (, $(filter-out XXX, $(strip $(FLASK_MODULE))))
  31. $(error $$(FLASK_MODULE) variable has incorrect value '$(FLASK_MODULE)')
  32. endif
  33. ifeq (, $(strip $(wildcard src/$(FLASK_MODULE).conf)))
  34. $(error missing eoleflask configuration file 'src/$(FLASK_MODULE).conf')
  35. endif
  36. # Everything is related to mount point
  37. APPS_MOUNT_POINT := $(shell sed -ne 's|^"MOUNT_POINT"[[:space:]]*:[[:space:]]*"/\([^"]*\)",|\1|p' \
  38. src/$(FLASK_MODULE).conf)
  39. ifeq (, $(strip $(APPS_MOUNT_POINT)))
  40. $(error no "MOUNT_POINT" in eoleflask configuration file 'src/$(FLASK_MODULE).conf')
  41. endif
  42. # eole-flask configuration
  43. src_DATA_DIR := $(DESTDIR)/etc/eole/flask/available
  44. # Where to store flask application files
  45. FLASK_PATH := $(eole_DIR)/flask/$(APPS_MOUNT_POINT)
  46. # static files
  47. src_$(FLASK_MODULE)_static_REC_DIR := $(FLASK_PATH)/static
  48. src_$(FLASK_MODULE)_templates_REC_DIR := $(FLASK_PATH)/templates
  49. src_$(FLASK_MODULE)_instance_REC_DIR := $(FLASK_PATH)/resources
  50. endif