nico 0d71e3664b [packages] nagios-plugins: fix segfault in check_ping command (closes: #5015)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17851 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-04 13:12:36 +00:00

56 lines
1.4 KiB
Makefile

#
# Copyright (C) 2008-2009 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:=nagios-plugins
PKG_VERSION:=1.4.12
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/nagiosplug
PKG_MD5SUM:=af68d00bbe2c39de02803d23e5eecca3
include $(INCLUDE_DIR)/package.mk
comma:= ,
define Package/nagios-plugins
SECTION:=net
CATEGORY:=Network
SUBMENU:=Monitoring
DEPENDS:=+uclibcxx +libpq
TITLE:=plugins for Nagios checks
URL:=http://nagiosplug.sourceforge.net/
endef
CONFIGURE_ARGS += \
--without-mysql \
--with-openssl="$(STAGING_DIR)/usr" \
--with-ping-command="/bin/ping -w %d -c %d %s" \
--with-ping6-command="/bin/ping6 -w %d -c %d %s" \
--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"
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
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))