SPECS: cacti.spec - /usr/share/cacti/rra -> /var/lib/cacti/rra for broken i...

Elan Ruusamäe glen at pld-linux.org
Mon Nov 3 12:06:29 CET 2008


On Monday 03 November 2008 10:30:38 grzegorz wrote:
> Author: grzegorz                     Date: Mon Nov  3 08:30:38 2008 GMT
> Module: SPECS                         Tag: HEAD
> ---- Log message:
> - /usr/share/cacti/rra -> /var/lib/cacti/rra for broken installations.
>
> ---- Files affected:
> SPECS:
>    cacti.spec (1.97 -> 1.98)
>
> ---- Diffs:
>
> ================================================================
> Index: SPECS/cacti.spec
> diff -u SPECS/cacti.spec:1.97 SPECS/cacti.spec:1.98
> --- SPECS/cacti.spec:1.97	Thu Oct 30 08:20:00 2008
> +++ SPECS/cacti.spec	Mon Nov  3 09:30:32 2008
> @@ -162,6 +162,10 @@
>  cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
>  cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
>
> +# This is for backward compatibility with broken installations.
> +# Such installations should be repaired by cacti-rrdpath.sql.
> +ln -sf /var/lib/%{name}/rra $RPM_BUILD_ROOT%{webadminroot}/rra
> +
>  %clean
>  rm -rf $RPM_BUILD_ROOT

use %triggerpostun for backward compatibility bleh

-- 
glen


More information about the pld-devel-en mailing list