[packages] pure-ftpd: update to 1.0.28
[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.4
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=86c39779261545d2289e9c309e262b8d
14
15 PKG_SOURCE_URL:= \
16 http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.0.4/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
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.conf
37 endef
38
39 define Build/Configure
40 $(SED) 's,-I/usr/include,,' $(PKG_BUILD_DIR)/configure
41 $(Build/Configure/Default)
42 endef
43
44 CONFIGURE_ARGS += \
45 --disable-dependency-tracking \
46 --enable-tcp-wrapper \
47 --disable-glibtest
48
49 TARGET_CPPFLAGS += \
50 -I$(STAGING_DIR)/usr/include/eventlog
51
52 TARGET_LDFLAGS += \
53 -L$(STAGING_DIR)/usr/lib/libintl/lib \
54 -L$(STAGING_DIR)/usr/lib/libiconv/lib
55
56 CONFIGURE_VARS += \
57 LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
58
59 define Package/syslog-ng3/install
60 $(INSTALL_DIR) $(1)/usr/sbin
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/syslog-ng $(1)/usr/sbin/
62 $(INSTALL_DIR) $(1)/etc/init.d
63 $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
64 $(INSTALL_DIR) $(1)/etc
65 $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
66 endef
67
68 $(eval $(call BuildPackage,syslog-ng3))