]>
Commit | Line | Data |
---|---|---|
6587a5d5 | 1 | Summary: Cacti is a php frontend for rrdtool |
94614147 JB |
2 | Name: cacti |
3 | Version: 0.6.8a | |
4 | Release: 4 | |
6587a5d5 | 5 | License: GPL |
94614147 JB |
6 | Group: Applications/WWW |
7 | Source0: http://www.raxnet.net/downloads/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 8466cf3dbd3125778a2f4f2be2f73e38 | |
9 | #Patch0: %{name}-%{version}-paths.patch.bz2 | |
6587a5d5 | 10 | URL: http://www.raxnet.net/ |
6587a5d5 | 11 | BuildRequires: perl |
94614147 JB |
12 | Requires: webserver |
13 | Requires: libnet-snmp50 | |
14 | Requires: mysql | |
15 | Requires: net-snmp-utils | |
16 | Requires: net-snmp | |
17 | Requires: php | |
18 | Requires: php-gd | |
19 | Requires: php-mysql | |
20 | Requires: php-snmp | |
21 | Requires: rrdtool | |
6587a5d5 | 22 | BuildArch: noarch |
94614147 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %define webadminroot /home/services/httpd | |
6587a5d5 JB |
26 | |
27 | %description | |
28 | Cacti is a complete frondend to rrdtool, it stores all of the | |
94614147 JB |
29 | nessesary information to create graphs and populate them with data in |
30 | a MySQL database. | |
6587a5d5 | 31 | |
94614147 JB |
32 | The frontend is completely PHP driven. Along with being able to |
33 | maintain Graphs, Data Sources, and Round Robin Archives in a database, | |
34 | cacti handles the data gathering also. There is also SNMP support for | |
35 | those 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 |
43 | for 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 | |
45 | done | |
46 | ||
47 | # fix dir perms | |
48 | find . -type d | xargs chmod 755 | |
49 | ||
50 | # fix file perms | |
51 | find . -type f | xargs chmod 644 | |
52 | ||
53 | %install | |
94614147 | 54 | rm -rf $RPM_BUILD_ROOT |
6587a5d5 | 55 | |
94614147 JB |
56 | install -d $RPM_BUILD_ROOT%{webadminroot}/%{name} |
57 | cp -aRf * $RPM_BUILD_ROOT%{webadminroot}/%{name}/ | |
6587a5d5 JB |
58 | |
59 | %clean | |
94614147 | 60 | rm -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}/* |