]> git.pld-linux.org Git - packages/cacti-spine.git/blobdiff - cacti-spine.spec
- release 2
[packages/cacti-spine.git] / cacti-spine.spec
index 474e9abe89e90c13dba84a8bd831549b882c7781..8cd285207eecf06b451f870fda4187368a5720f0 100644 (file)
@@ -1,21 +1,31 @@
 Summary:       A backend data gatherer for cacti
-Summary(pl.UTF-8):   Backend gromadzący dane dla cacti
-Name:          cacti-cactid
-Version:       0.8.6i
-Release:       0.1
+Summary(pl.UTF-8):     Backend gromadzący dane dla cacti
+Name:          cacti-spine
+Version:       0.8.7e
+Release:       2
 License:       GPL
 Group:         Applications
-Source0:       http://www.cacti.net/downloads/cactid/%{name}-%{version}.tar.gz
-# Source0-md5: 303c7533656c075cb695a1a8c54537b6
+Source0:       http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
+# Source0-md5: 99e5bde07fc31d1ed8aa23c59de00417
+Patch0:                %{name}-paths.patch
 URL:           http://www.cacti.net/
+BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: libtool
 BuildRequires: mysql-devel
 BuildRequires: net-snmp-devel
 BuildRequires: openssl-devel
+BuildRequires: rpmbuild(macros) >= 1.502
 BuildRequires: zlib-devel
+%requires_eq   net-snmp-libs
 Requires:      cacti
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _webapps        /etc/webapps
+%define                _webapp         cacti
+%define                _sysconfdir     %{_webapps}/%{_webapp}
+%define                _bindir         %{_sbindir}
+
 %description
 A backend data gatherer for cacti. This package represents the future
 replacement for cacti's cmd.php. It is almost 100% compatible with the
@@ -28,9 +38,14 @@ procesorem cmd.php.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-install /usr/share/automake/config.* config
+%{__libtoolize}
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+chmod +x ./configure
 %configure \
        --with-mysql \
        --with-snmp=%{_prefix}
@@ -43,7 +58,8 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install cactid.conf $RPM_BUILD_ROOT%{_sysconfdir}
+install spine.conf $RPM_BUILD_ROOT%{_sysconfdir}
+mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -51,5 +67,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_bindir}/*
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cactid.conf
+%attr(755,root,root) %{_sbindir}/cacti-poller-spine
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
This page took 0.033444 seconds and 4 git commands to generate.