2357da58653702ec33dc2659d2fa211a8795e0de
[openwrt/svn-archive/archive.git] / admin / syslog-ng / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=syslog-ng
12 PKG_VERSION:=1.6.12
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=a3cbfdb6e1e5beea181a7349749719f3
15
16 PKG_SOURCE_URL:= http://www.balabit.com/downloads/syslog-ng/1.6/src \
17 http://www.balabit.com/downloads/syslog-ng/stable/src
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/syslog-ng
23 SECTION:=admin
24 CATEGORY:=Administration
25 DEPENDS:=+libol
26 TITLE:=A powerful syslog daemon
27 URL:=http://www.balabit.com/products/syslog_ng/
28 endef
29
30 define Package/syslog-ng/description
31 syslog-ng reads and logs messages to the system console, log
32 files, other machines and/or users as specified by its
33 configuration file.
34 endef
35
36 define Package/syslog-ng/conffiles
37 /etc/syslog-ng/syslog-ng.conf
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default,--disable-dependency-tracking \
42 --disable-full-static \
43 --enable-tcp-wrapper \
44 --with-libol="$(STAGING_DIR)/usr/bin",CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libol" \
45 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libol")
46 endef
47
48 define Build/Compile
49 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" all install)
50 endef
51
52 define Package/syslog-ng/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/syslog-ng $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
57 $(INSTALL_DIR) $(1)/etc/syslog-ng
58 $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc/syslog-ng/
59 endef
60
61 $(eval $(call BuildPackage,syslog-ng))