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

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