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.

151 lines
4.1 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_openssl:libopenssl +RSYSLOG_pgsql:libpq +libuuid +zlib
  33. MENU:=1
  34. endef
  35. define Package/rsyslog/conffiles
  36. /etc/rsyslog.conf
  37. endef
  38. CONFIGURE_ARGS+= \
  39. --disable-libgcrypt \
  40. --disable-fmhttp \
  41. --disable-default-tests \
  42. --disable-libsystemd \
  43. $(if $(CONFIG_RSYSLOG_gssapi_krb5),--enable-gssapi-krb5) \
  44. $(if $(CONFIG_RSYSLOG_mysql),--enable-mysql) \
  45. $(if $(CONFIG_RSYSLOG_pgsql),--enable-pgsql) \
  46. $(if $(CONFIG_RSYSLOG_libdbi),--enable-libdbi) \
  47. $(if $(CONFIG_RSYSLOG_elasticsearch),--enable-elasticsearch) \
  48. $(if $(CONFIG_RSYSLOG_omhttp),--enable-omhttp) \
  49. $(if $(CONFIG_RSYSLOG_openssl),--enable-openssl) \
  50. $(if $(CONFIG_RSYSLOG_gnutls),--enable-gnutls) \
  51. $(if $(CONFIG_RSYSLOG_mail),--enable-mail) \
  52. $(if $(CONFIG_RSYSLOG_mmjsonparse),--enable-mmjsonparse) \
  53. $(if $(CONFIG_RSYSLOG_mmdblookup),--enable-mmdblookup) \
  54. $(if $(CONFIG_RSYSLOG_imfile),--enable-imfile)
  55. define Package/rsyslog/install
  56. $(INSTALL_DIR) $(1)/usr/sbin
  57. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rsyslogd $(1)/usr/sbin/
  58. $(INSTALL_DIR) $(1)/usr/lib/rsyslog
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/rsyslog/* $(1)/usr/lib/rsyslog/
  60. $(INSTALL_DIR) $(1)/etc
  61. $(INSTALL_CONF) ./files/rsyslog.conf $(1)/etc
  62. $(INSTALL_DIR) $(1)/etc/init.d
  63. $(INSTALL_BIN) ./files/rsyslog.init $(1)/etc/init.d/rsyslog
  64. endef
  65. define Package/rsyslog/config
  66. config RSYSLOG_gssapi_krb5
  67. depends on PACKAGE_rsyslog
  68. bool "Enable GSSAPI Kerberos 5 support"
  69. default n
  70. help
  71. Enable GSSAPI Kerberos 5 support in rsyslog
  72. config RSYSLOG_mysql
  73. depends on PACKAGE_rsyslog
  74. bool "Enable MySQL support"
  75. default n
  76. help
  77. Enable MySQL support in rsyslog
  78. config RSYSLOG_pgsql
  79. depends on PACKAGE_rsyslog
  80. bool "Enable PostgreSQL support"
  81. default n
  82. help
  83. Enable PostgreSQL support in rsyslog
  84. config RSYSLOG_libdbi
  85. depends on PACKAGE_rsyslog
  86. bool "Enable libdbi support"
  87. default n
  88. help
  89. Enable libdbi support in rsyslog
  90. config RSYSLOG_elasticsearch
  91. depends on PACKAGE_rsyslog
  92. bool "Enable ElasticSearch module support"
  93. default n
  94. help
  95. Enable ElasticSearch output module in rsyslog
  96. config RSYSLOG_omhttp
  97. depends on PACKAGE_rsyslog
  98. bool "Enable HTTP output module support"
  99. default n
  100. help
  101. Enable HTTP output module in rsyslog
  102. config RSYSLOG_openssl
  103. depends on PACKAGE_rsyslog
  104. bool "Enable OpenSSL support"
  105. default n
  106. help
  107. Enable OpenSSL support in rsyslog
  108. config RSYSLOG_gnutls
  109. depends on PACKAGE_rsyslog
  110. bool "Enable GnuTLS support"
  111. default n
  112. help
  113. Enable GnuTLS support in rsyslog
  114. config RSYSLOG_mail
  115. depends on PACKAGE_rsyslog
  116. bool "Enable Mail support"
  117. default n
  118. help
  119. Enable mail support in rsyslog
  120. config RSYSLOG_mmjsonparse
  121. depends on PACKAGE_rsyslog
  122. bool "Enable JSON parsing module support"
  123. default n
  124. help
  125. Enable JSON parsing support in rsyslog
  126. config RSYSLOG_mmdblookup
  127. depends on PACKAGE_rsyslog
  128. bool "Enable MaxMind DB lookup helper support"
  129. default n
  130. help
  131. Enable MaxMind DB lookup helper support in rsyslog
  132. config RSYSLOG_imfile
  133. depends on PACKAGE_rsyslog
  134. bool "Enable file input module support"
  135. default n
  136. help
  137. Enable input file module in rsyslog
  138. endef
  139. $(eval $(call BuildPackage,rsyslog))