]> git.pld-linux.org Git - SPECS.git/blob - nagios-nagtrap.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / nagios-nagtrap.spec
1 %define         pkg     nagtrap
2 %define         php_min_version 5.0.0
3 Summary:        NagTrap picks the snmptraps from the database of SNMPTT
4 Name:           nagios-%{pkg}
5 Version:        0.1.3
6 Release:        0.4
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://downloads.sourceforge.net/nagtrap/nagtrap-%{version}.tar.gz
10 # Source0-md5:  430a41a4455fbfe3ec5471eab691386e
11 Source1:        README
12 Patch0:         config.patch
13 URL:            http://www.nagtrap.org/doku.php/en:start
14 Requires:       nagios-cgi
15 Requires:       php-common >= 4:%{php_min_version}
16 Requires:       php-mysql
17 Requires:       php-xml
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _webapps        /etc/webapps
22 %define         _sysconfdir     %{_webapps}/nagios
23 %define         _appdir         %{_datadir}/nagios/%{pkg}
24
25 %description
26 NagTrap is a webinterface written in PHP for Nagios. You can manage
27 and administrate recipient snmptraps from SNMPTT.
28
29 %prep
30 %setup -q -n %{pkg}-%{version}
31 %patch0 -p1
32
33 mv %{pkg}/etc config-sample
34 cp -p %{SOURCE1} .
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
39 cp -a %{pkg}/* /$RPM_BUILD_ROOT%{_appdir}
40 cp -a db /$RPM_BUILD_ROOT%{_appdir}
41 cp -p config-sample/config.ini.php-dist $RPM_BUILD_ROOT%{_sysconfdir}/%{pkg}.php
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc ChangeLog THANKS README
49 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{pkg}.php
50 %{_appdir}
This page took 0.345493 seconds and 3 git commands to generate.