SPECS: cacti.spec - fixed config in /etc/cacti
arekm
arekm at pld-linux.org
Thu Oct 6 12:00:15 CEST 2005
Author: arekm Date: Thu Oct 6 10:00:15 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fixed config in /etc/cacti
---- Files affected:
SPECS:
cacti.spec (1.26 -> 1.27)
---- Diffs:
================================================================
Index: SPECS/cacti.spec
diff -u SPECS/cacti.spec:1.26 SPECS/cacti.spec:1.27
--- SPECS/cacti.spec:1.26 Thu Oct 6 11:49:39 2005
+++ SPECS/cacti.spec Thu Oct 6 12:00:09 2005
@@ -16,6 +16,7 @@
Patch1: http://www.cacti.net/downloads/patches/0.8.6g/graph_properties_zoom.patch
Patch2: http://www.cacti.net/downloads/patches/0.8.6g/script_server_snmp_auth.patch
Patch3: http://www.cacti.net/downloads/patches/0.8.6g/mib_file_loading.patch
+Patch4: %{name}-config.patch
URL: http://www.cacti.net/
BuildRequires: rpm-perlprov
Requires: crondaemon
@@ -61,6 +62,7 @@
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
@@ -72,8 +74,15 @@
cp -aRf * $RPM_BUILD_ROOT%{webadminroot}
-install include/config.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.cfg
-ln -sf %{_sysconfdir}/%{name}/%{name}.cfg $RPM_BUILD_ROOT%{webadminroot}/include/config.php
+cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.cfg
+<?php
+\$database_type = "mysql";
+\$database_default = "cacti";
+\$database_hostname = "localhost";
+\$database_username = "cactiuser";
+\$database_password = "cactiuser";
+?>
+EOF
mv $RPM_BUILD_ROOT%{webadminroot}/log $RPM_BUILD_ROOT/var/log/%{name}
ln -sf /var/log/cacti $RPM_BUILD_ROOT%{webadminroot}/log
@@ -105,6 +114,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.27 2005/10/06 10:00:09 arekm
+- fixed config in /etc/cacti
+
Revision 1.26 2005/10/06 09:49:39 arekm
- moved configs to /etc/cacti
- added /var/log/cacti
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/cacti.spec?r1=1.26&r2=1.27&f=u
More information about the pld-cvs-commit
mailing list