vigigraph / Makefile @ 8d76ded8
History | View | Annotate | Download (1.99 KB)
1 | 0931fc44 | Thomas BURGUIERE | NAME := vigigraph |
---|---|---|---|
2 | 2f5d4f00 | Aurelien BOMPARD | |
3 | df05a1cf | Francois POIROTTE | SUBST_FILES := \ |
4 | deployment/logrotate.conf \ |
||
5 | deployment/settings.ini \ |
||
6 | deployment/vigigraph.conf \ |
||
7 | deployment/vigigraph.wsgi |
||
8 | 9996920f | Aurelien BOMPARD | |
9 | 7c9baa43 | Francois POIROTTE | all: build |
10 | 9996920f | Aurelien BOMPARD | build: $(SUBST_FILES) |
11 | 2f5d4f00 | Aurelien BOMPARD | |
12 | c472fc59 | Aurelien BOMPARD | include buildenv/Makefile.common.python |
13 | b444f1f7 | Aurelien BOMPARD | MODULE := $(NAME) |
14 | 1f21c892 | Aurelien BOMPARD | EPYDOC_PARSE := vigigraph\.controllers |
15 | a3e33eb1 | Aurelien BOMPARD | JSFILES = vigigraph/public/js |
16 | b444f1f7 | Aurelien BOMPARD | |
17 | 9996920f | Aurelien BOMPARD | deployment/%: deployment/%.in |
18 | sed -e 's,@SYSCONFDIR@,$(SYSCONFDIR),g' \ |
||
19 | df05a1cf | Francois POIROTTE | -e 's,@HTTPD_USER@,$(HTTPD_USER),g' \ |
20 | 62f42161 | Francois POIROTTE | -e 's,@NAGIOS_BIN@,$(NAGIOS_BIN),g' \ |
21 | ed1418f0 | Thomas BURGUIERE | -e 's,@LOCALSTATEDIR@,$(LOCALSTATEDIR),g' $^ > $@ |
22 | 9996920f | Aurelien BOMPARD | |
23 | c19f786a | Aurelien BOMPARD | install: build install_python install_data |
24 | 3751b6ce | Aurelien BOMPARD | install_pkg: build install_python_pkg install_data |
25 | 3ba7282b | Aurelien BOMPARD | |
26 | 9996920f | Aurelien BOMPARD | install_python: $(PYTHON) $(SUBST_FILES) |
27 | 5627afd6 | Aurelien BOMPARD | $(PYTHON) setup.py install --record=INSTALLED_FILES |
28 | 3ba7282b | Aurelien BOMPARD | install_python_pkg: $(PYTHON) |
29 | 1ff8c312 | Francois POIROTTE | $(PYTHON) setup.py install --single-version-externally-managed \ |
30 | $(SETUP_PY_OPTS) --root=$(DESTDIR) --record=INSTALLED_FILES |
||
31 | 3ba7282b | Aurelien BOMPARD | |
32 | 9996920f | Aurelien BOMPARD | install_data: $(SUBST_FILES) |
33 | 53bdf40e | Aurelien BOMPARD | # Permissions de la conf |
34 | chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME) |
||
35 | 9cd0325e | Aurelien BOMPARD | [ `id -u` -ne 0 ] || chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
36 | 9996920f | Aurelien BOMPARD | chmod 640 $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
37 | 97b58008 | Aurelien BOMPARD | # Apache |
38 | 0f317fa6 | Aurelien BOMPARD | mkdir -p $(DESTDIR)$(HTTPD_DIR) |
39 | af425723 | Aurelien BOMPARD | ln -f -s $(SYSCONFDIR)/vigilo/$(NAME)/$(NAME).conf $(DESTDIR)$(HTTPD_DIR)/$(PKGNAME).conf |
40 | echo $(HTTPD_DIR)/$(PKGNAME).conf >> INSTALLED_FILES |
||
41 | 9996920f | Aurelien BOMPARD | mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/log/vigilo/$(NAME) |
42 | 20422c44 | Aurelien BOMPARD | [ `id -u` -ne 0 ] || chown $(HTTPD_USER): $(DESTDIR)$(LOCALSTATEDIR)/log/vigilo/$(NAME) |
43 | af425723 | Aurelien BOMPARD | install -m 644 -p -D deployment/logrotate.conf $(DESTDIR)/etc/logrotate.d/$(PKGNAME) |
44 | 8d76ded8 | Francois POIROTTE | # Installation du app_cfg.py |
45 | install -m 644 -p app_cfg.py $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/ |
||
46 | bb3d9eb7 | Aurelien BOMPARD | # Cache |
47 | mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
48 | chmod 750 $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
49 | [ `id -u` -ne 0 ] || chown $(HTTPD_USER): $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
50 | 0f317fa6 | Aurelien BOMPARD | |
51 | 0931fc44 | Thomas BURGUIERE | lint: lint_pylint |
52 | 4c964d96 | Aurelien BOMPARD | tests: tests_nose |
53 | 101a8e79 | Francois POIROTTE | doc: apidoc sphinxdoc |
54 | 7c9baa43 | Francois POIROTTE | clean: clean_python |
55 | 9996920f | Aurelien BOMPARD | rm -f $(SUBST_FILES) |
56 | 3ba7282b | Aurelien BOMPARD | |
57 | .PHONY: install_pkg install_python install_python_pkg install_data |