2014-03-27 07:05:51 +00:00
|
|
|
#
|
2011-11-16 20:02:41 +00:00
|
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
2007-05-17 22:46:16 +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
|
2008-03-06 23:45:08 +00:00
|
|
|
PKG_VERSION:=2.10
|
2011-11-16 20:02:41 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-05-17 22:46:16 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/nagios
|
2008-03-06 23:45:08 +00:00
|
|
|
PKG_MD5SUM:=8c3a29e138f2ff8c8abbd3dd8a40c4b6
|
2007-05-17 22:46:16 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nagios
|
2011-03-12 00:54:26 +00:00
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
2008-03-06 23:45:08 +00:00
|
|
|
DEPENDS:=+libpthread +microperl +libltdl
|
2007-05-17 22:46:16 +00:00
|
|
|
TITLE:=service and network monitoring program
|
|
|
|
URL:=http://www.nagios.org/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/nagios/description
|
|
|
|
service and network monitoring program
|
|
|
|
endef
|
|
|
|
|
2009-04-29 12:56:17 +00:00
|
|
|
EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
|
2007-09-05 13:38:00 +00:00
|
|
|
|
2012-06-13 23:30:21 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_lib_gd_gdImagePng_1=no \
|
|
|
|
ac_cv_lib_gd_gdImagePng_2=no \
|
|
|
|
ac_cv_lib_gd_gdImagePng_3=no \
|
|
|
|
ac_cv_lib_gd_gdImagePng_4=no
|
|
|
|
|
2008-03-06 23:45:08 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-nagios-user="root" \
|
|
|
|
--with-nagios-group="root" \
|
|
|
|
--sysconfdir="/etc/nagios" \
|
|
|
|
--without-gd-lib \
|
|
|
|
--without-gd-inc \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
|
2014-03-27 07:05:51 +00:00
|
|
|
|
2007-05-17 22:46:16 +00:00
|
|
|
define Build/Compile
|
2008-03-06 23:45:08 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2007-05-17 22:46:16 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
INSTALL_OPTS="" \
|
2008-03-19 02:14:14 +00:00
|
|
|
STRIP=: \
|
2008-03-06 23:45:08 +00:00
|
|
|
all install install-config
|
2007-05-17 22:46:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nagios/install
|
2008-03-06 23:45:08 +00:00
|
|
|
$(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/
|
2007-05-17 22:46:16 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/nagios/conffiles
|
|
|
|
/etc/nagios/cgi.cfg
|
|
|
|
/etc/nagios/commands.cfg
|
|
|
|
/etc/nagios/localhost.cfg
|
|
|
|
/etc/nagios/nagios.cfg
|
|
|
|
/etc/nagios/resource.cfg
|
|
|
|
endef
|
|
|
|
|
2007-05-17 22:46:16 +00:00
|
|
|
$(eval $(call BuildPackage,nagios))
|