Package: rsyslog
Version: 8.8.0-3
Severity: wishlist
Tags: patch

Dear Maintainer,

Starting with version 8.7.0, rsyslog comes with a new module allowing to
publish log messages to Apache Kafka. The support lib needed for this
(librkafka-dev) is part of Debian since Jessie.

The attached patch adds the bits needed to build this module as a
separate package (based on how support for omelasticsearch was done).

Thanks taking this request in account, and thanks for maintaining this
package in Debian !

Marc
>From a881a68631c98d3b73d0171a6d0e857d16ee3592 Mon Sep 17 00:00:00 2001
From: Marc Fournier <marc.fourn...@camptocamp.com>
Date: Thu, 12 Mar 2015 18:01:47 +0100
Subject: [PATCH] Build omkafka module

---
 debian/control               | 12 ++++++++++++
 debian/rsyslog-kafka.install |  1 +
 debian/rules                 |  1 +
 3 files changed, 14 insertions(+)
 create mode 100644 debian/rsyslog-kafka.install

diff --git a/debian/control b/debian/control
index 2fcb743..409fbac 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Build-Depends: debhelper (>= 8),
                libpq-dev,
                libmongo-client-dev (>= 0.1.4),
                libcurl4-gnutls-dev,
+               librdkafka-dev,
                libkrb5-dev,
                libgnutls28-dev,
                librelp-dev (>= 1.2.5),
@@ -110,6 +111,17 @@ Description: Elasticsearch output plugin for rsyslog
  distributed, multitenant-capable full-text search engine with a RESTful web
  interface and schema-free JSON documents.
 
+Package: rsyslog-kafka
+Architecture: any
+Priority: extra
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         rsyslog (= ${binary:Version}),
+Description: Kafka output plugin for rsyslog
+ This plugin allows rsyslog to write syslog messages to Apache Kafka, a
+ distributed and scalable message broker offering strong durability and
+ fault-tolerance guarantees.
+
 Package: rsyslog-gssapi
 Architecture: any
 Priority: extra
diff --git a/debian/rsyslog-kafka.install b/debian/rsyslog-kafka.install
new file mode 100644
index 0000000..179aaf0
--- /dev/null
+++ b/debian/rsyslog-kafka.install
@@ -0,0 +1 @@
+usr/lib/rsyslog/omkafka.so
diff --git a/debian/rules b/debian/rules
index 0cd28c6..cc36bc9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,7 @@ override_dh_auto_configure:
 		--enable-pgsql \
 		--enable-ommongodb \
 		--enable-elasticsearch \
+		--enable-omkafka \
 		--enable-mail \
 		--enable-imfile \
 		--enable-impstats \
-- 
2.1.4

Reply via email to