Commit f4acfa14 authored by Sebastian Oeste's avatar Sebastian Oeste 🐧
Browse files

fix custom_types db in collectd package

* Add our custom_types.db to collectd package.
* Define paths to custom_types.db and types.db to /usr/share/collectd.
parent dc110ae8
......@@ -10,8 +10,8 @@
TypesDB "CD_INST_PATH/share/collectd/types.db"
TypesDB "CUSTOM_TYPES_DIR/custom_types.db"
TypesDB "/usr/share/collectd/types.db"
TypesDB "/usr/share/collectd/custom_types.db"
Interval 30
AlignRead true
......@@ -14,6 +14,7 @@ Source1: collectd.conf
Source5: custom_types.db
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::Embed)
......@@ -628,6 +629,7 @@ make install DESTDIR="%{buildroot}"
install -Dp -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/collectd.conf
install -Dp -m0644 contrib/systemd.collectd.service %{buildroot}%{_unitdir}/collectd.service
install -Dp -m0644 %{SOURCE5} %{buildroot}%{_datadir}/collectd/custom_types.db
install -d %{buildroot}%{_datadir}/collectd/plugins/
install -Dp -m0644 %{SOURCE2} %{buildroot}%{_datadir}/collectd/plugins/
install -Dp -m0644 %{SOURCE3} %{buildroot}%{_datadir}/collectd/plugins/
......@@ -684,6 +686,7 @@ make check
likwid value:GAUGE:0:U
pair value:GAUGE:0:U, value:GAUGE:0:U
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment