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.

77 lines
2.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=syslog-ng
  3. PKG_VERSION:=3.9.1
  4. PKG_RELEASE:=2
  5. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_SOURCE_URL:=https://github.com/balabit/syslog-ng/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
  8. PKG_MD5SUM:=1b48da9ef620cf06e55e481b5abb677a
  9. PKG_HASH:=5678856a550ae790618fabde9d1447f932ce7a9080d55dca8fc5df1202c70a17
  10. PKG_INSTALL:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. include $(INCLUDE_DIR)/nls.mk
  13. define Package/syslog-ng
  14. SECTION:=admin
  15. CATEGORY:=Administration
  16. DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libuuid +libcurl
  17. TITLE:=A powerful syslog daemon
  18. URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
  19. endef
  20. define Package/syslog-ng/description
  21. syslog-ng reads and logs messages to the system console, log
  22. files, other machines and/or users as specified by its
  23. configuration file.
  24. endef
  25. define Package/syslog-ng/conffiles
  26. /etc/syslog-ng.conf
  27. endef
  28. define Build/Configure
  29. $(SED) 's,-I/usr/include,,' $(PKG_BUILD_DIR)/configure
  30. $(Build/Configure/Default)
  31. endef
  32. CONFIGURE_ARGS += \
  33. $(call autoconf_bool,CONFIG_IPV6,ipv6) \
  34. --disable-dependency-tracking \
  35. --disable-amqp \
  36. --disable-tcp-wrapper \
  37. --disable-glibtest \
  38. --disable-mongodb \
  39. --disable-java \
  40. --disable-json \
  41. --disable-python \
  42. --disable-spoof-source \
  43. --disable-sql \
  44. --disable-linux-caps \
  45. --disable-smtp \
  46. --disable-redis \
  47. --enable-prce \
  48. TARGET_CPPFLAGS += \
  49. -I$(STAGING_DIR)/usr/include/eventlog
  50. CONFIGURE_VARS += \
  51. LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
  52. define Package/syslog-ng/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(MAKE) -C $(PKG_BUILD_DIR) \
  55. install-sbinPROGRAMS install-libLTLIBRARIES \
  56. install-moduleLTLIBRARIES DESTDIR="$(1)"
  57. $(INSTALL_DIR) $(1)/etc/init.d
  58. $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
  59. $(INSTALL_DIR) $(1)/etc
  60. $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
  61. $(call libtool_remove_files,$(1))
  62. endef
  63. $(eval $(call BuildPackage,syslog-ng))