summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e3a172)
raw | patch | inline | side by side (parent: 2e3a172)
author | Ruben Kerkhof <ruben@tilaa.nl> | |
Sun, 18 Nov 2012 09:14:29 +0000 (10:14 +0100) | ||
committer | Ruben Kerkhof <ruben@tilaa.nl> | |
Sun, 18 Nov 2012 09:14:29 +0000 (10:14 +0100) |
contrib/redhat/collectd.spec | patch | blob | history |
index e07f95f993cb700de8a60715cc2f3798374b090f..152fb395dc1d0f2f7e3aae99a68b7e539b1cd4cc 100644 (file)
mkdir perl-examples
find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \;
-# Modify config for Red Hat based Distros
-sed -i 's:#BaseDir *"/usr/var/lib/collectd":BaseDir "%{_sharedstatedir}/collectd":' %{buildroot}%{_sysconfdir}/collectd.conf
-sed -i 's:#PIDFile *"/usr/var/run/collectd.pid":PIDFile "%{_localstatedir}/run/collectd.pid":' %{buildroot}%{_sysconfdir}/collectd.conf
-sed -i 's:#PluginDir *"/usr/lib/collectd":PluginDir "%{_libdir}/collectd":' %{buildroot}%{_sysconfdir}/collectd.conf
-
# Remove Perl hidden .packlist files.
find %{buildroot} -type f -name .packlist -delete
# Remove Perl temporary file perllocal.pod