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