]> git.pld-linux.org Git - packages/cacti.git/blame - cacti.spec
- adapterized, cleanups
[packages/cacti.git] / cacti.spec
CommitLineData
6587a5d5 1Summary: Cacti is a php frontend for rrdtool
94614147
JB
2Name: cacti
3Version: 0.6.8a
4Release: 4
6587a5d5 5License: GPL
94614147
JB
6Group: Applications/WWW
7Source0: http://www.raxnet.net/downloads/%{name}-%{version}.tar.gz
8# Source0-md5: 8466cf3dbd3125778a2f4f2be2f73e38
9#Patch0: %{name}-%{version}-paths.patch.bz2
6587a5d5 10URL: http://www.raxnet.net/
6587a5d5 11BuildRequires: perl
94614147
JB
12Requires: webserver
13Requires: libnet-snmp50
14Requires: mysql
15Requires: net-snmp-utils
16Requires: net-snmp
17Requires: php
18Requires: php-gd
19Requires: php-mysql
20Requires: php-snmp
21Requires: rrdtool
6587a5d5 22BuildArch: noarch
94614147
JB
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%define webadminroot /home/services/httpd
6587a5d5
JB
26
27%description
28Cacti is a complete frondend to rrdtool, it stores all of the
94614147
JB
29nessesary information to create graphs and populate them with data in
30a MySQL database.
6587a5d5 31
94614147
JB
32The frontend is completely PHP driven. Along with being able to
33maintain Graphs, Data Sources, and Round Robin Archives in a database,
34cacti handles the data gathering also. There is also SNMP support for
35those used to creating traffic graphs with MRTG.
6587a5d5
JB
36
37%prep
6587a5d5 38%setup -q
94614147 39#%patch0 -p1
6587a5d5
JB
40
41%build
6587a5d5
JB
42# clean up CVS stuff
43for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
44 if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
45done
46
47# fix dir perms
48find . -type d | xargs chmod 755
49
50# fix file perms
51find . -type f | xargs chmod 644
52
53%install
94614147 54rm -rf $RPM_BUILD_ROOT
6587a5d5 55
94614147
JB
56install -d $RPM_BUILD_ROOT%{webadminroot}/%{name}
57cp -aRf * $RPM_BUILD_ROOT%{webadminroot}/%{name}/
6587a5d5
JB
58
59%clean
94614147 60rm -rf $RPM_BUILD_ROOT
6587a5d5
JB
61
62%files
94614147 63%defattr(644,root,root,755)
6587a5d5 64%doc docs/CHANGELOG docs/CONTRIB docs/README
94614147
JB
65%dir %{webadminroot}/%{name}
66%config(noreplace) %verify(not size mtime md5) %attr(644,http,http) %{webadminroot}/%{name}/log/rrd.log
67%config(noreplace) %verify(not size mtime md5) %{webadminroot}/%{name}/rra/.placeholder
68%config(noreplace) %verify(not size mtime md5) %attr(644,http,http) %{webadminroot}/%{name}/include/config.php
6587a5d5 69%{webadminroot}/%{name}/*
This page took 0.067812 seconds and 4 git commands to generate.