Upgrade to 1.4.11 and fix compilation failure on check_pgsql
[packages.git] / net / nagios-plugins / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nagios-plugins
12 PKG_VERSION:=1.4.11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nagiosplug
17 PKG_MD5SUM:=042783a2180a6987e0b403870b3d01f7
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 comma:= ,
24
25 define Package/nagios-plugins
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+uclibcxx
29   TITLE:=plugins for Nagios checks
30   URL:=http://nagiosplug.sourceforge.net/
31 endef
32
33 define Build/Configure
34         $(call Build/Configure/Default, \
35                 --without-mysql \
36                 --with-openssl="$(STAGING_DIR)/usr" \
37                 --with-ping-command="/bin/ping -c %d %s" \
38                 --with-ps-command="/bin/ps -Aopid" \
39                 --with-ps-cols="6" \
40                 --with-ps-format="%d %s %d %s %s %n" \
41                 --with-ps-varlist="&procuid$(comma)&procpid$(comma)&procvsz$(comma)procstat$(comma)procprog$(comma)&pos" \
42                 --with-uptime-command="/usr/bin/uptime" \
43                 --with-ssh-command="/usr/bin/ssh" \
44                 --with-nslookup-command="/usr/bin/nslookup" \
45                 , \
46         )
47 endef
48
49 define Build/Compile
50         $(call Build/Compile/Default,\
51                 DESTDIR="$(PKG_INSTALL_DIR)" \
52                 all install \
53         )
54 endef
55
56 define Package/nagios-plugins/install
57         $(INSTALL_DIR) $(1)/usr/libexec/nagios
58         $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/libexec/nagios/
59 endef
60
61 $(eval $(call BuildPackage,nagios-plugins))