Blame SOURCES/0027-Do-not-ship-own-reporting-workflow-definitions.patch

78a2f7
From c252b9c40ad888aac5e5dc3054f624075e0533d3 Mon Sep 17 00:00:00 2001
78a2f7
From: Jakub Filak <jfilak@redhat.com>
78a2f7
Date: Fri, 17 Jan 2014 11:57:23 +0100
78a2f7
Subject: [PATCH 27/39] Do not ship own reporting workflow definitions
78a2f7
78a2f7
Related to rhbz#1054720
78a2f7
---
78a2f7
 etc/CMakeLists.txt            | 10 ++--------
78a2f7
 etc/java_event.conf           | 19 +++++++++++++++++++
78a2f7
 etc/java_event_fedora.conf    | 19 -------------------
78a2f7
 etc/java_event_fedora.conf.5  | 15 ---------------
78a2f7
 etc/java_event_rhel.conf      |  2 --
78a2f7
 etc/java_event_rhel.conf.5    | 15 ---------------
78a2f7
 etc/report_fedora_java.conf   |  3 ---
78a2f7
 etc/report_fedora_java.conf.5 | 32 --------------------------------
78a2f7
 etc/report_rhel_java.conf     |  3 ---
78a2f7
 etc/report_rhel_java.conf.5   | 32 --------------------------------
78a2f7
 etc/workflow_FedoraJava.xml   | 11 -----------
78a2f7
 etc/workflow_RHELJava.xml     |  9 ---------
78a2f7
 12 files changed, 21 insertions(+), 149 deletions(-)
78a2f7
 delete mode 100644 etc/java_event_fedora.conf
78a2f7
 delete mode 100644 etc/java_event_fedora.conf.5
78a2f7
 delete mode 100644 etc/java_event_rhel.conf
78a2f7
 delete mode 100644 etc/java_event_rhel.conf.5
78a2f7
 delete mode 100644 etc/report_fedora_java.conf
78a2f7
 delete mode 100644 etc/report_fedora_java.conf.5
78a2f7
 delete mode 100644 etc/report_rhel_java.conf
78a2f7
 delete mode 100644 etc/report_rhel_java.conf.5
78a2f7
 delete mode 100644 etc/workflow_FedoraJava.xml
78a2f7
 delete mode 100644 etc/workflow_RHELJava.xml
