gentoo/sys-auth/sssd/files/sssd-2.7.4-conditional-python-install.patch

28 lines
625 B
Diff

--- a/src/tools/analyzer/Makefile.am
+++ b/src/tools/analyzer/Makefile.am
@@ -1,11 +1,12 @@
sss_analyze_pythondir = $(libexecdir)/sssd
+pkgpythondir = $(python3dir)/sssd
+modulesdir = $(pkgpythondir)/modules
+if BUILD_PYTHON_BINDINGS
dist_sss_analyze_python_SCRIPTS = \
sss_analyze \
$(NULL)
-pkgpythondir = $(python3dir)/sssd
-
dist_pkgpython_DATA = \
__init__.py \
source_files.py \
@@ -15,8 +16,8 @@ dist_pkgpython_DATA = \
sss_analyze.py \
$(NULL)
-modulesdir = $(pkgpythondir)/modules
dist_modules_DATA = \
modules/__init__.py \
modules/request.py \
$(NULL)
+endif