Blame SOURCES/0076-workflow-add-new-workflows.patch

0c9110
From 23116ec906199af1106edcc70fa8280730416d0f Mon Sep 17 00:00:00 2001
0c9110
From: Matej Habrnal <mhabrnal@redhat.com>
0c9110
Date: Wed, 17 Sep 2014 05:54:30 +0200
0c9110
Subject: [LIBREPORT PATCH 76/93] workflow: add new workflows
0c9110
0c9110
Add workflow for logger, mailx and reportuploader. These workflows are disabled
0c9110
because the plugins that ships these workflows are installed by default but we
0c9110
don't want to offer users these workflows in report-cli/report-gtk by default.
0c9110
0c9110
Resolves rhbz#1094203
0c9110
0c9110
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
0c9110
Signed-off-by: Jakub Filak <jfilak@redhat.com>
0c9110
---
0c9110
 doc/Makefile.am                          |  3 ++
0c9110
 doc/report_logger.conf.txt               | 47 ++++++++++++++++++++++++++++++++
0c9110
 doc/report_mailx.conf.txt                | 46 +++++++++++++++++++++++++++++++
0c9110
 doc/report_uploader.conf.txt             | 46 +++++++++++++++++++++++++++++++
0c9110
 po/POTFILES.in                           |  5 ++++
0c9110
 src/workflows/Makefile.am                | 24 ++++++++++++----
0c9110
 src/workflows/report_logger.conf         |  6 ++++
0c9110
 src/workflows/report_mailx.conf          |  6 ++++
0c9110
 src/workflows/report_uploader.conf       |  6 ++++
0c9110
 src/workflows/workflow_Logger.xml.in     | 11 ++++++++
0c9110
 src/workflows/workflow_LoggerCCpp.xml.in | 12 ++++++++
0c9110
 src/workflows/workflow_Mailx.xml.in      | 11 ++++++++
0c9110
 src/workflows/workflow_MailxCCpp.xml.in  | 12 ++++++++
0c9110
 src/workflows/workflow_Upload.xml.in     |  3 +-
0c9110
 src/workflows/workflow_UploadCCpp.xml.in | 12 ++++++++
0c9110
 15 files changed, 243 insertions(+), 7 deletions(-)
0c9110
 create mode 100644 doc/report_logger.conf.txt
0c9110
 create mode 100644 doc/report_mailx.conf.txt
0c9110
 create mode 100644 doc/report_uploader.conf.txt
0c9110
 create mode 100644 src/workflows/report_logger.conf
0c9110
 create mode 100644 src/workflows/report_mailx.conf
0c9110
 create mode 100644 src/workflows/report_uploader.conf
0c9110
 create mode 100644 src/workflows/workflow_Logger.xml.in
0c9110
 create mode 100644 src/workflows/workflow_LoggerCCpp.xml.in
0c9110
 create mode 100644 src/workflows/workflow_Mailx.xml.in
0c9110
 create mode 100644 src/workflows/workflow_MailxCCpp.xml.in
0c9110
 create mode 100644 src/workflows/workflow_UploadCCpp.xml.in
0c9110
0c9110
diff --git a/doc/Makefile.am b/doc/Makefile.am
0c9110
index 7eb3065..da4785e 100644
0c9110
--- a/doc/Makefile.am
0c9110
+++ b/doc/Makefile.am
0c9110
@@ -48,6 +48,9 @@ MAN5_TXT += report_fedora.conf.txt
0c9110
 MAN5_TXT += report_Logger.conf.txt
0c9110
 MAN5_TXT += report_rhel.conf.txt
0c9110
 MAN5_TXT += report_rhel_bugzilla.conf.txt
0c9110
+MAN5_TXT += report_logger.conf.txt
0c9110
+MAN5_TXT += report_mailx.conf.txt
0c9110
+MAN5_TXT += report_uploader.conf.txt
0c9110
 MAN5_TXT += rhtsupport.conf.txt
0c9110
 MAN5_TXT += rhtsupport_event.conf.txt
0c9110
 MAN5_TXT += uploader_event.conf.txt
