2007-03-17 12:38:18 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-07-01 23:09:45 +00:00
|
|
|
# $Id$
|
2007-03-17 12:38:18 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nagios-plugins
|
2008-02-13 14:44:39 +00:00
|
|
|
PKG_VERSION:=1.4.11
|
2007-03-17 12:38:18 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/nagiosplug
|
2008-02-13 14:44:39 +00:00
|
|
|
PKG_MD5SUM:=042783a2180a6987e0b403870b3d01f7
|
2007-03-17 12:38:18 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-06-11 08:01:08 +00:00
|
|
|
comma:= ,
|
|
|
|
|
2007-03-17 12:38:18 +00:00
|
|
|
define Package/nagios-plugins
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-10-10 13:21:52 +00:00
|
|
|
DEPENDS:=+uclibcxx
|
2007-03-17 12:38:18 +00:00
|
|
|
TITLE:=plugins for Nagios checks
|
|
|
|
URL:=http://nagiosplug.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--without-mysql \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
|
|
|
--with-ping-command="/bin/ping -c %d %s" \
|
|
|
|
--with-ps-command="/bin/ps -Aopid" \
|
2007-06-11 08:01:08 +00:00
|
|
|
--with-ps-cols="6" \
|
|
|
|
--with-ps-format="%d %s %d %s %s %n" \
|
|
|
|
--with-ps-varlist="&procuid$(comma)&procpid$(comma)&procvsz$(comma)procstat$(comma)procprog$(comma)&pos" \
|
2007-03-17 12:38:18 +00:00
|
|
|
--with-uptime-command="/usr/bin/uptime" \
|
|
|
|
--with-ssh-command="/usr/bin/ssh" \
|
|
|
|
--with-nslookup-command="/usr/bin/nslookup" \
|
|
|
|
, \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default,\
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nagios-plugins/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/libexec/nagios
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/libexec/nagios/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nagios-plugins))
|