2009-07-14 15:33:37 +00:00
|
|
|
#
|
2010-07-12 11:22:09 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2009-07-14 15:33:37 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=syslog-ng
|
2010-03-20 10:29:33 +00:00
|
|
|
PKG_VERSION:=3.0.5
|
2010-07-12 11:22:09 +00:00
|
|
|
PKG_RELEASE:=2
|
2009-07-14 15:33:37 +00:00
|
|
|
|
2010-03-20 10:29:33 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$(PKG_VERSION)/source/
|
2009-07-14 15:33:37 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
2010-07-12 11:22:09 +00:00
|
|
|
PKG_MD5SUM:=28f0d9ff2243b330e8cd6311ef9b2f12
|
|
|
|
|
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
|
|
CONFIG_IPV6 \
|
2009-07-14 15:33:37 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/syslog-ng3
|
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
2009-08-18 14:49:11 +00:00
|
|
|
DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libwrap
|
2009-07-14 15:33:37 +00:00
|
|
|
TITLE:=A powerful syslog daemon
|
|
|
|
URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/syslog-ng3/description
|
|
|
|
syslog-ng reads and logs messages to the system console, log
|
|
|
|
files, other machines and/or users as specified by its
|
|
|
|
configuration file.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/syslog-ng3/conffiles
|
2009-08-18 14:49:11 +00:00
|
|
|
/etc/syslog-ng.conf
|
2009-07-14 15:33:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2009-09-03 01:51:59 +00:00
|
|
|
$(SED) 's,-I/usr/include,,' $(PKG_BUILD_DIR)/configure
|
|
|
|
$(Build/Configure/Default)
|
2009-07-14 15:33:37 +00:00
|
|
|
endef
|
|
|
|
|
2009-09-03 01:51:59 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2010-07-12 11:22:09 +00:00
|
|
|
$(call autoconf_bool,CONFIG_IPV6,ipv6) \
|
2009-09-03 01:51:59 +00:00
|
|
|
--disable-dependency-tracking \
|
|
|
|
--enable-tcp-wrapper \
|
2010-02-22 23:17:09 +00:00
|
|
|
--disable-glibtest \
|
|
|
|
--disable-spoof-source \
|
|
|
|
--disable-sql \
|
|
|
|
--enable-prce \
|
|
|
|
--disable-linux-caps \
|
2009-09-03 01:51:59 +00:00
|
|
|
|
|
|
|
TARGET_CPPFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/include/eventlog
|
|
|
|
|
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
|
|
|
|
|
2009-07-14 15:33:37 +00:00
|
|
|
define Package/syslog-ng3/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/syslog-ng $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
|
2009-08-18 14:49:11 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
|
2009-07-14 15:33:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,syslog-ng3))
|