packages/syslog-ng{,3}: use new service functions
[openwrt/svn-archive/archive.git] / admin / syslog-ng3 / Makefile
1 #
2 # Copyright (C) 2006-2011 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.5
12 PKG_RELEASE:=4
13
14 PKG_SOURCE_URL:=http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$(PKG_VERSION)/source/
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=28f0d9ff2243b330e8cd6311ef9b2f12
17
18 PKG_CONFIG_DEPENDS:= \
19 CONFIG_IPV6 \
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/syslog-ng3
25 SECTION:=admin
26 CATEGORY:=Administration
27 DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libwrap +libpthread +zlib
28 TITLE:=A powerful syslog daemon
29 URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
30 endef
31
32 define Package/syslog-ng3/description
33 syslog-ng reads and logs messages to the system console, log
34 files, other machines and/or users as specified by its
35 configuration file.
36 endef
37
38 define Package/syslog-ng3/conffiles
39 /etc/syslog-ng.conf
40 endef
41
42 define Build/Configure
43 $(SED) 's,-I/usr/include,,' $(PKG_BUILD_DIR)/configure
44 $(Build/Configure/Default)
45 endef
46
47 CONFIGURE_ARGS += \
48 $(call autoconf_bool,CONFIG_IPV6,ipv6) \
49 --disable-dependency-tracking \
50 --enable-tcp-wrapper \
51 --disable-glibtest \
52 --disable-spoof-source \
53 --disable-sql \
54 --enable-prce \
55 --disable-linux-caps \
56
57 TARGET_CPPFLAGS += \
58 -I$(STAGING_DIR)/usr/include/eventlog
59
60 CONFIGURE_VARS += \
61 LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
62
63 define Package/syslog-ng3/install
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/syslog-ng $(1)/usr/sbin/
66 $(INSTALL_DIR) $(1)/etc/init.d
67 $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
68 $(INSTALL_DIR) $(1)/etc
69 $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
70 endef
71
72 $(eval $(call BuildPackage,syslog-ng3))