summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-09-27 20:37:52 +0300
committerGitHub <noreply@github.com>2018-09-27 20:37:52 +0300
commit73608f86b4c10f72fff991fbf9bfa1a802c2d95c (patch)
tree56001d6001f5e388ff2eea8cd41a35f9e7d1b598 /netdata.spec.in
parenta440a24688f2258bba3ac2e7bbd57c112581893d (diff)
stock configs in /usr/lib/netdata (#4283)
* makefiles install configs in /usr/lib/netdata/conf.d; #4182 * stock health config in /usr/lib/netdata/conf.d/health.d * unit test path concatenation * simplified health file management * use stream.conf from stock config if it does not exist in /etc/netdata * indicate loading of user config in function call * load netdata.conf from stock dir if not found in /etc/netdata * added NETDATA_USER_CONFIG_DIR * provide defaults before loading config * charts.d uses stock files * fping now uses the stock config files * tc-qos-helper.sh now uses stock configs * cgroup-name.sh now uses stock configs too * simplified cgroup-name.sh for user and stock config * alarm-notify.sh uses stock configs too * simplified fping plugin configs loading * simplified tc-qos-helper.sh configs loading * added error handling to charts.d.plugin * apps.plugin used stock configs * generalized recursive double-directory configs loading * statsd uses stock configs * node.d.plugin uses stock configs * compile-time decision of netdata default paths for all files * makeself cleans up old stock config files from user configuration directories * fixed makeself typo * netdata-installer.sh removes stock files from user configuration directories * python.d.plugin user/stock configs update * cleanup stock config files from /etc/netdata, only once * python.d.plugin log loaded files * fix permissions of stock config files and provide an "orig" link for quick access * create help link on stock configs migration for static installations * create user config directories * example statsd synthetic charts now state they are examples * updated configs.signatures * spec file * fixes in spec file * fix typo * install netdata after cleaning up stock configs from /etc/netdata * python.d: add cpuidle stock conf
Diffstat (limited to 'netdata.spec.in')
-rw-r--r--netdata.spec.in24
1 files changed, 16 insertions, 8 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index f948e495ff..379088fa11 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -181,17 +181,18 @@ rm -rf "${RPM_BUILD_ROOT}"
%defattr(-,root,root)
%dir %{_sysconfdir}/%{name}
+%dir %{_libdir}/%{name}
-%config(noreplace) %{_sysconfdir}/%{name}/*.conf
-%config(noreplace) %{_sysconfdir}/%{name}/charts.d/*.conf
-%config(noreplace) %{_sysconfdir}/%{name}/health.d/*.conf
-#%%config(noreplace) %{_sysconfdir}/%{name}/node.d/*.conf
-%config(noreplace) %{_sysconfdir}/%{name}/python.d/*.conf
-%config(noreplace) %{_sysconfdir}/%{name}/statsd.d/*.conf
-%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
+%config %{_libdir}/%{name}/*.conf
+%config %{_libdir}/%{name}/charts.d/*.conf
+%config %{_libdir}/%{name}/health.d/*.conf
+%config %{_libdir}/%{name}/node.d/*.conf
+%config %{_libdir}/%{name}/python.d/*.conf
+%config %{_libdir}/%{name}/statsd.d/*.conf
+%config %{_sysconfdir}/logrotate.d/%{name}
# To be eventually moved to %%_defaultdocdir
-%{_sysconfdir}/%{name}/node.d/*.md
+%{_libdir}/%{name}/node.d/*.md
%{_libexecdir}/%{name}
%{_sbindir}/%{name}
@@ -215,9 +216,16 @@ rm -rf "${RPM_BUILD_ROOT}"
%dir %{_datadir}/%{name}
%dir %{_sysconfdir}/%{name}/health.d
+%dir %{_libdir}/%{name}/health.d
%dir %{_sysconfdir}/%{name}/python.d
+%dir %{_libdir}/%{name}/python.d
%dir %{_sysconfdir}/%{name}/charts.d
+%dir %{_libdir}/%{name}/charts.d
%dir %{_sysconfdir}/%{name}/node.d
+%dir %{_libdir}/%{name}/node.d
+%dir %{_sysconfdir}/%{name}/statsd.d
+%dir %{_libdir}/%{name}/statsd.d
+
%if %{with systemd}
%{_unitdir}/netdata.service