2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/nagios
16 PKG_MD5SUM
:=b2d75e2962f1e3151ef58794d60c9e97
18 include $(INCLUDE_DIR
)/package.mk
22 CATEGORY
:=Administration
23 DEPENDS
:=+libopenssl
+libwrap
24 TITLE
:=Daemon to execute Nagios
check commands on remote hosts
25 URL
:=http
://www.nagios.org
/download
28 define Package
/nrpe
/description
29 The NRPE addon is designed to allow you to execute Nagios plugins on
30 remote Linux
/Unix machines. The main reason for doing this is to allow
31 Nagios to monitor
"local" resources
(like CPU load
, memory usage
, etc.
)
32 on remote machines. Since these public resources are not usually
33 exposed to external machines
, an agent like NRPE must be installed on
34 the remote Linux
/Unix machines.
38 --with-ssl
="$(STAGING_DIR)/usr" \
39 --with-ssl-lib
="$(STAGING_DIR)/usr/lib"
41 define Package
/nrpe
/install
42 $(INSTALL_DIR
) $(1)/usr
/sbin
43 $(INSTALL_DIR
) $(1)/etc
44 $(INSTALL_DIR
) $(1)/etc
/init.d
45 $(INSTALL_DATA
) .
/files
/nrpe.cfg
$(1)/etc
/nrpe.cfg
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/nrpe
$(1)/usr
/sbin
47 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
50 define Package
/nrpe
/conffiles
54 $(eval
$(call RequireCommand
,openssl
, \
55 $(PKG_NAME
) requires openssl installed on the host-system. \
58 $(eval
$(call BuildPackage
,nrpe
))