|
|
27390d |
From 3aa2a3446370dfade43f7b0e66769676edb3ef11 Mon Sep 17 00:00:00 2001
|
|
|
27390d |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
27390d |
Date: Thu, 16 Jan 2014 16:03:19 +0100
|
|
|
27390d |
Subject: [LIBREPORT PATCH 07/11] define DBus config interfaces for all plugins
|
|
|
27390d |
|
|
|
27390d |
Closes #228
|
|
|
27390d |
Related to abrt/abrt#751
|
|
|
27390d |
Related to rhbz#1055610
|
|
|
27390d |
|
|
|
27390d |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
27390d |
---
|
|
|
27390d |
configure.ac | 10 ++++++++++
|
|
|
27390d |
doc/Makefile.am | 2 ++
|
|
|
27390d |
doc/plugins-dbus/Makefile.am | 13 +++++++++++++
|
|
|
27390d |
.../com.redhat.problems.configuration.bugzilla.xml.in | 17 +++++++++++++++++
|
|
|
27390d |
.../com.redhat.problems.configuration.mailx.xml.in | 14 ++++++++++++++
|
|
|
27390d |
.../com.redhat.problems.configuration.rhtsupport.xml.in | 16 ++++++++++++++++
|
|
|
27390d |
.../com.redhat.problems.configuration.ureport.xml.in | 13 +++++++++++++
|
|
|
27390d |
src/plugins/Makefile.am | 12 ++++++++----
|
|
|
27390d |
8 files changed, 93 insertions(+), 4 deletions(-)
|
|
|
27390d |
create mode 100644 doc/plugins-dbus/Makefile.am
|
|
|
27390d |
create mode 100644 doc/plugins-dbus/com.redhat.problems.configuration.bugzilla.xml.in
|
|
|
27390d |
create mode 100644 doc/plugins-dbus/com.redhat.problems.configuration.mailx.xml.in
|
|
|
27390d |
create mode 100644 doc/plugins-dbus/com.redhat.problems.configuration.rhtsupport.xml.in
|
|
|
27390d |
create mode 100644 doc/plugins-dbus/com.redhat.problems.configuration.ureport.xml.in
|
|
|
27390d |
|
|
|
27390d |
diff --git a/configure.ac b/configure.ac
|
|
|
27390d |
index c372c7f..1c9c7ce 100644
|
|
|
27390d |
--- a/configure.ac
|
|
|
27390d |
+++ b/configure.ac
|
|
|
27390d |
@@ -211,6 +211,7 @@ CONF_DIR='${sysconfdir}/${PACKAGE_NAME}'
|
|
|
27390d |
VAR_RUN='${localstatedir}/run'
|
|
|
27390d |
PLUGINS_CONF_DIR='${sysconfdir}/${PACKAGE_NAME}/plugins'
|
|
|
27390d |
REPORT_PLUGINS_CONF_DIR='${sysconfdir}/libreport/plugins'
|
|
|
27390d |
+DEFAULT_REPORT_PLUGINS_CONF_DIR='${datadir}/${PACKAGE_NAME}/conf.d/plugins'
|
|
|
27390d |
EVENTS_DIR='${pkgdatadir}/events'
|
|
|
27390d |
EVENTS_DEFINITION_DIR='${sysconfdir}/${PACKAGE_NAME}/events.d'
|
|
|
27390d |
EVENTS_CONF_DIR='${sysconfdir}/${PACKAGE_NAME}/events'
|
|
|
27390d |
@@ -258,6 +259,13 @@ AC_ARG_ENABLE([userownsdumpdir],
|
|
|
27390d |
[Configure abrt to be owner of dump directories (default: user owns dump dir)])],
|
|
|
27390d |
[DUMP_DIR_OWNED_BY_USER=0])
|
|
|
27390d |
|
|
|
27390d |
+
|
|
|
27390d |
+AC_ARG_WITH([dbusinterfacedir],
|
|
|
27390d |
+ AS_HELP_STRING([--with-dbusinterfacedir=DIR], [Directory for dbus interface files]),
|
|
|
27390d |
+ [], [with_dbusinterfacedir=${datadir}/dbus-1/interfaces])
|
|
|
27390d |
+AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
|
|
|
27390d |
+
|
|
|
27390d |
+
|
|
|
27390d |
AC_ARG_ENABLE(doxygen-docs,
|
|
|
27390d |
AS_HELP_STRING([--enable-doxygen-docs],
|
|
|
27390d |
[build DOXYGEN documentation (requires Doxygen)]),
|
|
|
27390d |
@@ -292,6 +300,7 @@ AC_SUBST(CONF_DIR)
|
|
|
27390d |
AC_SUBST(VAR_RUN)
|
|
|
27390d |
AC_SUBST(PLUGINS_CONF_DIR)
|
|
|
27390d |
AC_SUBST(REPORT_PLUGINS_CONF_DIR)
|
|
|
27390d |
+AC_SUBST(DEFAULT_REPORT_PLUGINS_CONF_DIR)
|
|
|
27390d |
AC_SUBST(EVENTS_DEFINITION_DIR)
|
|
|
27390d |
AC_SUBST(EVENTS_CONF_DIR)
|
|
|
27390d |
AC_SUBST(EVENTS_DIR)
|
|
|
27390d |
@@ -331,6 +340,7 @@ AC_CONFIG_FILES([
|
|
|
27390d |
src/client-python/Makefile
|
|
|
27390d |
po/Makefile.in
|
|
|
27390d |
doc/Makefile
|
|
|
27390d |
+ doc/plugins-dbus/Makefile
|
|
|
27390d |
src/workflows/Makefile
|
|
|
27390d |
])
|
|
|
27390d |
|
|
|
27390d |
diff --git a/doc/Makefile.am b/doc/Makefile.am
|
|
|
27390d |
index 96964f0..7eb3065 100644
|
|
|
27390d |
--- a/doc/Makefile.am
|
|
|
27390d |
+++ b/doc/Makefile.am
|
|
|
27390d |
@@ -1,3 +1,5 @@
|
|
|
27390d |
+SUBDIRS = plugins-dbus
|
|
|
27390d |
+
|
|
|
27390d |
# silent rules for ASCIIDOC and XMLTO
|
|
|
27390d |
ASCIIDOC_SILENT = $(ASCIIDOC_SILENT_$(V))
|
|
|
27390d |
ASCIIDOC_SILENT_ = $(ASCIIDOC_SILENT_$(AM_DEFAULT_VERBOSITY))
|
|
|
27390d |
diff --git a/doc/plugins-dbus/Makefile.am b/doc/plugins-dbus/Makefile.am
|
|
|
27390d |
new file mode 100644
|
|
|
27390d |
index 0000000..5624e81
|
|
|
27390d |
--- /dev/null
|
|
|
27390d |
+++ b/doc/plugins-dbus/Makefile.am
|
|
|
27390d |
@@ -0,0 +1,13 @@
|
|
|
27390d |
+INTERFACES_DIST_FILES=$(wildcard *.xml.in)
|
|
|
27390d |
+
|
|
|
27390d |
+%.xml: %.xml.in
|
|
|
27390d |
+ cp $< $@
|
|
|
27390d |
+
|
|
|
27390d |
+dbusplugininterfacesdir = ${dbusinterfacedir}
|
|
|
27390d |
+dist_dbusplugininterfaces_DATA = \
|
|
|
27390d |
+ com.redhat.problems.configuration.bugzilla.xml \
|
|
|
27390d |
+ com.redhat.problems.configuration.mailx.xml \
|
|
|
27390d |
+ com.redhat.problems.configuration.rhtsupport.xml \
|
|
|
27390d |
+ com.redhat.problems.configuration.ureport.xml
|
|
|
27390d |
+
|
|
|
27390d |
+EXTRA_DIST = ${INTERFACES_DIST_FILES}
|
|
|
27390d |
diff --git a/doc/plugins-dbus/com.redhat.problems.configuration.bugzilla.xml.in b/doc/plugins-dbus/com.redhat.problems.configuration.bugzilla.xml.in
|
|
|
27390d |
new file mode 100644
|
|
|
27390d |
index 0000000..e9302b7
|
|
|
27390d |
--- /dev/null
|
|
|
27390d |
+++ b/doc/plugins-dbus/com.redhat.problems.configuration.bugzilla.xml.in
|
|
|
27390d |
@@ -0,0 +1,17 @@
|
|
|
27390d |
+
|
|
|
27390d |
+ "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
|
|
27390d |
+
|
|
|
27390d |
+<node name="/com/redhat/problems/configuration/bugzilla">
|
|
|
27390d |
+ <annotation name="com.redhat.problems.ConfFile" value="/etc/libreport/plugins/bugzilla.conf" />
|
|
|
27390d |
+ <annotation name="com.redhat.problems.DefaultConfFile" value="/usr/share/libreport/conf.d/plugins/bugzilla.conf" />
|
|
|
27390d |
+
|
|
|
27390d |
+ <interface name="com.redhat.problems.configuration.bugzilla">
|
|
|
27390d |
+ <property name="BugzillaURL" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="Login" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="Password" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="SSLVerify" type="b" access="readwrite" />
|
|
|
27390d |
+ <property name="DontMatchComponents" type="as" access="readwrite" />
|
|
|
27390d |
+ <property name="CreatePrivate" type="b" access="readwrite" />
|
|
|
27390d |
+ <property name="PrivateGroup" type="as" access="readwrite" />
|
|
|
27390d |
+ </interface>
|
|
|
27390d |
+</node>
|
|
|
27390d |
diff --git a/doc/plugins-dbus/com.redhat.problems.configuration.mailx.xml.in b/doc/plugins-dbus/com.redhat.problems.configuration.mailx.xml.in
|
|
|
27390d |
new file mode 100644
|
|
|
27390d |
index 0000000..80fd95f
|
|
|
27390d |
--- /dev/null
|
|
|
27390d |
+++ b/doc/plugins-dbus/com.redhat.problems.configuration.mailx.xml.in
|
|
|
27390d |
@@ -0,0 +1,14 @@
|
|
|
27390d |
+
|
|
|
27390d |
+ "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
|
|
27390d |
+
|
|
|
27390d |
+<node name="/com/redhat/problems/configuration/mailx">
|
|
|
27390d |
+ <annotation name="com.redhat.problems.ConfFile" value="/etc/libreport/plugins/mailx.conf" />
|
|
|
27390d |
+ <annotation name="com.redhat.problems.DefaultConfFile" value="/usr/share/libreport/conf.d/plugins/mailx.conf" />
|
|
|
27390d |
+
|
|
|
27390d |
+ <interface name="com.redhat.problems.configuration.mailx">
|
|
|
27390d |
+ <property name="Subject" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="EmailFrom" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="EmailTo" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="SendBinaryData" type="b" access="readwrite" />
|
|
|
27390d |
+ </interface>
|
|
|
27390d |
+</node>
|
|
|
27390d |
diff --git a/doc/plugins-dbus/com.redhat.problems.configuration.rhtsupport.xml.in b/doc/plugins-dbus/com.redhat.problems.configuration.rhtsupport.xml.in
|
|
|
27390d |
new file mode 100644
|
|
|
27390d |
index 0000000..58d8084
|
|
|
27390d |
--- /dev/null
|
|
|
27390d |
+++ b/doc/plugins-dbus/com.redhat.problems.configuration.rhtsupport.xml.in
|
|
|
27390d |
@@ -0,0 +1,16 @@
|
|
|
27390d |
+
|
|
|
27390d |
+ "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
|
|
27390d |
+
|
|
|
27390d |
+<node name="/com/redhat/problems/configuration/rhtsupport">
|
|
|
27390d |
+ <annotation name="com.redhat.problems.ConfFile" value="/etc/libreport/plugins/rhtsupport.conf" />
|
|
|
27390d |
+ <annotation name="com.redhat.problems.DefaultConfFile" value="/usr/share/libreport/conf.d/plugins/rhtsupport.conf" />
|
|
|
27390d |
+
|
|
|
27390d |
+ <interface name="com.redhat.problems.configuration.rhtsupport">
|
|
|
27390d |
+ <property name="URL" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="Login" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="Password" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="BigFileURL" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="BigSizeMB" type="i" access="readwrite" />
|
|
|
27390d |
+ <property name="SSLVerify" type="b" access="readwrite" />
|
|
|
27390d |
+ </interface>
|
|
|
27390d |
+</node>
|
|
|
27390d |
diff --git a/doc/plugins-dbus/com.redhat.problems.configuration.ureport.xml.in b/doc/plugins-dbus/com.redhat.problems.configuration.ureport.xml.in
|
|
|
27390d |
new file mode 100644
|
|
|
27390d |
index 0000000..58498c7
|
|
|
27390d |
--- /dev/null
|
|
|
27390d |
+++ b/doc/plugins-dbus/com.redhat.problems.configuration.ureport.xml.in
|
|
|
27390d |
@@ -0,0 +1,13 @@
|
|
|
27390d |
+
|
|
|
27390d |
+ "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
|
|
27390d |
+
|
|
|
27390d |
+<node name="/com/redhat/problems/configuration/ureport">
|
|
|
27390d |
+ <annotation name="com.redhat.problems.ConfFile" value="/etc/libreport/plugins/ureport.conf" />
|
|
|
27390d |
+ <annotation name="com.redhat.problems.DefaultConfFile" value="/usr/share/libreport/conf.d/plugins/ureport.conf" />
|
|
|
27390d |
+
|
|
|
27390d |
+ <interface name="com.redhat.problems.configuration.ureport">
|
|
|
27390d |
+ <property name="URL" type="s" access="readwrite" />
|
|
|
27390d |
+ <property name="SSLVerify" type="b" access="readwrite" />
|
|
|
27390d |
+
|
|
|
27390d |
+ </interface>
|
|
|
27390d |
+</node>
|
|
|
27390d |
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
|
|
|
27390d |
index 21d237e..7ec5219 100644
|
|
|
27390d |
--- a/src/plugins/Makefile.am
|
|
|
27390d |
+++ b/src/plugins/Makefile.am
|
|
|
27390d |
@@ -23,22 +23,26 @@ pluginsconfdir = $(PLUGINS_CONF_DIR)
|
|
|
27390d |
reportpluginsconfdir = $(REPORT_PLUGINS_CONF_DIR)
|
|
|
27390d |
|
|
|
27390d |
reporters_plugin_conf =
|
|
|
27390d |
+reporters_plugin_format_conf =
|
|
|
27390d |
if BUILD_BUGZILLA
|
|
|
27390d |
-reporters_plugin_conf += bugzilla.conf \
|
|
|
27390d |
- bugzilla_format.conf \
|
|
|
27390d |
+reporters_plugin_conf += bugzilla.conf
|
|
|
27390d |
+reporters_plugin_format_conf += bugzilla_format.conf \
|
|
|
27390d |
bugzilla_formatdup.conf \
|
|
|
27390d |
bugzilla_format_libreport.conf \
|
|
|
27390d |
bugzilla_format_kernel.conf \
|
|
|
27390d |
bugzilla_format_anaconda.conf \
|
|
|
27390d |
bugzilla_formatdup_anaconda.conf
|
|
|
27390d |
-
|
|
|
27390d |
endif
|
|
|
27390d |
|
|
|
27390d |
-dist_reportpluginsconf_DATA = $(reporters_plugin_conf) \
|
|
|
27390d |
+defaultreportpluginsconfdir = $(DEFAULT_REPORT_PLUGINS_CONF_DIR)
|
|
|
27390d |
+dist_defaultreportpluginsconf_DATA = $(reporters_plugin_conf) \
|
|
|
27390d |
rhtsupport.conf \
|
|
|
27390d |
mailx.conf \
|
|
|
27390d |
ureport.conf
|
|
|
27390d |
|
|
|
27390d |
+dist_reportpluginsconf_DATA = $(reporters_plugin_format_conf) \
|
|
|
27390d |
+ $(dist_defaultreportpluginsconf_DATA)
|
|
|
27390d |
+
|
|
|
27390d |
eventsdir = $(EVENTS_DIR)
|
|
|
27390d |
eventsconfdir = $(EVENTS_CONF_DIR)
|
|
|
27390d |
|
|
|
27390d |
--
|
|
|
27390d |
1.8.3.1
|
|
|
27390d |
|