summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-05-06 15:51:12 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-06-10 18:15:27 +0200
commitacf7cee13f07b368b0ccae69776309f7f69cbca1 (patch)
tree06b74d6d31fc3626bc55f4d9d46341fd7a0b478a /contrib
parent94b860e8fc51c659c6ac09d69481b838555fff76 (diff)
downloadsssd-acf7cee13f07b368b0ccae69776309f7f69cbca1.tar.gz
sssd-acf7cee13f07b368b0ccae69776309f7f69cbca1.tar.xz
sssd-acf7cee13f07b368b0ccae69776309f7f69cbca1.zip
BUILD: Enable systemtap during RPM build and CI
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ci/configure.sh1
-rw-r--r--contrib/ci/deps.sh1
-rw-r--r--contrib/sssd.spec.in19
3 files changed, 21 insertions, 0 deletions
diff --git a/contrib/ci/configure.sh b/contrib/ci/configure.sh
index c850eb9ce..8e779cfe6 100644
--- a/contrib/ci/configure.sh
+++ b/contrib/ci/configure.sh
@@ -28,6 +28,7 @@ declare -a CONFIGURE_ARG_LIST=(
"--disable-static"
"--enable-ldb-version-check"
"--with-syslog=journald"
+ "--enable-systemtap"
)
diff --git a/contrib/ci/deps.sh b/contrib/ci/deps.sh
index c9a8a6384..4fc1d2d0b 100644
--- a/contrib/ci/deps.sh
+++ b/contrib/ci/deps.sh
@@ -114,6 +114,7 @@ if [[ "$DISTRO_BRANCH" == -debian-* ]]; then
python-ldap
ldap-utils
slapd
+ systemtap-sdt-dev
)
DEPS_INTGCHECK_SATISFIED=true
fi
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index ad072204c..7b4188ae3 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -63,6 +63,11 @@
%global with_python3_option --without-python3-bindings
%endif
+%global enable_systemtap 1
+%if (0%{?enable_systemtap} == 1)
+ %global enable_systemtap_opt --enable-systemtap
+%endif
+
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 0@PRERELEASE_VERSION@%{?dist}
@@ -160,6 +165,10 @@ BuildRequires: nfs-utils-lib-devel
BuildRequires: samba4-devel
BuildRequires: libsmbclient-devel
+%if (0%{?enable_systemtap} == 1)
+BuildRequires: systemtap-sdt-devel
+%endif
+
%description
Provides a set of daemons to manage access to remote directories and
authentication mechanisms. It provides an NSS and PAM interface toward
@@ -596,6 +605,7 @@ autoreconf -ivf
%{?with_cifs_utils_plugin_option} \
%{?with_python3_option} \
%{?enable_polkit_rules_option} \
+ %{?enable_systemtap_opt} \
%{?experimental}
make %{?_smp_mflags} all
@@ -779,6 +789,15 @@ done
%{_mandir}/man5/sss_rpcidmapd.5*
%{_mandir}/man8/sssd.8*
%{_mandir}/man8/sss_cache.8*
+%if (0%{?enable_systemtap} == 1)
+%dir %{_datadir}/sssd/systemtap
+%{_datadir}/sssd/systemtap/id_perf.stp
+%{_datadir}/sssd/systemtap/nested_group_perf.stp
+%dir %{_datadir}/systemtap
+%dir %{_datadir}/systemtap/tapset
+%{_datadir}/systemtap/tapset/sssd.stp
+%{_datadir}/systemtap/tapset/sssd_functions.stp
+%endif
%if (0%{?install_pcscd_polkit_rule} == 1)
%files polkit-rules