glpi / Makefile @ 7ca31ee8
History | View | Annotate | Download (1.4 KB)
1 |
NAME = glpi |
---|---|
2 |
|
3 |
all: |
4 |
|
5 |
include buildenv/Makefile.common.nopython |
6 |
|
7 |
install: install_base install_data install_permissions |
8 |
|
9 |
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 |
mkdir -p $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hlservices/managed |
16 |
cp -pr src/plugins/vigilo $(DESTDIR)$(DATADIR)/$(NAME)/plugins/ |
17 |
|
18 |
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 |
chown vigiconf:apache $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hlservices/managed |
29 |
chmod 0770 $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/groups/managed |
30 |
chown 0770 $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hosts/managed |
31 |
chown 0770 $(DESTDIR)$(SYSCONFDIR)/vigilo/vigiconf/conf.d/hlservices/managed |
32 |
|
33 |
clean: clean_common |
34 |
|
35 |
doc: sphinxdoc |
36 |
|
37 |
.PHONY: all install install_pkg clean man doc |