]> git.pld-linux.org Git - packages/cacti-spine.git/blob - cacti-spine.spec
- add 3 official patches
[packages/cacti-spine.git] / cacti-spine.spec
1 Summary:        A backend data gatherer for cacti
2 Summary(pl.UTF-8):      Backend gromadzący dane dla cacti
3 Name:           cacti-spine
4 Version:        0.8.7e
5 Release:        3
6 License:        GPL
7 Group:          Applications
8 Source0:        http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
9 # Source0-md5:  99e5bde07fc31d1ed8aa23c59de00417
10 Patch0:         %{name}-paths.patch
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
14 URL:            http://www.cacti.net/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libtool
18 BuildRequires:  mysql-devel
19 BuildRequires:  net-snmp-devel
20 BuildRequires:  openssl-devel
21 BuildRequires:  rpmbuild(macros) >= 1.502
22 BuildRequires:  zlib-devel
23 %requires_eq    net-snmp-libs
24 Requires:       cacti
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _webapps        /etc/webapps
28 %define         _webapp         cacti
29 %define         _sysconfdir     %{_webapps}/%{_webapp}
30 %define         _bindir         %{_sbindir}
31
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
37 %description -l pl.UTF-8
38 Backend gromadzący dane dla cacti. Ten pakiet reprezentuje przyszły
39 zamiennik cmd.php z cacti. Jest prawie w 100% kompatybilny ze starym
40 procesorem cmd.php.
41
42 %prep
43 %setup -q
44 %patch100 -p1
45 %patch101 -p1
46 %patch102 -p1
47 %patch0 -p1
48
49 %build
50 %{__libtoolize}
51 %{__aclocal}
52 %{__automake}
53 %{__autoconf}
54 chmod +x ./configure
55 %configure \
56         --with-results-buffer=4096 \
57         --with-mysql \
58         --with-snmp=%{_prefix}
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 install -d $RPM_BUILD_ROOT%{_sysconfdir}
67 cp -a spine.conf $RPM_BUILD_ROOT%{_sysconfdir}
68 mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc README
76 %attr(755,root,root) %{_sbindir}/cacti-poller-spine
77 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
This page took 0.058843 seconds and 3 git commands to generate.