From 873ab3e966577c40a83d508dc812a5888713cbce Mon Sep 17 00:00:00 2001 From: Alban Crequy Date: Fri, 26 Sep 2014 11:26:32 +0100 Subject: [PATCH 2/2] config: add examples to show how to enable/disable the Stats interface https://bugs.freedesktop.org/show_bug.cgi?id=80759 --- bus/Makefile.am | 11 ++++++++++- bus/example-session-disable-stats.conf.in | 15 +++++++++++++++ bus/example-system-enable-stats.conf.in | 15 +++++++++++++++ configure.ac | 2 ++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 bus/example-session-disable-stats.conf.in create mode 100644 bus/example-system-enable-stats.conf.in diff --git a/bus/Makefile.am b/bus/Makefile.am index 25029b4..01bb22f 100644 --- a/bus/Makefile.am +++ b/bus/Makefile.am @@ -31,7 +31,10 @@ EFENCE= CONFIG_IN_FILES= \ session.conf.in \ system.conf.in \ - org.freedesktop.dbus-session.plist.in + org.freedesktop.dbus-session.plist.in \ + example-system-enable-stats.conf.in \ + example-session-disable-stats.conf.in \ + $(NULL) config_DATA = session.conf @@ -39,6 +42,11 @@ if DBUS_UNIX config_DATA += system.conf endif +doc_DATA = \ + example-system-enable-stats.conf \ + example-session-disable-stats.conf \ + $(NULL) + if DBUS_ENABLE_LAUNCHD agentdir=$(LAUNCHD_AGENT_DIR) agent_DATA=org.freedesktop.dbus-session.plist @@ -207,6 +215,7 @@ clean-local: install-data-hook: $(mkinstalldirs) $(DESTDIR)$(configdir)/session.d $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/services + $(mkinstalldirs) $(DESTDIR)$(docdir)/examples if DBUS_UNIX $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d diff --git a/bus/example-session-disable-stats.conf.in b/bus/example-session-disable-stats.conf.in new file mode 100644 index 0000000..2863ef0 --- /dev/null +++ b/bus/example-session-disable-stats.conf.in @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/bus/example-system-enable-stats.conf.in b/bus/example-system-enable-stats.conf.in new file mode 100644 index 0000000..a85aa83 --- /dev/null +++ b/bus/example-system-enable-stats.conf.in @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/configure.ac b/configure.ac index 142b59c..cb0bda4 100644 --- a/configure.ac +++ b/configure.ac @@ -1750,6 +1750,8 @@ dbus/versioninfo.rc dbus/dbus-arch-deps.h bus/system.conf bus/session.conf +bus/example-system-enable-stats.conf +bus/example-session-disable-stats.conf bus/messagebus bus/messagebus-config bus/org.freedesktop.dbus-session.plist -- 1.8.5.3