packages/nagios: fix whitespaces
[packages.git] / admin / nagios-plugins / Makefile
1 #
2 # Copyright (C) 2008-2010 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:=nagios-plugins
11 PKG_VERSION:=1.4.14
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/nagiosplug
16 PKG_MD5SUM:=a1835a48a777863ed2583de3c82446a9
17
18 PKG_FIXUP:=patch-libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/uclibc++.mk
22 include $(INCLUDE_DIR)/package.mk
23
24 comma:= ,
25
26 define Package/nagios-plugins
27   SECTION:=admin
28   CATEGORY:=Administration
29   DEPENDS:=$(CXX_DEPENDS) +libpq +libopenssl +libradiusclient-ng +libopenldap
30   TITLE:=plugins for Nagios checks
31   URL:=http://nagiosplug.sourceforge.net/
32 endef
33
34 CONFIGURE_ARGS += \
35         --without-mysql \
36         --with-openssl="$(STAGING_DIR)/usr" \
37         --with-ping-command="/bin/ping -w %d -c %d %s" \
38         --with-ping6-command="/bin/ping6 -w %d -c %d %s" \
39         --with-ps-command="/bin/ps -Aopid" \
40         --with-ps-cols="6" \
41         --with-ps-format="%d %s %d %s %s %n" \
42         --with-ps-varlist="&procuid$(comma)&procpid$(comma)&procvsz$(comma)procstat$(comma)procprog$(comma)&pos" \
43         --with-uptime-command="/usr/bin/uptime" \
44         --with-ssh-command="/usr/bin/ssh" \
45         --with-nslookup-command="/usr/bin/nslookup"
46
47 define Package/nagios-plugins/install
48         $(INSTALL_DIR) $(1)/usr/libexec/nagios
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/libexec/nagios/
50 endef
51
52 $(eval $(call BuildPackage,nagios-plugins))