nbd c0e5247848 replace lots of manual install commands with INSTALL_* variables
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5624 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-23 00:29:07 +00:00

64 lines
1.8 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng
PKG_VERSION:=1.6.9
PKG_RELEASE:=1
PKG_MD5SUM:=5280a86b4f5c25b2ba157c8cea302cf0
PKG_SOURCE_URL:=http://www.balabit.com/downloads/syslog-ng/stable/src \
http://www.balabit.com/downloads/syslog-ng/1.6/src
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/syslog-ng
SECTION:=admin
CATEGORY:=Administration
DEPENDS:=+libol
TITLE:=A powerful syslog daemon
DESCRIPTION:=syslog-ng reads and logs messages to the system console, log\\\
files, other machines and/or users as specified by its\\\
configuration file.\\\
URL:=http://www.balabit.com/products/syslog_ng/
endef
define Package/syslog-ng/conffiles
/etc/syslog-ng/syslog-ng.conf
endef
define Build/Configure
$(call Build/Configure/Default,--disable-dependency-tracking \
--disable-full-static \
--enable-tcp-wrapper \
--with-libol="$(STAGING_DIR)/usr/bin",CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libol" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libol")
endef
define Build/Compile
$(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
all install)
endef
define Package/syslog-ng/install
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/syslog-ng $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
$(INSTALL_DIR) $(1)/etc/syslog-ng
$(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc/syslog-ng/
endef
$(eval $(call BuildPackage,syslog-ng))