PKG_NAME:=syslog-ng
PKG_VERSION:=3.0.5
-PKG_RELEASE:=3
+PKG_RELEASE:=5
PKG_SOURCE_URL:=http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$(PKG_VERSION)/source/
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
define Package/syslog-ng3
SECTION:=admin
CATEGORY:=Administration
- DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libwrap +libpthread +zlib
+ DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libwrap +libpthread +librt +zlib
TITLE:=A powerful syslog daemon
URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
endef
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
START=50
+SERVICE_USE_PID=1
+
start() {
- [ -f /etc/syslog-ng.conf ] || {
- echo "/etc/syslog-ng.conf does not exist !";
- exit 0;
- };
- [ -d /var/run ] || mkdir -p /var/run
- [ -x /usr/sbin/syslog-ng ] && /usr/sbin/syslog-ng
+ [ -f /etc/syslog-ng.conf ] || return 1
+ service_start /usr/sbin/syslog-ng
}
stop() {
- killall syslog-ng
-}
-
-restart() {
- stop
- sleep 1
- start
+ service_stop /usr/sbin/syslog-ng
}
reload() {
- kill -HUP `cat /var/run/syslog-ng.pid` &>/dev/null
+ service_reload /usr/sbin/syslog-ng
}
-