#
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
define Package/nagios-plugins
SECTION:=net
CATEGORY:=Network
+ SUBMENU:=Monitoring
DEPENDS:=+uclibcxx
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" \
- --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" \
- , \
- )
-endef
+CONFIGURE_ARGS += \
+ --without-mysql \
+ --with-openssl="$(STAGING_DIR)/usr" \
+ --with-ping-command="/bin/ping -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
- $(call Build/Compile/Default,\
+ $(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
- all install \
- )
+ all install
endef
define Package/nagios-plugins/install
#
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2008 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
-PKG_VERSION:=2.9
+PKG_VERSION:=2.10
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/nagios
-PKG_MD5SUM:=b6e3a21c91edb063c00712c6001e15ec
+PKG_MD5SUM:=8c3a29e138f2ff8c8abbd3dd8a40c4b6
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
define Package/nagios
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+libpthread +microperl
+ SUBMENU:=Monitoring
+ DEPENDS:=+libpthread +microperl +libltdl
TITLE:=service and network monitoring program
URL:=http://www.nagios.org/
endef
service and network monitoring program
endef
-define Package/send-nagios/conffiles
-/etc/send_nagios.cfg
-endef
-
EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
-define Build/Configure
- $(call Build/Configure/Default,\
- --with-nagios-user="root" \
- --with-nagios-group="root", \
- CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
- LIBS="-lnotimpl" \
- )
-endef
+CONFIGURE_ARGS += \
+ --with-nagios-user="root" \
+ --with-nagios-group="root" \
+ --sysconfdir="/etc/nagios" \
+ --without-gd-lib \
+ --without-gd-inc \
+ CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
+
+CONFIGURE_VARS += \
+ LIBS="-lnotimpl"
define Build/Compile
- $(call Build/Compile/Default,\
+ $(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
INSTALL_OPTS="" \
- all install install-config \
- )
+ all install install-config
endef
define Package/nagios/install
- $(CP) $(PKG_INSTALL_DIR) $(1)/
+ $(INSTALL_DIR) $(1)/etc/nagios
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/nagios/* $(1)/etc/nagios/
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{nagios,nagiostats} $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/usr/share
+ $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
endef
$(eval $(call BuildPackage,nagios))