You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=rsyslog
  9. PKG_VERSION:=8.2110.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:= \
  13. https://fossies.org/linux/misc \
  14. https://www.rsyslog.com/files/download/rsyslog
  15. PKG_HASH:=3f904ec137ca6412e8273f7896d962ecb589f7d0c589bdf16b1709ec27e24f31
  16. PKG_MAINTAINER:=
  17. PKG_LICENSE:=GPL-3.0-or-later
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_CPE_ID:=cpe:/a:rsyslog:rsyslog
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/rsyslog
  24. SECTION:=admin
  25. CATEGORY:=Administration
  26. TITLE:=Enhanced system logging and kernel message trapping daemons
  27. URL:=https://www.rsyslog.com/
  28. DEPENDS:= \
  29. +RSYSLOG_gssapi_krb5:krb5-libs +RSYSLOG_elasticsearch:libcurl \
  30. +RSYSLOG_libdbi:libdbi +libestr +libfastjson +RSYSLOG_gnutls:libgnutls \
  31. +RSYSLOG_mmdblookup:libmaxminddb +RSYSLOG_mysql:libmysqlclient \
  32. +RSYSLOG_omhttp:libcurl +RSYSLOG_openssl:libopenssl \
  33. +RSYSLOG_pgsql:libpq +libuuid +zlib
  34. MENU:=1
  35. endef
  36. define Package/rsyslog/conffiles
  37. /etc/rsyslog.conf
  38. endef
  39. CONFIGURE_ARGS+= \
  40. --disable-libgcrypt \
  41. --disable-fmhttp \
  42. --disable-default-tests \
  43. --disable-libsystemd \
  44. $(if $(CONFIG_RSYSLOG_gssapi_krb5),--enable-gssapi-krb5) \
  45. $(if $(CONFIG_RSYSLOG_mysql),--enable-mysql) \
  46. $(if $(CONFIG_RSYSLOG_pgsql),--enable-pgsql) \
  47. $(if $(CONFIG_RSYSLOG_libdbi),--enable-libdbi) \
  48. $(if $(CONFIG_RSYSLOG_elasticsearch),--enable-elasticsearch) \
  49. $(if $(CONFIG_RSYSLOG_omhttp),--enable-omhttp) \
  50. $(if $(CONFIG_RSYSLOG_openssl),--enable-openssl) \
  51. $(if $(CONFIG_RSYSLOG_gnutls),--enable-gnutls) \
  52. $(if $(CONFIG_RSYSLOG_mail),--enable-mail) \
  53. $(if $(CONFIG_RSYSLOG_mmjsonparse),--enable-mmjsonparse) \
  54. $(if $(CONFIG_RSYSLOG_mmdblookup),--enable-mmdblookup) \
  55. $(if $(CONFIG_RSYSLOG_imfile),--enable-imfile)
  56. define Package/rsyslog/install
  57. $(INSTALL_DIR) $(1)/usr/sbin
  58. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rsyslogd $(1)/usr/sbin/
  59. $(INSTALL_DIR) $(1)/usr/lib/rsyslog
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/rsyslog/* $(1)/usr/lib/rsyslog/
  61. $(INSTALL_DIR) $(1)/etc
  62. $(INSTALL_CONF) ./files/rsyslog.conf $(1)/etc
  63. $(INSTALL_DIR) $(1)/etc/init.d
  64. $(INSTALL_BIN) ./files/rsyslog.init $(1)/etc/init.d/rsyslog
  65. endef
  66. define Package/rsyslog/config
  67. source "$(SOURCE)/Config.in"
  68. endef
  69. $(eval $(call BuildPackage,rsyslog))