Skip to content

Commit

Permalink
add openSUSE workflows
Browse files Browse the repository at this point in the history
Related to #181

Signed-off-by: Jakub Filak <jfilak@redhat.com>
  • Loading branch information
Jakub Filak committed Oct 1, 2013
1 parent f0d66ce commit a742293
Show file tree
Hide file tree
Showing 10 changed files with 140 additions and 1 deletion.
31 changes: 30 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,38 @@ else
AM_CONDITIONAL(BUILD_UREPORT, false)
JSON_C_PACKAGE=
fi dnl end NO_UREPORT

AC_SUBST([JSON_C_PACKAGE])

AC_ARG_WITH(opensuse_support,
AS_HELP_STRING([--with-opensuse-support],[build openSUSE specific features (default is NO)]),
[], [with_opensuse_support=no])
if test "x$with_opensuse_support" = xyes; then
AM_CONDITIONAL(OPENSUSE_SUPPORT, true)
# enable SUSE & deps translations
for FILE in `grep -i -e "#.*openSUSE.*" po/POTFILES.in`
do
sed -ie "s,$FILE,${FILE:1}," po/POTFILES.in
sed -ie "\,^${FILE:1}$,d" po/POTFILES.skip
done
else
AM_CONDITIONAL(OPENSUSE_SUPPORT, false)
# disable rhtsupport & deps translations
for FILE in `grep -i -e "openSUSE" po/POTFILES.in`
do
if test "${FILE:0:1}" = "#"
then
continue
fi

sed -ie "s,$FILE,#$FILE," po/POTFILES.in
grep "$FILE" po/POTFILES.skip > /dev/null 2>&1
if test $?
then
echo "$FILE" >> po/POTFILES.skip
fi
done
fi dnl end OPENSUSE_SUPPORT

PKG_PROG_PKG_CONFIG

AC_CHECK_HEADER([libtar.h], [],
Expand Down
4 changes: 4 additions & 0 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ MAN5_TXT += report_Logger.conf.txt
MAN5_TXT += report_rhel.conf.txt
MAN5_TXT += uploader_event.conf.txt

if OPENSUSE_SUPPORT
MAN5_TXT += report_opensuse.conf.txt
endif

# Manual pages are generated from .txt via Docbook
man1_MANS = ${MAN1_TXT:%.txt=%.1}
man5_MANS = ${MAN5_TXT:%.txt=%.5}
Expand Down
5 changes: 5 additions & 0 deletions po/POTFILES.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ src/workflows/workflow_RHELKerneloops.xml.in
src/workflows/workflow_RHELPython.xml.in
src/workflows/workflow_RHELvmcore.xml.in
src/workflows/workflow_RHELxorg.xml.in
src/workflows/workflow_openSUSECCpp.xml.in
src/workflows/workflow_openSUSEKerneloops.xml.in
src/workflows/workflow_openSUSEPython.xml.in
src/workflows/workflow_openSUSEVmcore.xml.in
src/workflows/workflow_openSUSEXorg.xml.in
23 changes: 23 additions & 0 deletions src/workflows/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ dist_workflows_DATA = \
workflow_RHELvmcore.xml \
workflow_RHELxorg.xml

if OPENSUSE_SUPPORT
dist_workflows_DATA += \
workflow_openSUSECCpp.xml \
workflow_openSUSEKerneloops.xml \
workflow_openSUSEPython.xml \
workflow_openSUSEVmcore.xml \
workflow_openSUSEXorg.xml
endif

if BUILD_BUGZILLA
dist_workflows_DATA += \
workflow_AnacondaFedora.xml \
Expand All @@ -26,6 +35,11 @@ dist_workflowsdef_DATA =\
report_fedora.conf \
report_rhel.conf

if OPENSUSE_SUPPORT
dist_workflowsdef_DATA += \
report_opensuse.conf
endif

if BUILD_BUGZILLA
dist_workflowsdef_DATA += \
anaconda_event.conf
Expand All @@ -46,6 +60,15 @@ EXTRA_DIST = \
workflow_RHELvmcore.xml.in \
workflow_RHELxorg.xml.in

if OPENSUSE_SUPPORT
EXTRA_DIST += \
workflow_openSUSECCpp.xml.in \
workflow_openSUSEKerneloops.xml.in \
workflow_openSUSEPython.xml.in \
workflow_openSUSEVmcore.xml.in \
workflow_openSUSEXorg.xml.in
endif

if BUILD_BUGZILLA
EXTRA_DIST += \
workflow_AnacondaFedora.xml.in \
Expand Down
19 changes: 19 additions & 0 deletions src/workflows/report_opensuse.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
EVENT=workflow_openSUSECCpp analyzer=CCpp
# this is just a meta event which consists of other events
# the list is defined in the xml file

EVENT=workflow_openSUSEPython analyzer=Python
# this is just a meta event which consists of other events
# the list is defined in the xml file

EVENT=workflow_openSUSEKerneloops analyzer=Kerneloops
# this is just a meta event which consists of other events
# the list is defined in the xml file

EVENT=workflow_openSUSEVmcore analyzer=vmcore
# this is just a meta event which consists of other events
# the list is defined in the xml file

EVENT=workflow_openSUSEXorg analyzer=xorg
# this is just a meta event which consists of other events
# the list is defined in the xml file
13 changes: 13 additions & 0 deletions src/workflows/workflow_openSUSECCpp.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<workflow>
<_name>Report to openSUSE</_name>
<_description>Process the C/C++ crash using the openSUSE infrastructure</_description>

<events>
<event>report_uReport</event>
<event>collect_*</event>
<event>analyze_CCpp</event>
<event>report_Mailx</event>
<event>post_report</event>
</events>
</workflow>
12 changes: 12 additions & 0 deletions src/workflows/workflow_openSUSEKerneloops.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<workflow>
<_name>Report to openSUSE</_name>
<_description>Process the kerneloops using the openSUSE infrastructure</_description>

<events>
<event>report_uReport</event>
<event>collect_*</event>
<event>report_Mailx</event>
<event>post_report</event>
</events>
</workflow>
12 changes: 12 additions & 0 deletions src/workflows/workflow_openSUSEPython.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<workflow>
<_name>Report to openSUSE</_name>
<_description>Process the python exception using the openSUSE infrastructure</_description>

<events>
<event>report_uReport</event>
<event>collect_*</event>
<event>report_Mailx</event>
<event>post_report</event>
</events>
</workflow>
13 changes: 13 additions & 0 deletions src/workflows/workflow_openSUSEVmcore.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<workflow>
<_name>Report to openSUSE</_name>
<_description>Process the kernel crash using the openSUSE infrastructure</_description>

<events>
<event>analyze_VMcore</event>
<event>report_uReport</event>
<event>collect_*</event>
<event>report_Mailx</event>
<event>post_report</event>
</events>
</workflow>
9 changes: 9 additions & 0 deletions src/workflows/workflow_openSUSEXorg.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<workflow>
<_name>Report to openSUSE</_name>
<_description>Process the X Server problem using the openSUSE infrastructure</_description>

<events>
<event>report_Mailx</event>
</events>
</workflow>

0 comments on commit a742293

Please sign in to comment.