jow 6b4e74b57b [packages] syslog-ng: fix init script (based on patch by Lee Essen <lee.essen@nowonline.co.uk>)
The syslog-ng start script doesn't stop syslog-ng because it tries to
use pid's instead of the executable name. Very simple patch attached.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@30367 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-07 22:11:18 +00:00

64 lines
1.7 KiB
Makefile

#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng
PKG_VERSION:=1.6.12
PKG_RELEASE:=6
PKG_MD5SUM:=a3cbfdb6e1e5beea181a7349749719f3
PKG_SOURCE_URL:= \
http://www.balabit.com/downloads/files/syslog-ng/sources/1.6/src \
http://www.balabit.com/downloads/files/syslog-ng/stable/src
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/syslog-ng
SECTION:=admin
CATEGORY:=Administration
DEPENDS:=+libol +librt
TITLE:=A powerful syslog daemon
URL:=http://www.balabit.com/products/syslog_ng/
endef
define Package/syslog-ng/description
syslog-ng reads and logs messages to the system console, log
files, other machines and/or users as specified by its
configuration file.
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)/host/bin" \
, \
CPPFLAGS="-I$(STAGING_DIR)/usr/include/libol $(TARGET_CPPFLAGS)" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib/libol $(TARGET_LDFLAGS)" \
)
endef
define Package/syslog-ng/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(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))