2006-08-08 14:56:43 +00:00
|
|
|
#
|
2012-02-05 19:45:20 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-08-08 14:56:43 +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
|
2007-03-04 02:51:51 +00:00
|
|
|
PKG_VERSION:=1.6.12
|
2012-02-07 22:11:18 +00:00
|
|
|
PKG_RELEASE:=6
|
2007-03-04 02:51:51 +00:00
|
|
|
PKG_MD5SUM:=a3cbfdb6e1e5beea181a7349749719f3
|
2006-08-08 14:56:43 +00:00
|
|
|
|
2008-09-13 12:09:56 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
http://www.balabit.com/downloads/files/syslog-ng/sources/1.6/src \
|
|
|
|
http://www.balabit.com/downloads/files/syslog-ng/stable/src
|
2006-08-08 14:56:43 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
|
2010-02-12 15:24:17 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-08 14:56:43 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/syslog-ng
|
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
2012-02-05 20:50:18 +00:00
|
|
|
DEPENDS:=+libol +librt
|
2006-08-08 14:56:43 +00:00
|
|
|
TITLE:=A powerful syslog daemon
|
|
|
|
URL:=http://www.balabit.com/products/syslog_ng/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/syslog-ng/description
|
2007-10-21 15:59:31 +00:00
|
|
|
syslog-ng reads and logs messages to the system console, log
|
2007-10-14 04:32:56 +00:00
|
|
|
files, other machines and/or users as specified by its
|
|
|
|
configuration file.
|
|
|
|
endef
|
|
|
|
|
2006-08-08 14:56:43 +00:00
|
|
|
define Package/syslog-ng/conffiles
|
|
|
|
/etc/syslog-ng/syslog-ng.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2008-09-13 12:09:56 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-full-static \
|
|
|
|
--enable-tcp-wrapper \
|
|
|
|
--with-libol="$(STAGING_DIR)/host/bin" \
|
|
|
|
, \
|
2009-04-29 12:56:17 +00:00
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include/libol $(TARGET_CPPFLAGS)" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib/libol $(TARGET_LDFLAGS)" \
|
2008-09-13 12:09:56 +00:00
|
|
|
)
|
2006-08-08 14:56:43 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-13 12:09:56 +00:00
|
|
|
define Package/syslog-ng/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/syslog-ng $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
|
|
|
|
$(INSTALL_DIR) $(1)/etc/syslog-ng
|
|
|
|
$(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc/syslog-ng/
|
2006-08-08 14:56:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,syslog-ng))
|