vigiboard / Makefile @ 5fcc4402
History | View | Annotate | Download (1.43 KB)
1 | d7540235 | Aurelien BOMPARD | NAME := vigiboard |
---|---|---|---|
2 | 536ea51c | Aurelien BOMPARD | all: build |
3 | |||
4 | 70209762 | Aurelien BOMPARD | include buildenv/Makefile.common |
5 | PKGNAME := $(NAME) |
||
6 | MODULE := $(NAME) |
||
7 | CODEPATH := $(NAME) |
||
8 | 6eaeb5a7 | Aurelien BOMPARD | EPYDOC_PARSE := vigiboard\.(widgets|controllers) |
9 | 70209762 | Aurelien BOMPARD | |
10 | b1841386 | Aurelien BOMPARD | install: $(PYTHON) |
11 | a43ec272 | Aurelien BOMPARD | $(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES |
12 | fd3d2299 | Aurelien BOMPARD | chmod a+rX -R $(DESTDIR)$(PREFIX)/lib*/python*/* |
13 | 64ef5a71 | Aurelien BOMPARD | # Permissions de la conf |
14 | chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME) |
||
15 | acb0dfad | Aurelien BOMPARD | [ `id -u` -ne 0 ] || chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
16 | 64ef5a71 | Aurelien BOMPARD | chmod 640 $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
17 | fd3d2299 | Aurelien BOMPARD | # Apache |
18 | a43ec272 | Aurelien BOMPARD | mkdir -p $(DESTDIR)$(HTTPD_DIR) |
19 | 88f37dd7 | Aurelien BOMPARD | ln -f -s $(SYSCONFDIR)/vigilo/$(NAME)/$(NAME).conf $(DESTDIR)$(HTTPD_DIR)/ |
20 | echo $(HTTPD_DIR)/$(NAME).conf >> INSTALLED_FILES |
||
21 | 64ef5a71 | Aurelien BOMPARD | mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/log/vigilo/$(NAME) |
22 | 0bcaefe4 | Aurelien BOMPARD | install -m 644 -p -D deployment/logrotate.conf $(DESTDIR)/etc/logrotate.d/$(NAME) |
23 | 88f37dd7 | Aurelien BOMPARD | # Déplacement du app_cfg.py |
24 | mv $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/ |
||
25 | ln -s $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` |
||
26 | echo $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py >> INSTALLED_FILES |
||
27 | 64ef5a71 | Aurelien BOMPARD | # Cache |
28 | mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
29 | chmod 750 $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
30 | 119ddf4c | Aurelien BOMPARD | [ `id -u` -ne 0 ] || chown $(HTTPD_USER): $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
31 | f913c9d3 | Thomas BURGUIERE | |
32 | a43ec272 | Aurelien BOMPARD | |
33 | 858d88aa | Francois POIROTTE | |
34 | d7540235 | Aurelien BOMPARD | lint: lint_pylint |
35 | c6e2f817 | Aurelien BOMPARD | tests: tests_nose |
36 | 536ea51c | Aurelien BOMPARD | clean: clean_python |