poco: moved to github
[packages.git] / admin / nrpe / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nrpe
11 PKG_VERSION:=2.12
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/nagios
16 PKG_MD5SUM:=b2d75e2962f1e3151ef58794d60c9e97
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/nrpe
21   SECTION:=admin
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
26 endef
27
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.
35 endef
36
37 CONFIGURE_ARGS += \
38         --with-ssl="$(STAGING_DIR)/usr" \
39         --with-ssl-lib="$(STAGING_DIR)/usr/lib"
40
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)
48 endef
49
50 define Package/nrpe/conffiles
51 /etc/nrpe.cfg
52 endef
53
54 $(eval $(call RequireCommand,openssl, \
55         $(PKG_NAME) requires openssl installed on the host-system. \
56 ))
57
58 $(eval $(call BuildPackage,nrpe))
59