[package] add syslog-ng3 (#5205)
[openwrt/svn-archive/archive.git] / admin / syslog-ng3 / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=syslog-ng
11 PKG_VERSION:=3.0.3
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=b8b3c9af28696bce48ceca0de6444426
14
15 PKG_SOURCE_URL:= \
16 http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.0.3/source/
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/syslog-ng3
22 SECTION:=admin
23 CATEGORY:=Administration
24 DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libwrap +libintl +libiconv
25 TITLE:=A powerful syslog daemon
26 URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
27 endef
28
29 define Package/syslog-ng3/description
30 syslog-ng reads and logs messages to the system console, log
31 files, other machines and/or users as specified by its
32 configuration file.
33 endef
34
35 define Package/syslog-ng3/conffiles
36 /etc/syslog-ng/syslog-ng.conf
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --disable-dependency-tracking \
42 --enable-tcp-wrapper \
43 --disable-glibtest \
44 , \
45 CPPFLAGS="-I$(STAGING_DIR)/usr/include/eventlog $(TARGET_CPPFLAGS)" \
46 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
47 PKG_CONFIG="$(STAGING_DIR_HOST)/bin/pkg-config" \
48 )
49 endef
50
51 define Package/syslog-ng3/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/syslog-ng $(1)/usr/sbin/
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/syslog-ng
57 $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc/syslog-ng/
58 endef
59
60 $(eval $(call BuildPackage,syslog-ng3))