Skip to content

Add prometheus endpoint related contents #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions packaging/samba-master.spec.j2
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@

%bcond_without gettext

%bcond_without prometheus_endpoint

%global baserelease 1

%global samba_version {{ samba_rpm_version }}
Expand Down Expand Up @@ -207,6 +209,9 @@ BuildRequires: libaio-devel
BuildRequires: libarchive-devel
BuildRequires: libattr-devel
BuildRequires: libcap-devel
%if %{with prometheus_endpoint}
BuildRequires: libevent-devel
%endif
BuildRequires: libicu-devel
BuildRequires: libcmocka-devel
BuildRequires: libtirpc-devel
Expand Down Expand Up @@ -1207,6 +1212,9 @@ export python_LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-z,defs//g')"
%endif
%if %{without gettext}
--without-gettext \
%endif
%if %{with prometheus_endpoint}
--with-prometheus-exporter \
%endif
--with-profiling-data \
--with-systemd \
Expand Down Expand Up @@ -1698,6 +1706,10 @@ fi
%exclude %{_mandir}/man8/vfs_ceph_snapshots.8*
%endif

%if %{without prometheus_endpoint}
%exclude %{_mandir}/man8/smb_prometheus_endpoint.8*
%endif

%attr(775,root,printadmin) %dir /var/lib/samba/drivers

### CLIENT
Expand Down Expand Up @@ -1725,6 +1737,9 @@ fi
%{_bindir}/smbspool
%{_bindir}/smbtar
%{_bindir}/smbtree
%if %{with prometheus_endpoint}
%{_sbindir}/smb_prometheus_endpoint
%endif
%{_bindir}/wspsearch
%dir %{_libexecdir}/samba
%ghost %{_libexecdir}/samba/cups_backend_smb
Expand Down Expand Up @@ -1752,6 +1767,9 @@ fi
%{_mandir}/man8/cifsdd.8.*
%{_mandir}/man8/samba-regedit.8*
%{_mandir}/man8/smbspool.8*
%if %{with prometheus_endpoint}
%{_mandir}/man8/smb_prometheus_endpoint.8*
%endif

%{_bindir}/tdbbackup
%{_bindir}/tdbdump
Expand Down