From ad68287dce787705e20a47b26792d9c10d7f5bc3 Mon Sep 17 00:00:00 2001
From: Jiri Moskovcak <jmoskovc@redhat.com>
Date: Thu, 11 Aug 2011 16:48:44 +0200
Subject: [PATCH 42/52] added xml and event conf for uploader
---
libreport.spec.in | 2 ++
src/plugins/Makefile.am | 9 ++++++---
src/plugins/report_Uploader.xml.in | 21 +++++++++++++++++++++
src/plugins/uploader_event.conf | 1 +
4 files changed, 30 insertions(+), 3 deletions(-)
create mode 100644 src/plugins/report_Uploader.xml.in
create mode 100644 src/plugins/uploader_event.conf
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index 1dbdaca..484201f 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -28,7 +28,8 @@ dist_events_DATA = \
report_Logger.xml \
report_Mailx.xml \
report_RHTSupport.xml \
- report_Kerneloops.xml
+ report_Kerneloops.xml \
+ report_Uploader.xml
@INTLTOOL_XML_RULE@
@@ -38,7 +39,8 @@ dist_eventsconf_DATA = \
mailx_event.conf \
print_event.conf \
bugzilla_event.conf \
- rhtsupport_event.conf
+ rhtsupport_event.conf \
+ uploader_event.conf
MAN_TXT = \
reporter-print.txt \
@@ -68,7 +70,8 @@ EXTRA_DIST = \
report_Logger.xml.in \
report_Mailx.xml.in \
report_RHTSupport.xml.in \
- report_Kerneloops.xml.in
+ report_Kerneloops.xml.in \
+ report_Uploader.xml.in
$(DESTDIR)/$(DEBUG_INFO_DIR):
$(mkdir_p) '$@'
diff --git a/src/plugins/report_Uploader.xml.in b/src/plugins/report_Uploader.xml.in
new file mode 100644
index 0000000..c9fa413
--- /dev/null
+++ b/src/plugins/report_Uploader.xml.in
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<event>
+ <_name>Report uploader</_name>
+ <_description>Upload compressed report to url of choice</_description>
+
+ <requires-items></requires-items>
+ <exclude-items-by-default>event_log,reported_to</exclude-items-by-default>
+ <exclude-items-always></exclude-items-always>
+ <exclude-binary-items>no</exclude-binary-items>
+ <include-items-by-default></include-items-by-default>
+ <minimal-rating>0</minimal-rating>
+
+ <options>
+ <option type="text" name="Upload_URL">
+ <_label>URL</_label>
+ <allow-empty>no</allow-empty>
+ <_description>Where do you want to upload the tarball with report in form login:password@url</_description>
+ <default-value></default-value>
+ </option>
+ </options>
+</event>
diff --git a/src/plugins/uploader_event.conf b/src/plugins/uploader_event.conf
new file mode 100644
index 0000000..ef96c83
--- /dev/null
+++ b/src/plugins/uploader_event.conf
@@ -0,0 +1 @@
+EVENT=report_Uploader analyzer=libreport reporter-upload
\ No newline at end of file
--
1.7.6