source: packages/admin/syslog-ng/Makefile @ 9695

Last change on this file since 9695 was 9695, checked in by nbd, 8 years ago

packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.

Signed-off-by: Andy Boyett <agb-openwrt@…>

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=syslog-ng
12PKG_VERSION:=1.6.12
13PKG_RELEASE:=1
14PKG_MD5SUM:=a3cbfdb6e1e5beea181a7349749719f3
15
16PKG_SOURCE_URL:= http://www.balabit.com/downloads/syslog-ng/1.6/src \
17                http://www.balabit.com/downloads/syslog-ng/stable/src
18PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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/
28endef
29
30define 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.
34endef
35
36define Package/syslog-ng/conffiles
37/etc/syslog-ng/syslog-ng.conf
38endef
39
40define 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")
46endef
47
48define Build/Compile   
49$(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" all install)
50endef
51
52define Package/syslog-ng/install       
53        $(INSTALL_DIR) $(1)/usr/sbin
54        $(INSTALL_BIN) $(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/
59endef
60
61$(eval $(call BuildPackage,syslog-ng))
Note: See TracBrowser for help on using the repository browser.