Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

glpi / pkg / glpi.redhat.spec @ 6ef95d06

History | View | Annotate | Download (1.57 KB)

1
%define module  @SHORT_NAME@
2
%define vigiconf_confdir %{_sysconfdir}/vigilo/vigiconf/conf.d/
3

    
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
URL:        http://www.vigilo-nms.com
10
Group:      Applications/System
11
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-build
12
License:    GPLv2
13
Buildarch:  noarch
14

    
15
Requires:   glpi >= 9.1.1
16
Requires:   vigilo-vigiconf
17

    
18
Requires(pre): shadow-utils
19
Requires(pre): httpd
20
Requires(pre): vigilo-vigiconf
21

    
22
%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
This application is part of the Vigilo Project <http://vigilo-nms.com>
26

    
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
    INITDIR=%{_initrddir}
39

    
40
%pre
41
# On autorise l'accès aux fichiers de configuration
42
# de Vigilo (VigiConf) dans les 2 sens.
43
usermod -a -G apache vigiconf || :
44
usermod -a -G vigiconf apache || :
45
exit 0
46

    
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
%config(noreplace) %{_sysconfdir}/sudoers.d/%{name}
55
%defattr(644,vigiconf,apache,770)
56
%dir %{vigiconf_confdir}/groups/managed/
57
%dir %{vigiconf_confdir}/hosts/managed/
58
%dir %{vigiconf_confdir}/hlservices/managed/
59
%attr(755,root,root) %{_initrddir}/%{name}
60

    
61
%changelog
62
* Mon May 22 2017 François Poirotte <francois.poirotte@c-s.fr>
63
- Initial packaging