]>
Commit | Line | Data |
---|---|---|
5073890a | 1 | Summary: A backend data gatherer for cacti |
59120e4b | 2 | Summary(pl.UTF-8): Backend gromadzący dane dla cacti |
14afc3fc | 3 | Name: cacti-spine |
9d56b56e | 4 | Version: 0.8.7e |
74f5a752 | 5 | Release: 3 |
5073890a AM |
6 | License: GPL |
7 | Group: Applications | |
14afc3fc | 8 | Source0: http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz |
9d56b56e | 9 | # Source0-md5: 99e5bde07fc31d1ed8aa23c59de00417 |
241be8a3 | 10 | Patch0: %{name}-paths.patch |
74f5a752 ER |
11 | Patch100: http://www.cacti.net/downloads/spine/patches/snmp_v3_fix.patch |
12 | Patch101: http://www.cacti.net/downloads/spine/patches/mysql_client_reconnect.patch | |
13 | Patch102: http://www.cacti.net/downloads/spine/patches/ping_reliability.patch | |
5073890a | 14 | URL: http://www.cacti.net/ |
f2f2d12a | 15 | BuildRequires: autoconf |
84e80d6c | 16 | BuildRequires: automake |
f2f2d12a | 17 | BuildRequires: libtool |
5073890a AM |
18 | BuildRequires: mysql-devel |
19 | BuildRequires: net-snmp-devel | |
20 | BuildRequires: openssl-devel | |
41e369d4 | 21 | BuildRequires: rpmbuild(macros) >= 1.502 |
5073890a | 22 | BuildRequires: zlib-devel |
41e369d4 | 23 | %requires_eq net-snmp-libs |
bfe3cd9b | 24 | Requires: cacti |
5073890a AM |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
241be8a3 ER |
27 | %define _webapps /etc/webapps |
28 | %define _webapp cacti | |
29 | %define _sysconfdir %{_webapps}/%{_webapp} | |
30 | %define _bindir %{_sbindir} | |
31 | ||
5073890a AM |
32 | %description |
33 | A backend data gatherer for cacti. This package represents the future | |
34 | replacement for cacti's cmd.php. It is almost 100% compatible with the | |
35 | legacy cmd.php processor. | |
36 | ||
677c4ebb JR |
37 | %description -l pl.UTF-8 |
38 | Backend gromadzący dane dla cacti. Ten pakiet reprezentuje przyszły | |
0d7a9455 JB |
39 | zamiennik cmd.php z cacti. Jest prawie w 100% kompatybilny ze starym |
40 | procesorem cmd.php. | |
41 | ||
5073890a AM |
42 | %prep |
43 | %setup -q | |
74f5a752 ER |
44 | %patch100 -p1 |
45 | %patch101 -p1 | |
46 | %patch102 -p1 | |
241be8a3 | 47 | %patch0 -p1 |
5073890a AM |
48 | |
49 | %build | |
14afc3fc AM |
50 | %{__libtoolize} |
51 | %{__aclocal} | |
f4b6d64d | 52 | %{__automake} |
14afc3fc | 53 | %{__autoconf} |
f4b6d64d | 54 | chmod +x ./configure |
5073890a | 55 | %configure \ |
74f5a752 | 56 | --with-results-buffer=4096 \ |
5073890a AM |
57 | --with-mysql \ |
58 | --with-snmp=%{_prefix} | |
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
5073890a AM |
63 | %{__make} install \ |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
74f5a752 ER |
66 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
67 | cp -a spine.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
241be8a3 | 68 | mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine} |
0d7245bc | 69 | |
5073890a AM |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
677849c3 | 75 | %doc README |
241be8a3 | 76 | %attr(755,root,root) %{_sbindir}/cacti-poller-spine |
14afc3fc | 77 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf |