Logoj0ke.net Open Build Service > Projects > server:monitoring > cacti > Changes
Sign Up | Log In

Changes of Revision 22

[-] Changed cacti.spec
x
 
1
@@ -66,8 +66,13 @@
2
 cp -pr images   $RPM_BUILD_ROOT%{prefix}
3
 cp -pr install  $RPM_BUILD_ROOT%{prefix}
4
 cp -pr resource $RPM_BUILD_ROOT%{prefix}
5
-cp -pr scripts  $RPM_BUILD_ROOT%{_datadir}/%{name}
6
-install -m 644 *.sql $RPM_BUILD_ROOT%{_datadir}/%{name}
7
+cp -pr rra     $RPM_BUILD_ROOT%{prefix}
8
+#cp -pr scripts  $RPM_BUILD_ROOT%{_datadir}/%{name}
9
+install -d -m 755 scripts %{buildroot}%{prefix}/scripts
10
+install -m 755 scripts/* %{buildroot}%{prefix}/scripts
11
+install -d -m 755 cli %{buildroot}%{prefix}/cli
12
+install -m 755 cli/* %{buildroot}%{prefix}/cli
13
+install -m 644 *.sql %{buildroot}%{prefix}
14
 # cron task
15
 install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
16
 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/cacti
17
@@ -95,6 +100,11 @@
18
 %config(noreplace) %{apache2_sysconfdir}/conf.d/cacti.conf
19
 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
20
 
21
+%post
22
+%if 0%{?suse_version}
23
+chown -R wwwrun.www %{prefix}/rra
24
+%endif
25
+
26
 %changelog
27
 * Tue Sep 27 2011 Carsten Schoene <cs@linux-administrator.com> - 0.8.7h-1
28
 - updated to 0.8.7h
29