]>
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 |
a34a680d | 5 | Release: 2 |
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 |
5073890a | 11 | URL: http://www.cacti.net/ |
f2f2d12a | 12 | BuildRequires: autoconf |
84e80d6c | 13 | BuildRequires: automake |
f2f2d12a | 14 | BuildRequires: libtool |
5073890a AM |
15 | BuildRequires: mysql-devel |
16 | BuildRequires: net-snmp-devel | |
17 | BuildRequires: openssl-devel | |
41e369d4 | 18 | BuildRequires: rpmbuild(macros) >= 1.502 |
5073890a | 19 | BuildRequires: zlib-devel |
41e369d4 | 20 | %requires_eq net-snmp-libs |
bfe3cd9b | 21 | Requires: cacti |
5073890a AM |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
241be8a3 ER |
24 | %define _webapps /etc/webapps |
25 | %define _webapp cacti | |
26 | %define _sysconfdir %{_webapps}/%{_webapp} | |
27 | %define _bindir %{_sbindir} | |
28 | ||
5073890a AM |
29 | %description |
30 | A backend data gatherer for cacti. This package represents the future | |
31 | replacement for cacti's cmd.php. It is almost 100% compatible with the | |
32 | legacy cmd.php processor. | |
33 | ||
677c4ebb JR |
34 | %description -l pl.UTF-8 |
35 | Backend gromadzący dane dla cacti. Ten pakiet reprezentuje przyszły | |
0d7a9455 JB |
36 | zamiennik cmd.php z cacti. Jest prawie w 100% kompatybilny ze starym |
37 | procesorem cmd.php. | |
38 | ||
5073890a AM |
39 | %prep |
40 | %setup -q | |
241be8a3 | 41 | %patch0 -p1 |
5073890a AM |
42 | |
43 | %build | |
14afc3fc AM |
44 | %{__libtoolize} |
45 | %{__aclocal} | |
f4b6d64d | 46 | %{__automake} |
14afc3fc | 47 | %{__autoconf} |
f4b6d64d | 48 | chmod +x ./configure |
5073890a AM |
49 | %configure \ |
50 | --with-mysql \ | |
51 | --with-snmp=%{_prefix} | |
52 | %{__make} | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
da2242ae | 56 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
5073890a AM |
57 | |
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
14afc3fc | 61 | install spine.conf $RPM_BUILD_ROOT%{_sysconfdir} |
241be8a3 | 62 | mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine} |
0d7245bc | 63 | |
5073890a AM |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
677849c3 | 69 | %doc README |
241be8a3 | 70 | %attr(755,root,root) %{_sbindir}/cacti-poller-spine |
14afc3fc | 71 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf |