From deb7412d6f4de155bc6843f51c792b7501d2ff97 Mon Sep 17 00:00:00 2001 From: Justin Caratzas Date: Tue, 5 Jul 2022 18:12:36 -0400 Subject: [PATCH] ceph.spec.in: review changes for mibs package Signed-off-by: Justin Caratzas --- ceph.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 6b132ec16897d..b0231b4c65cea 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1247,7 +1247,9 @@ This package provides Ceph default alerts for Prometheus. %package mib Summary: MIB for SNMP alerts BuildArch: noarch +%if 0%{?suse_version} Group: System/Monitoring +%endif %description mib This package provides a Ceph MIB for SNMP traps. @@ -1491,7 +1493,7 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rbd-mirror install -m 644 -D monitoring/ceph-mixin/prometheus_alerts.yml %{buildroot}/etc/prometheus/ceph/ceph_default_alerts.yml # SNMP MIB -install -m 644 -D -p monitoring/snmp/CEPH-MIB.txt %{buildroot}/usr/share/snmp/mib +install -m 644 -D -p monitoring/snmp/CEPH-MIB.txt %{buildroot}/${_datadir}/snmp/mibs %if 0%{?suse_version} # create __pycache__ directories and their contents @@ -2574,6 +2576,6 @@ exit 0 %files mib %attr(0755,root,root) %dir %{_datadir}/snmp -%attr(0655,-,-,) %{_datadir}/snmp/mib +%dir %{_datadir}/snmp/mibs %changelog -- 2.39.5