# |
# |
# Copyright (C) 2008-2010 OpenWrt.org |
# Copyright (C) 2008-2010 OpenWrt.org |
# |
# |
# This is free software, licensed under the GNU General Public License v2. |
# This is free software, licensed under the GNU General Public License v2. |
# See /LICENSE for more information. |
# See /LICENSE for more information. |
# |
# |
|
|
include $(TOPDIR)/rules.mk |
include $(TOPDIR)/rules.mk |
|
|
PKG_NAME:=nagios-plugins |
PKG_NAME:=nagios-plugins |
PKG_VERSION:=1.4.14 |
PKG_VERSION:=1.4.14 |
PKG_RELEASE:=2 |
PKG_RELEASE:=3 |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
PKG_SOURCE_URL:=@SF/nagiosplug |
PKG_SOURCE_URL:=@SF/nagiosplug |
PKG_MD5SUM:=a1835a48a777863ed2583de3c82446a9 |
PKG_MD5SUM:=a1835a48a777863ed2583de3c82446a9 |
|
|
PKG_FIXUP:=patch-libtool |
PKG_FIXUP:=patch-libtool |
PKG_INSTALL:=1 |
PKG_INSTALL:=1 |
|
|
include $(INCLUDE_DIR)/uclibc++.mk |
include $(INCLUDE_DIR)/uclibc++.mk |
include $(INCLUDE_DIR)/package.mk |
include $(INCLUDE_DIR)/package.mk |
|
|
comma:= , |
comma:= , |
|
|
define Package/nagios-plugins |
define Package/nagios-plugins |
SECTION:=admin |
SECTION:=admin |
CATEGORY:=Administration |
CATEGORY:=Administration |
DEPENDS:=+uclibcxx +libpq +libopenssl +libradiusclient-ng +libopenldap |
DEPENDS:=$(CXX_DEPENDS) +libpq +libopenssl +libradiusclient-ng +libopenldap |
TITLE:=plugins for Nagios checks |
TITLE:=plugins for Nagios checks |
URL:=http://nagiosplug.sourceforge.net/ |
URL:=http://nagiosplug.sourceforge.net/ |
endef |
endef |
|
|
CONFIGURE_ARGS += \ |
CONFIGURE_ARGS += \ |
--without-mysql \ |
--without-mysql \ |
--with-openssl="$(STAGING_DIR)/usr" \ |
--with-openssl="$(STAGING_DIR)/usr" \ |
--with-ping-command="/bin/ping -w %d -c %d %s" \ |
--with-ping-command="/bin/ping -w %d -c %d %s" \ |
--with-ping6-command="/bin/ping6 -w %d -c %d %s" \ |
--with-ping6-command="/bin/ping6 -w %d -c %d %s" \ |
--with-ps-command="/bin/ps -Aopid" \ |
--with-ps-command="/bin/ps w" \ |
--with-ps-cols="6" \ |
--with-ps-cols="6" \ |
--with-ps-format="%d %s %d %s %s %n" \ |
--with-ps-format="%d %s %d %s %s %n" \ |
--with-ps-varlist="&procuid$(comma)&procpid$(comma)&procvsz$(comma)procstat$(comma)procprog$(comma)&pos" \ |
--with-ps-varlist="&procpid$(comma)&procuid$(comma)&procvsz$(comma)procstat$(comma)procprog$(comma)&pos" \ |
--with-uptime-command="/usr/bin/uptime" \ |
--with-uptime-command="/usr/bin/uptime" \ |
--with-ssh-command="/usr/bin/ssh" \ |
--with-ssh-command="/usr/bin/ssh" \ |
--with-nslookup-command="/usr/bin/nslookup" |
--with-nslookup-command="/usr/bin/nslookup" |
|
|
define Package/nagios-plugins/install |
define Package/nagios-plugins/install |
$(INSTALL_DIR) $(1)/usr/libexec/nagios |
$(INSTALL_DIR) $(1)/usr/libexec/nagios |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/libexec/nagios/ |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/libexec/nagios/ |
endef |
endef |
|
|
$(eval $(call BuildPackage,nagios-plugins)) |
$(eval $(call BuildPackage,nagios-plugins)) |
|
|