723c3de5878f39cd2a784d5f827d754f5da864f1
[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.9
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=5280a86b4f5c25b2ba157c8cea302cf0
15
16 PKG_SOURCE_URL:=http://www.balabit.com/downloads/syslog-ng/stable/src \
17 http://www.balabit.com/downloads/syslog-ng/1.6/src
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/syslog-ng
27 SECTION:=admin
28 CATEGORY:=Administration
29 DEPENDS:=+libol
30 TITLE:=A powerful syslog daemon
31 DESCRIPTION:=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 URL:=http://www.balabit.com/products/syslog_ng/
35 endef
36
37 define Package/syslog-ng/conffiles
38 /etc/syslog-ng/syslog-ng.conf
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default,--disable-dependency-tracking \
43 --disable-full-static \
44 --enable-tcp-wrapper \
45 --with-libol="$(STAGING_DIR)/usr/bin",CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libol" \
46 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libol")
47 endef
48
49 define Build/Compile
50 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install)
52 endef
53
54 define Package/syslog-ng/install
55 install -d -m0755 $(1)/usr/sbin
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/syslog-ng $(1)/usr/sbin/
57 install -d -m0755 $(1)/etc/init.d
58 install -m0755 ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
59 install -d -m0755 $(1)/etc/syslog-ng
60 install -m0644 ./files/syslog-ng.conf $(1)/etc/syslog-ng/
61 endef
62
63 $(eval $(call BuildPackage,syslog-ng))