Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=syslog-ng
  3. PKG_VERSION:=3.8.1
  4. PKG_RELEASE:=3
  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. --disable-smtp \
  45. --disable-redis \
  46. --enable-prce \
  47. TARGET_CPPFLAGS += \
  48. -I$(STAGING_DIR)/usr/include/eventlog
  49. CONFIGURE_VARS += \
  50. LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
  51. define Package/syslog-ng/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(MAKE) -C $(PKG_BUILD_DIR) \
  54. install-sbinPROGRAMS install-libLTLIBRARIES \
  55. install-moduleLTLIBRARIES DESTDIR="$(1)"
  56. $(INSTALL_DIR) $(1)/etc/init.d
  57. $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
  58. $(INSTALL_DIR) $(1)/etc
  59. $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
  60. $(call libtool_remove_files,$(1))
  61. endef
  62. $(eval $(call BuildPackage,syslog-ng))