diff --git a/admin/rsyslog/Config.in b/admin/rsyslog/Config.in index 6e6b70e4e8ac2a..0521b18ee74f93 100644 --- a/admin/rsyslog/Config.in +++ b/admin/rsyslog/Config.in @@ -59,4 +59,9 @@ if PACKAGE_rsyslog default n help Enable input file module in rsyslog + config RSYSLOG_mmnormalize + bool "Enable mmnormalize module support" + default n + help + Enable mmnormalize module in rsyslog endif diff --git a/admin/rsyslog/Makefile b/admin/rsyslog/Makefile index b703565f5636e6..ea73d2de9d3008 100644 --- a/admin/rsyslog/Makefile +++ b/admin/rsyslog/Makefile @@ -37,7 +37,7 @@ define Package/rsyslog +RSYSLOG_libdbi:libdbi +libestr +libfastjson +RSYSLOG_gnutls:libgnutls \ +RSYSLOG_mmdblookup:libmaxminddb +RSYSLOG_mysql:libmysqlclient \ +RSYSLOG_omhttp:libcurl +RSYSLOG_openssl:libopenssl \ - +RSYSLOG_pgsql:libpq +libuuid +zlib + +RSYSLOG_pgsql:libpq +libuuid +zlib +RSYSLOG_mmnormalize:liblognorm MENU:=1 endef @@ -61,7 +61,8 @@ CONFIGURE_ARGS+= \ $(if $(CONFIG_RSYSLOG_mail),--enable-mail) \ $(if $(CONFIG_RSYSLOG_mmjsonparse),--enable-mmjsonparse) \ $(if $(CONFIG_RSYSLOG_mmdblookup),--enable-mmdblookup) \ - $(if $(CONFIG_RSYSLOG_imfile),--enable-imfile) + $(if $(CONFIG_RSYSLOG_imfile),--enable-imfile) \ + $(if $(CONFIG_RSYSLOG_mmnormalize),--enable-mmnormalize) define Package/rsyslog/install $(INSTALL_DIR) $(1)/usr/sbin diff --git a/libs/liblognorm/Makefile b/libs/liblognorm/Makefile new file mode 100644 index 00000000000000..eba1293323573b --- /dev/null +++ b/libs/liblognorm/Makefile @@ -0,0 +1,47 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=liblognorm +PKG_VERSION:=2.0.6 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://www.liblognorm.com/files/download +PKG_HASH:=cff057e85c22038992f9ed12eb8d4e63c45adf53a5a51faaa3279f605809f6f2 + +PKG_MAINTAINER:=Carlo Filippi +PKG_LICENSE:=LGPL-2.1-or-later Apache-2.0 +PKG_LICENSE_FILES:=COPYING COPYING.ASL20 + +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/liblognorm + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Lognorm library + URL:=https://www.liblognorm.com/ + DEPENDS:=+libestr +libfastjson +endef + +define Package/liblognorm/description + Liblognorm is a fast-samples based log normalization library +endef + +CONFIGURE_ARGS += --enable-docs=no +TARGET_CFLAGS += $(FPIC) + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ +endef + +define Package/liblognorm/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblognorm.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,liblognorm))