glpi / pkg / glpi.redhat.spec @ 2605341d
History | View | Annotate | Download (1.57 KB)
1 | 75e60ab7 | Francois POIROTTE | %define module @SHORT_NAME@ |
---|---|---|---|
2 | 5256c457 | Francois POIROTTE | %define vigiconf_confdir %{_sysconfdir}/vigilo/vigiconf/conf.d/ |
3 | 75e60ab7 | Francois POIROTTE | |
4 | Name: vigilo-%{module} |
||
5 | Summary: Vigilo integration plugin for GLPI |
||
6 | Version: @VERSION@ |
||
7 | Release: @RELEASE@%{?dist} |
||
8 | Source0: %{name}-%{version}.tar.gz |
||
9 | 2fd8023e | Francois POIROTTE | URL: http://www.vigilo-nms.com |
10 | 75e60ab7 | Francois POIROTTE | Group: Applications/System |
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build |
||
12 | License: GPLv2 |
||
13 | Buildarch: noarch |
||
14 | |||
15 | 6ef95d06 | Francois POIROTTE | Requires: glpi >= 9.1.1 |
16 | 75e60ab7 | Francois POIROTTE | Requires: vigilo-vigiconf |
17 | |||
18 | 5256c457 | Francois POIROTTE | Requires(pre): shadow-utils |
19 | Requires(pre): httpd |
||
20 | Requires(pre): vigilo-vigiconf |
||
21 | |||
22 | 75e60ab7 | Francois POIROTTE | %description |
23 | This package provides a plugin that makes it possible to configure Vigilo |
||
24 | and deploy new configuration files from GLPI's GUI. |
||
25 | 2fd8023e | Francois POIROTTE | This application is part of the Vigilo Project <http://vigilo-nms.com> |
26 | 75e60ab7 | Francois POIROTTE | |
27 | %prep |
||
28 | %setup -q |
||
29 | |||
30 | %build |
||
31 | |||
32 | %install |
||
33 | rm -rf $RPM_BUILD_ROOT |
||
34 | make install_pkg \ |
||
35 | DESTDIR=$RPM_BUILD_ROOT \ |
||
36 | SYSCONFDIR=%{_sysconfdir} \ |
||
37 | DATADIR=%{_datadir} \ |
||
38 | 5256c457 | Francois POIROTTE | INITDIR=%{_initrddir} |
39 | 75e60ab7 | Francois POIROTTE | |
40 | 5256c457 | Francois POIROTTE | %pre |
41 | 2b77b61b | Francois POIROTTE | # On autorise l'accès aux fichiers de configuration |
42 | # de Vigilo (VigiConf) dans les 2 sens. |
||
43 | 5256c457 | Francois POIROTTE | usermod -a -G apache vigiconf || : |
44 | 2b77b61b | Francois POIROTTE | usermod -a -G vigiconf apache || : |
45 | 5256c457 | Francois POIROTTE | exit 0 |
46 | 75e60ab7 | Francois POIROTTE | |
47 | %clean |
||
48 | rm -rf $RPM_BUILD_ROOT |
||
49 | |||
50 | %files |
||
51 | %defattr(644,root,root,755) |
||
52 | %doc COPYING.txt |
||
53 | %{_datadir}/%{module}/plugins/ |
||
54 | 5e385f8b | Francois POIROTTE | %config(noreplace) %{_sysconfdir}/sudoers.d/%{name} |
55 | 5256c457 | Francois POIROTTE | %defattr(644,vigiconf,apache,770) |
56 | %dir %{vigiconf_confdir}/groups/managed/ |
||
57 | %dir %{vigiconf_confdir}/hosts/managed/ |
||
58 | 92b19eed | Francois POIROTTE | %dir %{vigiconf_confdir}/hlservices/managed/ |
59 | 811c1e5a | Francois POIROTTE | %attr(755,root,root) %{_initrddir}/%{name} |
60 | 5256c457 | Francois POIROTTE | |
61 | %changelog |
||
62 | * Mon May 22 2017 François Poirotte <francois.poirotte@c-s.fr> |
||
63 | - Initial packaging |