]>
Commit | Line | Data |
---|---|---|
a16c76ac ER |
1 | # TODO |
2 | # - -lcap link fail: | |
3 | #spine.o: In function `drop_root': | |
4 | #/home/users/glen/rpm/packages/BUILD.x86_64-linux/cacti-spine-0.8.8f/spine.c:133: undefined reference to `cap_from_text' | |
5 | ||
bd350f0d ER |
6 | Summary: A backend data gatherer for Cacti |
7 | Summary(pl.UTF-8): Backend gromadzący dane dla Cacti | |
14afc3fc | 8 | Name: cacti-spine |
16b5ae26 | 9 | Version: 0.8.8f |
a16c76ac | 10 | Release: 0.1 |
5073890a | 11 | License: GPL |
8039649e | 12 | Group: Daemons |
14afc3fc | 13 | Source0: http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz |
16b5ae26 | 14 | # Source0-md5: 4e026eedeb929d17e3b45ad43c81d4d6 |
241be8a3 | 15 | Patch0: %{name}-paths.patch |
83b2035c | 16 | Patch1: x32.patch |
e3fdb883 | 17 | # Official patches http://www.cacti.net/spine_download_patches.php |
5073890a | 18 | URL: http://www.cacti.net/ |
f2f2d12a | 19 | BuildRequires: autoconf |
84e80d6c | 20 | BuildRequires: automake |
7e973338 | 21 | BuildRequires: libcap-devel |
f2f2d12a | 22 | BuildRequires: libtool |
5073890a AM |
23 | BuildRequires: mysql-devel |
24 | BuildRequires: net-snmp-devel | |
25 | BuildRequires: openssl-devel | |
41e369d4 | 26 | BuildRequires: rpmbuild(macros) >= 1.502 |
5073890a | 27 | BuildRequires: zlib-devel |
41e369d4 | 28 | %requires_eq net-snmp-libs |
bfe3cd9b | 29 | Requires: cacti |
bd350f0d | 30 | Obsoletes: cacti-cactid |
5073890a AM |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
241be8a3 ER |
33 | %define _webapps /etc/webapps |
34 | %define _webapp cacti | |
35 | %define _sysconfdir %{_webapps}/%{_webapp} | |
36 | %define _bindir %{_sbindir} | |
37 | ||
5073890a | 38 | %description |
bd350f0d ER |
39 | A backend data gatherer for Cacti. This package represents the future |
40 | replacement for Cacti's cmd.php. It is almost 100% compatible with the | |
5073890a AM |
41 | legacy cmd.php processor. |
42 | ||
677c4ebb | 43 | %description -l pl.UTF-8 |
bd350f0d ER |
44 | Backend gromadzący dane dla Cacti. Ten pakiet reprezentuje przyszły |
45 | zamiennik cmd.php z Cacti. Jest prawie w 100% kompatybilny ze starym | |
0d7a9455 JB |
46 | procesorem cmd.php. |
47 | ||
5073890a AM |
48 | %prep |
49 | %setup -q | |
241be8a3 | 50 | %patch0 -p1 |
83b2035c JR |
51 | %ifarch x32 |
52 | %patch1 -p1 | |
53 | %endif | |
5073890a AM |
54 | |
55 | %build | |
14afc3fc AM |
56 | %{__libtoolize} |
57 | %{__aclocal} | |
f4b6d64d | 58 | %{__automake} |
14afc3fc | 59 | %{__autoconf} |
f4b6d64d | 60 | chmod +x ./configure |
5073890a | 61 | %configure \ |
74f5a752 | 62 | --with-results-buffer=4096 \ |
5073890a | 63 | --with-mysql \ |
7e973338 | 64 | --enable-lcap \ |
5073890a AM |
65 | --with-snmp=%{_prefix} |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
5073890a AM |
70 | %{__make} install \ |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
241be8a3 | 73 | mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine} |
632d1d1e | 74 | mv $RPM_BUILD_ROOT%{_sysconfdir}/spine.conf{.dist,} |
0d7245bc | 75 | |
5073890a AM |
76 | %clean |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
677849c3 | 81 | %doc README |
14afc3fc | 82 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf |
632d1d1e | 83 | %attr(755,root,root) %{_sbindir}/cacti-poller-spine |