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

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