Revision 5256c457
Améliorations dans le packaging
- Ajout d'un (faux) script d'init chargé de redémarrer VigiRRD.
- Ajout du fichier sudoers nécessaire pour l'exécution du script
mentionné ci-dessus.
- Ajout de "vigiconf" dans le groupe "apache" lors de l'installation
(nécessaire pour permettre à vigilo-glpi de lancer vigiconf).
- Création de l'arborescence manipulée par vigilo-glpi dans le dossier
de configuration de VigiConf
- Ajout d'un README pour l'installation manuelle.
Change-Id: I2f00443ed95a8fcf3e8bf2ac358e5e5df066188b
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2389
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
pkg/glpi.redhat.spec | ||
---|---|---|
1 | 1 |
%define module @SHORT_NAME@ |
2 |
%define vigiconf_confdir %{_sysconfdir}/vigilo/vigiconf/conf.d/ |
|
2 | 3 |
|
3 | 4 |
Name: vigilo-%{module} |
4 | 5 |
Summary: Vigilo integration plugin for GLPI |
... | ... | |
14 | 15 |
Requires: glpi |
15 | 16 |
Requires: vigilo-vigiconf |
16 | 17 |
|
18 |
Requires(pre): shadow-utils |
|
19 |
Requires(pre): httpd |
|
20 |
Requires(pre): vigilo-vigiconf |
|
21 |
|
|
17 | 22 |
%description |
18 | 23 |
This package provides a plugin that makes it possible to configure Vigilo |
19 | 24 |
and deploy new configuration files from GLPI's GUI. |
... | ... | |
30 | 35 |
DESTDIR=$RPM_BUILD_ROOT \ |
31 | 36 |
SYSCONFDIR=%{_sysconfdir} \ |
32 | 37 |
DATADIR=%{_datadir} \ |
38 |
INITDIR=%{_initrddir} |
|
33 | 39 |
|
40 |
%pre |
|
41 |
usermod -a -G apache vigiconf || : |
|
42 |
exit 0 |
|
34 | 43 |
|
35 | 44 |
%clean |
36 | 45 |
rm -rf $RPM_BUILD_ROOT |
... | ... | |
39 | 48 |
%defattr(644,root,root,755) |
40 | 49 |
%doc COPYING.txt |
41 | 50 |
%{_datadir}/%{module}/plugins/ |
51 |
%{_initrddir}/%{name} |
|
52 |
%{_sysconfdir}/sudoers.d/%{name} |
|
53 |
%defattr(644,vigiconf,apache,770) |
|
54 |
%dir %{vigiconf_confdir}/groups/managed/ |
|
55 |
%dir %{vigiconf_confdir}/hosts/managed/ |
|
56 |
|
|
57 |
%changelog |
|
58 |
* Mon May 22 2017 François Poirotte <francois.poirotte@c-s.fr> |
|
59 |
- Initial packaging |
Also available in: Unified diff