2008-08-02 03:19:51 +00:00
|
|
|
#
|
2009-10-04 13:12:36 +00:00
|
|
|
# Copyright (C) 2008-2009 OpenWrt.org
|
2007-03-17 12:38:18 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nagios-plugins
|
2009-10-05 19:34:32 +00:00
|
|
|
PKG_VERSION:=1.4.14
|
|
|
|
PKG_RELEASE:=1
|
2007-03-17 12:38:18 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/nagiosplug
|
2009-10-05 19:34:32 +00:00
|
|
|
PKG_MD5SUM:=a1835a48a777863ed2583de3c82446a9
|
2007-03-17 12:38:18 +00:00
|
|
|
|
|
|
|
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
|
2008-03-06 23:45:08 +00:00
|
|
|
SUBMENU:=Monitoring
|
2008-08-02 03:19:51 +00:00
|
|
|
DEPENDS:=+uclibcxx +libpq
|
2007-03-17 12:38:18 +00:00
|
|
|
TITLE:=plugins for Nagios checks
|
|
|
|
URL:=http://nagiosplug.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2008-03-06 23:45:08 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-mysql \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
2009-10-04 13:12:36 +00:00
|
|
|
--with-ping-command="/bin/ping -w %d -c %d %s" \
|
|
|
|
--with-ping6-command="/bin/ping6 -w %d -c %d %s" \
|
2008-03-06 23:45:08 +00:00
|
|
|
--with-ps-command="/bin/ps -Aopid" \
|
|
|
|
--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" \
|
|
|
|
--with-uptime-command="/usr/bin/uptime" \
|
|
|
|
--with-ssh-command="/usr/bin/ssh" \
|
|
|
|
--with-nslookup-command="/usr/bin/nslookup"
|
2007-03-17 12:38:18 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
2008-03-06 23:45:08 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2007-03-17 12:38:18 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2008-03-06 23:45:08 +00:00
|
|
|
all install
|
2007-03-17 12:38:18 +00:00
|
|
|
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))
|