From a1d5459e30903330f131be6bd59bf12e8c9c2e7d 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..f84d1c5 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,12 @@ if DBUS_UNIX config_DATA += system.conf endif +exampledir = $(docdir)/examples +example_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 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