9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovdist_noinst_DATA = \
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikdbussysconfdir = $(sysconfdir)/dbus-1
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikdbusservicedir = $(datadir)/dbus-1/system-services
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_SOURCES = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_CFLAGS = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_LIBADD = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik $(LIBADD_DL) \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnikgetsockopt_wrapper_la_LDFLAGS = \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik -avoid-version \
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikdist_dbussysconf_DATA = cwrap-dbus-system.conf
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikinstall-data-hook:
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik $(MKDIR_P) $(DESTDIR)$(runstatedir)/dbus
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik $(MKDIR_P) $(DESTDIR)$(sysconfdir)/session.d
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnikcwrap-dbus-system.conf: data/cwrap-dbus-system.conf.in Makefile
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik $(SED) -e "s!@runstatedir[@]!$(runstatedir)!" \
52ae4eeba9c97c0254a2025ec3b5ffe90588b775Lukas Slebodnik -e "s!@dbusservicedir[@]!$(dbusservicedir)!" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov m4 -D "prefix=\`$(prefix)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "sysconfdir=\`$(sysconfdir)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "dbpath=\`$(dbpath)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "pidpath=\`$(pidpath)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "logpath=\`$(logpath)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov -D "mcpath=\`$(mcpath)'" \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek -D "secdbpath=\`$(secdbpath)'" \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek -D "libexecpath=\`$(libexecdir)'" \
db0982c52294ee5ea08ed242d27660783fde29cdJakub Hrozek -D "runstatedir=\`$(runstatedir)'" \
91b0592cdab22915dff27ceae6d8e49c608aea4aJakub Hrozek -D "abs_builddir=\`$(abs_builddir)'" \
53a4219e2f51cd0443931aa931505bf0b4bf5a45Nikolai Kondrashov -D "session_recording_shell=\`$(session_recording_shell)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "py2execdir=\`$(py2execdir)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "py3execdir=\`$(py3execdir)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "python2dir=\`$(python2dir)'" \
a3bed9df5a47bfc84b82341f0f7e693e2b14a67aLukas Slebodnik -D "python3dir=\`$(python3dir)'" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov : "Create directory for emulated root's D-Bus cookies."
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov : "See http://dbus.freedesktop.org/doc/dbus-specification.html#auth-mechanisms"
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov $(MKDIR_P) -m 0700 root/.dbus-keyrings
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov echo "root:x:0:0:root:$(abs_builddir)/root:/bin/bash" > $@
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov echo "root:x:0:" > $@
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai KondrashovCLEANFILES=config.py config.pyc passwd group
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashovintgcheck-installed: config.py passwd group
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov pipepath="$(DESTDIR)$(pipepath)"; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov if test $${#pipepath} -gt 80; then \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov echo "error: Pipe directory path too long," \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov "D-Bus won't be able to open sockets" >&2; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov cd "$(abs_srcdir)"; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov nss_wrapper=$$(pkg-config --libs nss_wrapper); \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov uid_wrapper=$$(pkg-config --libs uid_wrapper); \
82c36227e36de155b13e6eb7cfa3e80a25774157Lukas Slebodnik unset HOME; \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov PATH="$$(dirname -- $(SLAPD)):$$PATH" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov PATH="$(DESTDIR)$(sbindir):$(DESTDIR)$(bindir):$$PATH" \
841bcb5e1f66bb9c41e1884a2ab1dae654def13eLukas Slebodnik PATH="$$PATH:$(abs_builddir):$(abs_srcdir)" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov PYTHONPATH="$(abs_builddir):$(abs_srcdir)" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov LDB_MODULES_PATH="$(DESTDIR)$(ldblibdir)" \
f75ba99fc8dd64e45af2f642d9fb7660860fd28fLukas Slebodnik NON_WRAPPED_UID=$$(id -u) \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik LD_PRELOAD="$(libdir)/getsockopt_wrapper.so:$$nss_wrapper:$$uid_wrapper" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_PASSWD="$(abs_builddir)/passwd" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_GROUP="$(abs_builddir)/group" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_MODULE_SO_PATH="$(DESTDIR)$(nsslibdir)/libnss_sss.so.2" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov NSS_WRAPPER_MODULE_FN_PREFIX="sss" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov UID_WRAPPER=1 \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov UID_WRAPPER_ROOT=1 \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SOCK_DIR="$(DESTDIR)$(runstatedir)/dbus/" \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SESSION_BUS_ADDRESS="unix:path=$$DBUS_SOCK_DIR/fake_socket" \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SYSTEM_BUS_ADDRESS="unix:path=$$DBUS_SOCK_DIR/system_bus_socket" \
e64696e1fab85c42aaeda65ddf49ee1b7e3f07e1Lukas Slebodnik DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$$DBUS_SYSTEM_BUS_ADDRESS" \
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov fakeroot $(PYTHON2) $(PYTEST) -v --tb=native $(INTGCHECK_PYTEST_ARGS) .
9d453f1e8b28983b363b44c49b7cd701a994fd97Nikolai Kondrashov rm -f $(DESTDIR)$(logpath)/*