rsyslog: add additonal support modules
authorMatthew Hagan <mnhagan88@gmail.com>
Mon, 15 Nov 2021 13:11:38 +0000 (13:11 +0000)
committerRosen Penev <rosenp@gmail.com>
Tue, 16 Nov 2021 21:27:24 +0000 (13:27 -0800)
Add configurables via a menu to enable support for various features:
  - GSSAPI Kerberos support
  - mysql
  - postgresql
  - libdbi
  - elasticsearch
  - HTTP output module
  - openssl
  - gnutls
  - mail output
  - json parsing module
  - MaxMind DB support
  - input file

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
admin/rsyslog/Makefile

index 12d3b046eaee2e5e53f47bccbb6421cc2c4b49b8..7b4dfe2aa28bb842c28caca33daa0e1e5dbe0fed 100644 (file)
@@ -32,7 +32,12 @@ define Package/rsyslog
   CATEGORY:=Administration
   TITLE:=Enhanced system logging and kernel message trapping daemons
   URL:=https://www.rsyslog.com/
-  DEPENDS:=+libestr +libfastjson +libuuid +zlib
+  DEPENDS:= \
+       +RSYSLOG_gssapi_krb5:krb5-libs +RSYSLOG_elasticsearch:libcurl \
+       +RSYSLOG_libdbi:libdbi +libestr +libfastjson +RSYSLOG_gnutls:libgnutls \
+       +RSYSLOG_mmdblookup:libmaxminddb +RSYSLOG_mysql:libmysqlclient \
+       +RSYSLOG_openssl:libopenssl +RSYSLOG_pgsql:libpq +libuuid +zlib
+  MENU:=1
 endef
 
 define Package/rsyslog/conffiles
@@ -43,7 +48,19 @@ CONFIGURE_ARGS+= \
        --disable-libgcrypt \
        --disable-fmhttp \
        --disable-default-tests \
-       --disable-libsystemd
+       --disable-libsystemd \
+       $(if $(CONFIG_RSYSLOG_gssapi_krb5),--enable-gssapi-krb5) \
+       $(if $(CONFIG_RSYSLOG_mysql),--enable-mysql) \
+       $(if $(CONFIG_RSYSLOG_pgsql),--enable-pgsql) \
+       $(if $(CONFIG_RSYSLOG_libdbi),--enable-libdbi) \
+       $(if $(CONFIG_RSYSLOG_elasticsearch),--enable-elasticsearch) \
+       $(if $(CONFIG_RSYSLOG_omhttp),--enable-omhttp) \
+       $(if $(CONFIG_RSYSLOG_openssl),--enable-openssl) \
+       $(if $(CONFIG_RSYSLOG_gnutls),--enable-gnutls) \
+       $(if $(CONFIG_RSYSLOG_mail),--enable-mail) \
+       $(if $(CONFIG_RSYSLOG_mmjsonparse),--enable-mmjsonparse) \
+       $(if $(CONFIG_RSYSLOG_mmdblookup),--enable-mmdblookup) \
+       $(if $(CONFIG_RSYSLOG_imfile),--enable-imfile)
 
 define Package/rsyslog/install
        $(INSTALL_DIR) $(1)/usr/sbin
@@ -56,4 +73,79 @@ define Package/rsyslog/install
        $(INSTALL_BIN) ./files/rsyslog.init $(1)/etc/init.d/rsyslog
 endef
 
+define Package/rsyslog/config
+       config RSYSLOG_gssapi_krb5
+               depends on PACKAGE_rsyslog
+               bool "Enable GSSAPI Kerberos 5 support"
+               default n
+               help
+                       Enable GSSAPI Kerberos 5 support in rsyslog
+       config RSYSLOG_mysql
+               depends on PACKAGE_rsyslog
+               bool "Enable MySQL support"
+               default n
+               help
+                       Enable MySQL support in rsyslog
+       config RSYSLOG_pgsql
+               depends on PACKAGE_rsyslog
+               bool "Enable PostgreSQL support"
+               default n
+               help
+                       Enable PostgreSQL support in rsyslog
+       config RSYSLOG_libdbi
+               depends on PACKAGE_rsyslog
+               bool "Enable libdbi support"
+               default n
+               help
+                       Enable libdbi support in rsyslog
+       config RSYSLOG_elasticsearch
+               depends on PACKAGE_rsyslog
+               bool "Enable ElasticSearch module support"
+               default n
+               help
+                       Enable ElasticSearch output module in rsyslog
+       config RSYSLOG_omhttp
+               depends on PACKAGE_rsyslog
+               bool "Enable HTTP output module support"
+               default n
+               help
+                       Enable HTTP output module in rsyslog
+       config RSYSLOG_openssl
+               depends on PACKAGE_rsyslog
+               bool "Enable OpenSSL support"
+               default n
+               help
+                       Enable OpenSSL support in rsyslog
+       config RSYSLOG_gnutls
+               depends on PACKAGE_rsyslog
+               bool "Enable GnuTLS support"
+               default n
+               help
+                       Enable GnuTLS support in rsyslog
+       config RSYSLOG_mail
+               depends on PACKAGE_rsyslog
+               bool "Enable Mail support"
+               default n
+               help
+                       Enable mail support in rsyslog
+       config RSYSLOG_mmjsonparse
+               depends on PACKAGE_rsyslog
+               bool "Enable JSON parsing module support"
+               default n
+               help
+                       Enable JSON parsing support in rsyslog
+       config RSYSLOG_mmdblookup
+               depends on PACKAGE_rsyslog
+               bool "Enable MaxMind DB lookup helper support"
+               default n
+               help
+                       Enable MaxMind DB lookup helper support in rsyslog
+       config RSYSLOG_imfile
+               depends on PACKAGE_rsyslog
+               bool "Enable file input module support"
+               default n
+               help
+                       Enable input file module in rsyslog
+endef
+
 $(eval $(call BuildPackage,rsyslog))