78a2f7
78a2f7
diff --git a/etc/CMakeLists.txt b/etc/CMakeLists.txt
78a2f7
index 79e739c..e7b4521 100644
78a2f7
--- a/etc/CMakeLists.txt
78a2f7
+++ b/etc/CMakeLists.txt
78a2f7
@@ -1,14 +1,8 @@
78a2f7
-install(FILES java_event.conf java_event_fedora.conf java_event_rhel.conf
78a2f7
+install(FILES java_event.conf
78a2f7
         DESTINATION ${SYSCONF_INSTALL_DIR}/libreport/events.d)
78a2f7
 
78a2f7
-install(FILES report_fedora_java.conf report_rhel_java.conf
78a2f7
-        DESTINATION ${SYSCONF_INSTALL_DIR}/libreport/workflows.d)
78a2f7
-
78a2f7
-install(FILES java_event.conf.5 java_event_rhel.conf.5 report_rhel_java.conf.5 bugzilla_format_java.conf.5 bugzilla_formatdup_java.conf.5 java_event_fedora.conf.5 report_fedora_java.conf.5
78a2f7
+install(FILES java_event.conf.5 bugzilla_format_java.conf.5 bugzilla_formatdup_java.conf.5
78a2f7
         DESTINATION ${MAN_INSTALL_DIR}/man5)
78a2f7
 
78a2f7
-install(FILES workflow_FedoraJava.xml workflow_RHELJava.xml
78a2f7
-        DESTINATION ${SHARE_INSTALL_PREFIX}/libreport/workflows)
78a2f7
-
78a2f7
 install(FILES bugzilla_format_java.conf bugzilla_formatdup_java.conf
78a2f7
         DESTINATION ${SYSCONF_INSTALL_DIR}/libreport/plugins)
78a2f7
diff --git a/etc/java_event.conf b/etc/java_event.conf
78a2f7
index f855a9d..4610f0c 100644
78a2f7
--- a/etc/java_event.conf
78a2f7
+++ b/etc/java_event.conf
78a2f7
@@ -16,6 +16,25 @@ EVENT=post-create type=Java
78a2f7
             echo "Cannot create 'duphas' nor 'uuid' because of missing 'backtrace' file"
78a2f7
         fi
78a2f7
 
78a2f7
+# Create a bug in Bugzilla
78a2f7
+EVENT=report_Bugzilla type=Java
78a2f7
+        reporter-bugzilla -b \
78a2f7
+                -c /etc/libreport/plugins/bugzilla.conf \
78a2f7
+                -F /etc/libreport/plugins/bugzilla_format_java.conf \
78a2f7
+                -A /etc/libreport/plugins/bugzilla_formatdup_java.conf
78a2f7
+
78a2f7
+# Send micro report
78a2f7
+EVENT=report_uReport type=Java
78a2f7
+        /usr/libexec/abrt-action-ureport
78a2f7
+
78a2f7
+# update ABRT database after successful report to bugzilla
78a2f7
+EVENT=post_report type=Java
78a2f7
+        reporter-ureport -A -B
78a2f7
+        exit 0
78a2f7
+
78a2f7
 # Reporting of java exceptions
78a2f7
 EVENT=report-gui type=Java
78a2f7
         report-gtk -- "$DUMP_DIR"
78a2f7
+
78a2f7
+EVENT=report-cli type=Java
78a2f7
+        report-cli -- "$DUMP_DIR"
78a2f7
diff --git a/etc/java_event_fedora.conf b/etc/java_event_fedora.conf
78a2f7
deleted file mode 100644
78a2f7
index 25fcd16..0000000
78a2f7
--- a/etc/java_event_fedora.conf
78a2f7
+++ /dev/null
78a2f7
@@ -1,19 +0,0 @@
78a2f7
-EVENT=report_Bugzilla type=Java
78a2f7
-        reporter-bugzilla -b \
78a2f7
-                -c /etc/libreport/plugins/bugzilla.conf \
78a2f7
-                -F /etc/libreport/plugins/bugzilla_format_java.conf \
78a2f7
-                -A /etc/libreport/plugins/bugzilla_formatdup_java.conf
78a2f7
-
78a2f7
-# Send micro report
78a2f7
-EVENT=report_uReport type=Java
78a2f7
-        # disabled until abrt switches to satyr
78a2f7
-        # /usr/libexec/abrt-action-ureport
78a2f7
-
78a2f7
-# update ABRT database after successful report to bugzilla
78a2f7
-EVENT=post_report type=Java
78a2f7
-        # disabled until abrt switches to satyr
78a2f7
-        # reporter-ureport -r
78a2f7
-        # exit 0
78a2f7
-
78a2f7
-EVENT=report-cli type=Java
78a2f7
-        report-cli -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR"
78a2f7
diff --git a/etc/java_event_fedora.conf.5 b/etc/java_event_fedora.conf.5
78a2f7
deleted file mode 100644
78a2f7
index 3f6fe7e..0000000
78a2f7
--- a/etc/java_event_fedora.conf.5
78a2f7
+++ /dev/null
78a2f7
@@ -1,15 +0,0 @@
78a2f7
-.\" Process this file with
78a2f7
-.\" groff -man -Tascii java_event_fedora.conf.5
78a2f7
-.\"
78a2f7
-.TH java_event_fedora.conf 5 "JULY 2013" abrt-java-connector "User Manuals"
78a2f7
-.SH NAME
78a2f7
-java_event_fedora.conf \- configuration file for libreport\&.
78a2f7
-.SH DESCRIPTION
78a2f7
-.sp
78a2f7
-This configuration file provides definitions of events for Java exception problems\&.
78a2f7
-.sp
78a2f7
-By default the file contains definition for \fIreport-cli\fR, \fIpost-report\fR, \fIreport_uReport\fR and \fIreport_Bugzilla\fR events\&.
78a2f7
-.SH AUTHOR
78a2f7
-Jakub Filak <jfilak at redhat dot com>
78a2f7
-.SH "SEE ALSO"
78a2f7
-.BR report_event.conf (5)
78a2f7
diff --git a/etc/java_event_rhel.conf b/etc/java_event_rhel.conf
78a2f7
deleted file mode 100644
78a2f7
index c1fc6d5..0000000
78a2f7
--- a/etc/java_event_rhel.conf
78a2f7
+++ /dev/null
78a2f7
@@ -1,2 +0,0 @@
78a2f7
-EVENT=report-cli type=Java
78a2f7
-        report-cli  -e report_RHTSupport -- "$DUMP_DIR"
78a2f7
diff --git a/etc/java_event_rhel.conf.5 b/etc/java_event_rhel.conf.5
78a2f7
deleted file mode 100644
78a2f7
index b376a8a..0000000
78a2f7
--- a/etc/java_event_rhel.conf.5
78a2f7
+++ /dev/null
78a2f7
@@ -1,15 +0,0 @@
78a2f7
-.\" Process this file with
78a2f7
-.\" groff -man -Tascii java_event_rhel.conf.5
78a2f7
-.\"
78a2f7
-.TH java_event_rhel.conf 5 "JULY 2013" abrt-java-connector "User Manuals"
78a2f7
-.SH NAME
78a2f7
-java_event_rhel.conf \- configuration file for libreport\&.
78a2f7
-.SH DESCRIPTION
78a2f7
-.sp
78a2f7
-This configuration file provides definitions of events for Java exception problems\&.
78a2f7
-.sp
78a2f7
-By default the file contains definition for \fIreport-cli\fR event.
78a2f7
-.SH AUTHOR
78a2f7
-Jakub Filak <jfilak at redhat dot com>
78a2f7
-.SH "SEE ALSO"
78a2f7
-.BR report_event.conf (5)
78a2f7
diff --git a/etc/report_fedora_java.conf b/etc/report_fedora_java.conf
78a2f7
deleted file mode 100644
78a2f7
index 792d3cc..0000000
78a2f7
--- a/etc/report_fedora_java.conf
78a2f7
+++ /dev/null
78a2f7
@@ -1,3 +0,0 @@
78a2f7
-EVENT=workflow_FedoraJava analyzer=Java
78a2f7
-# this is just a meta event which consists of other events
78a2f7
-# the list is defined in the xml file
78a2f7
diff --git a/etc/report_fedora_java.conf.5 b/etc/report_fedora_java.conf.5
78a2f7
deleted file mode 100644
78a2f7
index f2e247d..0000000
78a2f7
--- a/etc/report_fedora_java.conf.5
78a2f7
+++ /dev/null
78a2f7
@@ -1,32 +0,0 @@
78a2f7
-.\" Process this file with
78a2f7
-.\" groff -man -Tascii report_java_fedora.conf.5
78a2f7
-.\"
78a2f7
-.TH report_java_fedora.conf 5 "JULY 2013" "abrt-java-connector" "User Manuals"
78a2f7
-.SH NAME
78a2f7
-report_java_fedora.conf \- configuration file for libreport\&.
78a2f7
-.SH "DESCRIPTION"
78a2f7
-.sp
78a2f7
-This configuration file specifies which of the reporting work flow definitions are applicable for Java problems types on Fedora\&.
78a2f7
-.sp
78a2f7
-All applicable reporting work flows are presented to users in User Interface as possibilities for processing of a particular problem\&.
78a2f7
-.sp
78a2f7
-This configuration file consists from one condition per line\&.
78a2f7
-.sp
78a2f7
-Each condition line must start with EVENT=workflow_NAME where "workflow_" is constant prefix and "workflow_NAME" is base name of path to reporting work flow configuration file\&.
78a2f7
-.sp
78a2f7
-The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR is a name of problem directory element to be checked (for example, "executable", "package", hostname" etc)\&. The condition may consists from as many element checks as it is necessary\&.
78a2f7
-.SH "EXAMPLES"
78a2f7
-.PP
78a2f7
-Condition line
78a2f7
-.RS 4
78a2f7
-EVENT=workflow_FedoraJava analyzer=Java
78a2f7
-.RE
78a2f7
-.sp
78a2f7
-The condition line above expects existence of /usr/share/libreport/workflows/workflow_FedoraJava\&.xml
78a2f7
-.SH "SEE ALSO"
78a2f7
-.sp
78a2f7
-report\-gtk(1)
78a2f7
-.SH AUTHOR
78a2f7
-Jakub Filak <jfilak at redhat dot com>
78a2f7
-.SH "SEE ALSO"
78a2f7
-.BR report_event.conf (5)
78a2f7
diff --git a/etc/report_rhel_java.conf b/etc/report_rhel_java.conf
78a2f7
deleted file mode 100644
78a2f7
index 214522a..0000000
78a2f7
--- a/etc/report_rhel_java.conf
78a2f7
+++ /dev/null
78a2f7
@@ -1,3 +0,0 @@
78a2f7
-EVENT=workflow_RHELJava analyzer=Java
78a2f7
-# this is just a meta event which consists of other events
78a2f7
-# the list is defined in the xml file
78a2f7
diff --git a/etc/report_rhel_java.conf.5 b/etc/report_rhel_java.conf.5
78a2f7
deleted file mode 100644
78a2f7
index 3704b39..0000000
78a2f7
--- a/etc/report_rhel_java.conf.5
78a2f7
+++ /dev/null
78a2f7
@@ -1,32 +0,0 @@
78a2f7
-.\" Process this file with
78a2f7
-.\" groff -man -Tascii report_java_rhel.conf.5
78a2f7
-.\"
78a2f7
-.TH REPORT_JAVA_RHEL.CONF 5 "JULY 2013" "abrt-java-connector" "User Manuals"
78a2f7
-.SH NAME
78a2f7
-report_java_rhel.conf \- configuration file for libreport\&.
78a2f7
-.SH "DESCRIPTION"
78a2f7
-.sp
78a2f7
-This configuration file specifies which of the reporting work flow definitions are applicable for Java problems types on Red Hat Enterprise Linux\&.
78a2f7
-.sp
78a2f7
-All applicable reporting work flows are presented to users in User Interface as possibilities for processing of a particular problem\&.
78a2f7
-.sp
78a2f7
-This configuration file consists from one condition per line\&.
78a2f7
-.sp
78a2f7
-Each condition line must start with EVENT=workflow_NAME where "workflow_" is constant prefix and "workflow_NAME" is base name of path to reporting work flow configuration file\&.
78a2f7
-.sp
78a2f7
-The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR is a name of problem directory element to be checked (for example, "executable", "package", hostname" etc)\&. The condition may consists from as many element checks as it is necessary\&.
78a2f7
-.SH "EXAMPLES"
78a2f7
-.PP
78a2f7
-Condition line
78a2f7
-.RS 4
78a2f7
-EVENT=workflow_RHELJava analyzer=Java
78a2f7
-.RE
78a2f7
-.sp
78a2f7
-The condition line above expects existence of /usr/share/libreport/workflows/workflow_RHELJava\&.xml
78a2f7
-.SH "SEE ALSO"
78a2f7
-.sp
78a2f7
-report\-gtk(1)
78a2f7
-.SH AUTHOR
78a2f7
-Jakub Filak <jfilak at redhat dot com>
78a2f7
-.SH "SEE ALSO"
78a2f7
-.BR report_event.conf (5)
78a2f7
diff --git a/etc/workflow_FedoraJava.xml b/etc/workflow_FedoraJava.xml
78a2f7
deleted file mode 100644
78a2f7
index 4520042..0000000
78a2f7
--- a/etc/workflow_FedoraJava.xml
78a2f7
+++ /dev/null
78a2f7
@@ -1,11 +0,0 @@
78a2f7
-
78a2f7
-<workflow>
78a2f7
-    <name>Report to Fedora</name>
78a2f7
-    <description>Process the Java excption using the Fedora infrastructure</description>
78a2f7
-
78a2f7
-    <events>
78a2f7
-        <event>report_uReport</event>
78a2f7
-        <event>report_Bugzilla</event>
78a2f7
-        <event>post-report</event>
78a2f7
-    </events>
78a2f7
-</workflow>
78a2f7
diff --git a/etc/workflow_RHELJava.xml b/etc/workflow_RHELJava.xml
78a2f7
deleted file mode 100644
78a2f7
index e1f5b8a..0000000
78a2f7
--- a/etc/workflow_RHELJava.xml
78a2f7
+++ /dev/null
78a2f7
@@ -1,9 +0,0 @@
78a2f7
-
78a2f7
-<workflow>
78a2f7
-    <name>Report to Red Hat</name>
78a2f7
-    <description>Process the Java exception using the Red Hat infrastructure</description>
78a2f7
-
78a2f7
-    <events>
78a2f7
-        <event>report_RHTSupport</event>
78a2f7
-    </events>
78a2f7
-</workflow>
78a2f7
-- 
78a2f7
1.8.3.1
78a2f7