glpi / Makefile @ 8d255750
History | View | Annotate | Download (1.4 KB)
1 | 75e60ab7 | Francois POIROTTE | NAME = glpi |
---|---|---|---|
2 | |||
3 | all: |
||
4 | |||
5 | include buildenv/Makefile.common.nopython |
||
6 | |||
7 | 5256c457 | Francois POIROTTE | install: install_base install_data install_permissions |
8 | 75e60ab7 | Francois POIROTTE | |
9 | 5256c457 | Francois POIROTTE | install_pkg: install_base install_data |
10 | |||
11 | install_base: $(INFILES) |
||
12 | mkdir -p $(DESTDIR)$(DATADIR)/$(NAME)/plugins/ |
||
13 | mkdir -p $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/groups/managed |
||
14 | mkdir -p $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hosts/managed |
||
15 | 92b19eed | Francois POIROTTE | mkdir -p $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hlservices/managed |
16 | 166be9d2 | Francois POIROTTE | cp -pr src/plugins/vigilo $(DESTDIR)$(DATADIR)/$(NAME)/plugins/ |
17 | 75e60ab7 | Francois POIROTTE | |
18 | 5256c457 | Francois POIROTTE | install_data: pkg/init pkg/sudoers |
19 | install -p -m 755 -D pkg/init $(DESTDIR)$(INITDIR)/$(PKGNAME) |
||
20 | install -p -m 644 -D pkg/sudoers $(DESTDIR)$(SYSCONFDIR)/sudoers.d/$(PKGNAME) |
||
21 | |||
22 | install_permissions: |
||
23 | -/usr/sbin/usermod -a -G apache vigiconf |
||
24 | chown root:root $(DESTDIR)$(INITDIR)/$(PKGNAME) |
||
25 | chown root:root $(DESTDIR)$(SYSCONFDIR)/sudoers.d/$(PKGNAME) |
||
26 | chown vigiconf:apache $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/groups/managed |
||
27 | chown vigiconf:apache $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hosts/managed |
||
28 | 92b19eed | Francois POIROTTE | chown vigiconf:apache $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hlservices/managed |
29 | 5256c457 | Francois POIROTTE | chmod 0770 $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/groups/managed |
30 | chown 0770 $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hosts/managed |
||
31 | 92b19eed | Francois POIROTTE | chown 0770 $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hlservices/managed |
32 | 5256c457 | Francois POIROTTE | |
33 | 75e60ab7 | Francois POIROTTE | clean: clean_common |
34 | |||
35 | doc: sphinxdoc |
||
36 | |||
37 | .PHONY: all install install_pkg clean man doc |