0c9110
diff --git a/doc/report_logger.conf.txt b/doc/report_logger.conf.txt
0c9110
new file mode 100644
0c9110
index 0000000..7912e2c
0c9110
--- /dev/null
0c9110
+++ b/doc/report_logger.conf.txt
0c9110
@@ -0,0 +1,47 @@
0c9110
+report_logger.conf(5)
0c9110
+=====================
0c9110
+
0c9110
+NAME
0c9110
+----
0c9110
+report_logger.conf - configuration file for libreport.
0c9110
+
0c9110
+DESCRIPTION
0c9110
+-----------
0c9110
+This configuration file specifies which of the work flow definitions
0c9110
+are applicable to analyzing problems and export the problem data information to
0c9110
+a text file.
0c9110
+
0c9110
+All applicable work flows are presented to users in User Interface as
0c9110
+possibilities for processing of any problems. A particular work flow becomes
0c9110
+applicable if its conditions are satisfied.
0c9110
+
0c9110
+This configuration file consists from condition lines. Each condition line must
0c9110
+start with EVENT=workflow_NAME where "workflow_" is constant prefix and
0c9110
+"workflow_NAME" is base name of path to reporting work flow configuration file.
0c9110
+
0c9110
+The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR
0c9110
+is a name of problem directory element to be checked (for example,
0c9110
+"executable", "package", hostname" etc). The condition may consists from as
0c9110
+many element checks as it is necessary.
0c9110
+
0c9110
+All condition lines in this configuration file are commented out by default.
0c9110
+Therefore all applicable work flows from this file are not presented to users in
0c9110
+User Interface. For enable this extension uncomment all condition line in this
0c9110
+configuration file.
0c9110
+
0c9110
+EXAMPLES
0c9110
+--------
0c9110
+Condition line::
0c9110
+    EVENT=workflow_LoggerCCpp analyzer=CCpp
0c9110
+
0c9110
+The condition line above expects existence of
0c9110
+/usr/share/libreport/workflows/workflow_LoggerCCpp.xml
0c9110
+
0c9110
+SEE ALSO
0c9110
+--------
0c9110
+report-gtk(1)
0c9110
+
0c9110
+AUTHOR
0c9110
+------
0c9110
+* ABRT team
0c9110
+
0c9110
diff --git a/doc/report_mailx.conf.txt b/doc/report_mailx.conf.txt
0c9110
new file mode 100644
0c9110
index 0000000..9a5e8cb
0c9110
--- /dev/null
0c9110
+++ b/doc/report_mailx.conf.txt
0c9110
@@ -0,0 +1,46 @@
0c9110
+report_mailx.conf(5)
0c9110
+====================
0c9110
+
0c9110
+NAME
0c9110
+----
0c9110
+report_mailx.conf - configuration file for libreport.
0c9110
+
0c9110
+DESCRIPTION
0c9110
+-----------
0c9110
+This configuration file specifies which of the work flow definitions
0c9110
+are applicable to analyzing problems and send information via email.
0c9110
+
0c9110
+All applicable work flows are presented to users in User Interface as
0c9110
+possibilities for processing of any problems. A particular work flow becomes
0c9110
+applicable if its conditions are satisfied.
0c9110
+
0c9110
+This configuration file consists from condition lines. Each condition line must
0c9110
+start with EVENT=workflow_NAME where "workflow_" is constant prefix and
0c9110
+"workflow_NAME" is base name of path to reporting work flow configuration file.
0c9110
+
0c9110
+The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR
0c9110
+is a name of problem directory element to be checked (for example,
0c9110
+"executable", "package", hostname" etc). The condition may consists
0c9110
+from as many element checks as it is necessary.
0c9110
+
0c9110
+All condition lines in this configuration file are commented out by default.
0c9110
+Therefore all applicable work flows from this file are not presented to users in
0c9110
+User Interface. For enable this extension uncomment all condition line in this
0c9110
+configuration file.
0c9110
+
0c9110
+EXAMPLES
0c9110
+--------
0c9110
+Condition line::
0c9110
+    EVENT=workflow_MailxCCpp analyzer=CCpp
0c9110
+
0c9110
+The condition line above expects existence of
0c9110
+/usr/share/libreport/workflows/workflow_MailxCCpp.xml
0c9110
+
0c9110
+SEE ALSO
0c9110
+--------
0c9110
+report-gtk(1)
0c9110
+
0c9110
+AUTHOR
0c9110
+------
0c9110
+* ABRT team
0c9110
+
0c9110
diff --git a/doc/report_uploader.conf.txt b/doc/report_uploader.conf.txt
0c9110
new file mode 100644
0c9110
index 0000000..975ea02
0c9110
--- /dev/null
0c9110
+++ b/doc/report_uploader.conf.txt
0c9110
@@ -0,0 +1,46 @@
0c9110
+report_uploader.conf(5)
0c9110
+=======================
0c9110
+
0c9110
+NAME
0c9110
+----
0c9110
+report_uploader.conf - configuration file for libreport.
0c9110
+
0c9110
+DESCRIPTION
0c9110
+-----------
0c9110
+This configuration file specifies which of the work flow definitions
0c9110
+are applicable to analyzing problems and upload the data via scp or ftp.
0c9110
+
0c9110
+All applicable work flows are presented to users in User Interface as
0c9110
+possibilities for processing of any problems. A particular work flow becomes
0c9110
+applicable if its conditions are satisfied.
0c9110
+
0c9110
+This configuration file consists from condition lines. Each condition line must
0c9110
+start with EVENT=workflow_NAME where "workflow_" is constant prefix and
0c9110
+"workflow_NAME" is base name of path to reporting work flow configuration file.
0c9110
+
0c9110
+The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR
0c9110
+is a name of problem directory element to be checked (for example,
0c9110
+"executable", "package", hostname" etc). The condition may consists
0c9110
+from as many element checks as it is necessary.
0c9110
+
0c9110
+All condition lines in this configuration file are commented out by default.
0c9110
+Therefore all applicable work flows from this file are not presented to users in
0c9110
+User Interface. For enable this extension uncomment all condition line in this
0c9110
+configuration file.
0c9110
+
0c9110
+EXAMPLES
0c9110
+--------
0c9110
+Condition line::
0c9110
+    EVENT=workflow_UploadCCpp analyzer=CCpp
0c9110
+
0c9110
+The condition line above expects existence of
0c9110
+/usr/share/libreport/workflows/workflow_UploadCCpp.xml
0c9110
+
0c9110
+SEE ALSO
0c9110
+--------
0c9110
+report-gtk(1)
0c9110
+
0c9110
+AUTHOR
0c9110
+------
0c9110
+* ABRT team
0c9110
+
0c9110
diff --git a/po/POTFILES.in b/po/POTFILES.in
0c9110
index 26acba1..7ba080c 100644
0c9110
--- a/po/POTFILES.in
0c9110
+++ b/po/POTFILES.in
0c9110
@@ -55,6 +55,11 @@ src/workflows/workflow_FedoraVmcore.xml.in
0c9110
 src/workflows/workflow_FedoraXorg.xml.in
0c9110
 src/workflows/workflow_FedoraLibreport.xml.in
0c9110
 src/workflows/workflow_FedoraJava.xml.in
0c9110
+src/workflows/workflow_LoggerCCpp.xml.in
0c9110
+src/workflows/workflow_Logger.xml.in
0c9110
+src/workflows/workflow_MailxCCpp.xml.in
0c9110
+src/workflows/workflow_Mailx.xml.in
0c9110
+src/workflows/workflow_UploadCCpp.xml.in
0c9110
 src/workflows/workflow_Upload.xml.in
0c9110
 src/workflows/workflow_RHELCCpp.xml.in
0c9110
 src/workflows/workflow_RHELKerneloops.xml.in
0c9110
diff --git a/src/workflows/Makefile.am b/src/workflows/Makefile.am
0c9110
index 54a6f31..0fc1019 100644
0c9110
--- a/src/workflows/Makefile.am
0c9110
+++ b/src/workflows/Makefile.am
0c9110
@@ -8,14 +8,19 @@ dist_workflows_DATA = \
0c9110
     workflow_FedoraXorg.xml \
0c9110
     workflow_FedoraLibreport.xml \
0c9110
     workflow_FedoraJava.xml \
0c9110
-    workflow_Upload.xml \
0c9110
     workflow_RHELCCpp.xml \
0c9110
     workflow_RHELKerneloops.xml \
0c9110
     workflow_RHELPython.xml \
0c9110
     workflow_RHELvmcore.xml \
0c9110
     workflow_RHELxorg.xml \
0c9110
     workflow_RHELLibreport.xml \
0c9110
-    workflow_RHELJava.xml
0c9110
+    workflow_RHELJava.xml \
0c9110
+    workflow_Mailx.xml \
0c9110
+    workflow_MailxCCpp.xml \
0c9110
+    workflow_Upload.xml \
0c9110
+    workflow_UploadCCpp.xml \
0c9110
+    workflow_Logger.xml \
0c9110
+    workflow_LoggerCCpp.xml
0c9110
 
0c9110
 if BUILD_BUGZILLA
0c9110
 dist_workflows_DATA += \
0c9110
@@ -36,7 +41,10 @@ workflowsdefdir = $(WORKFLOWS_DEFINITION_DIR)
0c9110
 
0c9110
 dist_workflowsdef_DATA =\
0c9110
     report_fedora.conf \
0c9110
-    report_rhel.conf
0c9110
+    report_rhel.conf \
0c9110
+    report_mailx.conf \
0c9110
+    report_logger.conf \
0c9110
+    report_uploader.conf
0c9110
 
0c9110
 if BUILD_BUGZILLA
0c9110
 dist_workflowsdef_DATA += \
0c9110
@@ -54,14 +62,20 @@ EXTRA_DIST = \
0c9110
     workflow_FedoraXorg.xml.in \
0c9110
     workflow_FedoraLibreport.xml.in \
0c9110
     workflow_FedoraJava.xml.in \
0c9110
-    workflow_Upload.xml.in \
0c9110
     workflow_RHELCCpp.xml.in \
0c9110
     workflow_RHELKerneloops.xml.in \
0c9110
     workflow_RHELPython.xml.in \
0c9110
     workflow_RHELvmcore.xml.in \
0c9110
     workflow_RHELxorg.xml.in \
0c9110
     workflow_RHELLibreport.xml.in \
0c9110
-    workflow_RHELJava.xml.in
0c9110
+    workflow_RHELJava.xml.in \
0c9110
+    workflow_Mailx.xml.in \
0c9110
+    workflow_MailxCCpp.xml.in \
0c9110
+    workflow_Upload.xml.in \
0c9110
+    workflow_UploadCCpp.xml.in \
0c9110
+    workflow_Logger.xml.in \
0c9110
+    workflow_LoggerCCpp.xml.in
0c9110
+
0c9110
 
0c9110
 if BUILD_BUGZILLA
0c9110
 EXTRA_DIST += \
0c9110
diff --git a/src/workflows/report_logger.conf b/src/workflows/report_logger.conf
0c9110
new file mode 100644
0c9110
index 0000000..15b9e65
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/report_logger.conf
0c9110
@@ -0,0 +1,6 @@
0c9110
+# EVENT=workflow_LoggerCCpp analyzer=CCpp
0c9110
+# this is just a meta event which consists of other events
0c9110
+# the list is defined in the xml file
0c9110
+
0c9110
+# EVENT=workflow_Logger analyzer!=CCpp
0c9110
+# this must be changed with new workflow
0c9110
diff --git a/src/workflows/report_mailx.conf b/src/workflows/report_mailx.conf
0c9110
new file mode 100644
0c9110
index 0000000..fef2192
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/report_mailx.conf
0c9110
@@ -0,0 +1,6 @@
0c9110
+# EVENT=workflow_MailxCCpp analyzer=CCpp
0c9110
+# this is just a meta event which consists of other events
0c9110
+# the list is defined in the xml file
0c9110
+
0c9110
+# EVENT=workflow_Mailx analyzer!=CCpp
0c9110
+# this must be changed with new workflow
0c9110
diff --git a/src/workflows/report_uploader.conf b/src/workflows/report_uploader.conf
0c9110
new file mode 100644
0c9110
index 0000000..7f17f52
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/report_uploader.conf
0c9110
@@ -0,0 +1,6 @@
0c9110
+# EVENT=workflow_UploadCCpp analyzer=CCpp
0c9110
+# this is just a meta event which consists of other events
0c9110
+# the list is defined in the xml file
0c9110
+
0c9110
+# EVENT=workflow_Upload analyzer!=CCpp
0c9110
+# this must be changed with new workflow
0c9110
diff --git a/src/workflows/workflow_Logger.xml.in b/src/workflows/workflow_Logger.xml.in
0c9110
new file mode 100644
0c9110
index 0000000..3ffe878
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/workflow_Logger.xml.in
0c9110
@@ -0,0 +1,11 @@
0c9110
+
0c9110
+<workflow>
0c9110
+    <_name>Export the problem data information to a text file</_name>
0c9110
+    <_description>Analyze the problem locally and export the problem data information to a text file</_description>
0c9110
+    <priority>-99</priority>
0c9110
+
0c9110
+    <events>
0c9110
+        <event>collect_*</event>
0c9110
+        <event>report_Logger</event>
0c9110
+    </events>
0c9110
+</workflow>
0c9110
diff --git a/src/workflows/workflow_LoggerCCpp.xml.in b/src/workflows/workflow_LoggerCCpp.xml.in
0c9110
new file mode 100644
0c9110
index 0000000..5dce9f0
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/workflow_LoggerCCpp.xml.in
0c9110
@@ -0,0 +1,12 @@
0c9110
+
0c9110
+<workflow>
0c9110
+    <_name>Export the problem data information to a text file</_name>
0c9110
+    <_description>Analyze the problem locally and export the problem data information to a text file</_description>
0c9110
+    <priority>-99</priority>
0c9110
+
0c9110
+    <events>
0c9110
+        <event>collect_*</event>
0c9110
+        <event>analyze_CCpp</event>
0c9110
+        <event>report_Logger</event>
0c9110
+    </events>
0c9110
+</workflow>
0c9110
diff --git a/src/workflows/workflow_Mailx.xml.in b/src/workflows/workflow_Mailx.xml.in
0c9110
new file mode 100644
0c9110
index 0000000..63bd576
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/workflow_Mailx.xml.in
0c9110
@@ -0,0 +1,11 @@
0c9110
+
0c9110
+<workflow>
0c9110
+    <_name>Send the problem data via email</_name>
0c9110
+    <_description>Analyze the problem locally and send information via email</_description>
0c9110
+    <priority>-99</priority>
0c9110
+
0c9110
+    <events>
0c9110
+        <event>collect_*</event>
0c9110
+        <event>report_Mailx</event>
0c9110
+    </events>
0c9110
+</workflow>
0c9110
diff --git a/src/workflows/workflow_MailxCCpp.xml.in b/src/workflows/workflow_MailxCCpp.xml.in
0c9110
new file mode 100644
0c9110
index 0000000..3dd3bba
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/workflow_MailxCCpp.xml.in
0c9110
@@ -0,0 +1,12 @@
0c9110
+
0c9110
+<workflow>
0c9110
+    <_name>Send the problem data via email</_name>
0c9110
+    <_description>Analyze the problem locally and send information via email</_description>
0c9110
+    <priority>-99</priority>
0c9110
+
0c9110
+    <events>
0c9110
+        <event>collect_*</event>
0c9110
+        <event>analyze_CCpp</event>
0c9110
+        <event>report_Mailx</event>
0c9110
+    </events>
0c9110
+</workflow>
0c9110
diff --git a/src/workflows/workflow_Upload.xml.in b/src/workflows/workflow_Upload.xml.in
0c9110
index 3965f99..a0bc658 100644
0c9110
--- a/src/workflows/workflow_Upload.xml.in
0c9110
+++ b/src/workflows/workflow_Upload.xml.in
0c9110
@@ -5,7 +5,6 @@
0c9110
 
0c9110
     <events>
0c9110
         <event>collect_*</event>
0c9110
-        <event>analyze_CCpp</event>
0c9110
         <event>report_Uploader</event>
0c9110
     </events>
0c9110
-</workflow>
0c9110
\ No newline at end of file
0c9110
+</workflow>
0c9110
diff --git a/src/workflows/workflow_UploadCCpp.xml.in b/src/workflows/workflow_UploadCCpp.xml.in
0c9110
new file mode 100644
0c9110
index 0000000..7f22cb8
0c9110
--- /dev/null
0c9110
+++ b/src/workflows/workflow_UploadCCpp.xml.in
0c9110
@@ -0,0 +1,12 @@
0c9110
+
0c9110
+<workflow>
0c9110
+    <_name>Upload the problem data to a server</_name>
0c9110
+    <_description>Analyze the problem locally and upload the data via scp or ftp</_description>
0c9110
+    <priority>-99</priority>
0c9110
+
0c9110
+    <events>
0c9110
+        <event>collect_*</event>
0c9110
+        <event>analyze_CCpp</event>
0c9110
+        <event>report_Uploader</event>
0c9110
+    </events>
0c9110
+</workflow>
0c9110
-- 
0c9110
1.8.3.1
0c9110