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.

74 lines
2.0 KiB

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