db47: moved to github
[openwrt.org/packages.git] / admin / syslog-ng3 / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# Copyright (C) 2006-2011 OpenWrt.org
#
# 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
PKG_VERSION:=3.0.5
PKG_RELEASE:=5
 
PKG_SOURCE_URL:=http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$(PKG_VERSION)/source/
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_MD5SUM:=28f0d9ff2243b330e8cd6311ef9b2f12
 
PKG_CONFIG_DEPENDS:= \
        CONFIG_IPV6 \
 
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
 
define Package/syslog-ng3
  SECTION:=admin
  CATEGORY:=Administration
  DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libwrap +libpthread +librt +zlib +libdbi
  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
/etc/syslog-ng.conf
endef
 
define Build/Configure
        $(SED) 's,-I/usr/include,,' $(PKG_BUILD_DIR)/configure
        $(Build/Configure/Default)
endef
 
CONFIGURE_ARGS +=  \
        $(call autoconf_bool,CONFIG_IPV6,ipv6) \
        --disable-dependency-tracking \
        --enable-tcp-wrapper \
        --disable-glibtest \
        --disable-spoof-source \
        --disable-sql \
        --enable-prce \
        --disable-linux-caps \
 
TARGET_CPPFLAGS += \
        -I$(STAGING_DIR)/usr/include/eventlog
 
CONFIGURE_VARS += \
        LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
 
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
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
endef
 
$(eval $(call BuildPackage,syslog-ng3))
 
comments