Branch oldpackages for 14.07
[14.07/packages.git] / admin / syslog-ng / Makefile
1 #
2 # Copyright (C) 2006-2012 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:=1.6.12
12 PKG_RELEASE:=6
13 PKG_MD5SUM:=a3cbfdb6e1e5beea181a7349749719f3
14
15 PKG_SOURCE_URL:= \
16         http://www.balabit.com/downloads/files/syslog-ng/sources/1.6/src \
17         http://www.balabit.com/downloads/files/syslog-ng/stable/src
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/syslog-ng
25   SECTION:=admin
26   CATEGORY:=Administration
27   DEPENDS:=+libol +librt
28   TITLE:=A powerful syslog daemon
29   URL:=http://www.balabit.com/products/syslog_ng/
30 endef
31
32 define Package/syslog-ng/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-ng/conffiles
39 /etc/syslog-ng/syslog-ng.conf
40 endef
41
42 define Build/Configure
43         $(call Build/Configure/Default, \
44                 --disable-dependency-tracking \
45         --disable-full-static \
46         --enable-tcp-wrapper \
47         --with-libol="$(STAGING_DIR)/host/bin" \
48                 , \
49                 CPPFLAGS="-I$(STAGING_DIR)/usr/include/libol $(TARGET_CPPFLAGS)" \
50                 LDFLAGS="-L$(STAGING_DIR)/usr/lib/libol $(TARGET_LDFLAGS)" \
51         )
52 endef
53
54 define Package/syslog-ng/install
55         $(INSTALL_DIR) $(1)/usr/sbin
56         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/syslog-ng $(1)/usr/sbin/
57         $(INSTALL_DIR) $(1)/etc/init.d
58         $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
59         $(INSTALL_DIR) $(1)/etc/syslog-ng
60         $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc/syslog-ng/
61 endef
62
63 $(eval $(call BuildPackage,syslog-ng))