Skip to content

Commit d98aed1

Browse files
committed
Add prometheus endpoint related contents
ref: https://gitlab.com/samba-team/samba/-/merge_requests/3916
1 parent 39a6fea commit d98aed1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packaging/samba-master.spec.j2

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373

7474
%bcond_without gettext
7575

76+
%bcond_without prometheus_endpoint
77+
7678
%global baserelease 1
7779

7880
%global samba_version {{ samba_rpm_version }}
@@ -207,6 +209,9 @@ BuildRequires: libaio-devel
207209
BuildRequires: libarchive-devel
208210
BuildRequires: libattr-devel
209211
BuildRequires: libcap-devel
212+
%if %{with prometheus_endpoint}
213+
BuildRequires: libevent-devel
214+
%endif
210215
BuildRequires: libicu-devel
211216
BuildRequires: libcmocka-devel
212217
BuildRequires: libtirpc-devel
@@ -1207,6 +1212,9 @@ export python_LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-z,defs//g')"
12071212
%endif
12081213
%if %{without gettext}
12091214
--without-gettext \
1215+
%endif
1216+
%if %{with prometheus_endpoint}
1217+
--with-prometheus-exporter \
12101218
%endif
12111219
--with-profiling-data \
12121220
--with-systemd \
@@ -1698,6 +1706,10 @@ fi
16981706
%exclude %{_mandir}/man8/vfs_ceph_snapshots.8*
16991707
%endif
17001708

1709+
%if %{without prometheus_endpoint}
1710+
%exclude %{_mandir}/man8/smb_prometheus_endpoint.8*
1711+
%endif
1712+
17011713
%attr(775,root,printadmin) %dir /var/lib/samba/drivers
17021714

17031715
### CLIENT
@@ -1725,6 +1737,9 @@ fi
17251737
%{_bindir}/smbspool
17261738
%{_bindir}/smbtar
17271739
%{_bindir}/smbtree
1740+
%if %{with prometheus_endpoint}
1741+
%{_sbindir}/smb_prometheus_endpoint
1742+
%endif
17281743
%{_bindir}/wspsearch
17291744
%dir %{_libexecdir}/samba
17301745
%ghost %{_libexecdir}/samba/cups_backend_smb
@@ -1752,6 +1767,9 @@ fi
17521767
%{_mandir}/man8/cifsdd.8.*
17531768
%{_mandir}/man8/samba-regedit.8*
17541769
%{_mandir}/man8/smbspool.8*
1770+
%if %{with prometheus_endpoint}
1771+
%{_mandir}/man8/smb_prometheus_endpoint.8*
1772+
%endif
17551773

17561774
%{_bindir}/tdbbackup
17571775
%{_bindir}/tdbdump

0 commit comments

Comments
 (0)