0905a60e31107321c97080622f8ee4d157c992de
[openwrt/svn-archive/archive.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.9
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nagiosplug
17 PKG_MD5SUM:=6e617e95cadeedd92870cdbd2f13726c
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 comma:= ,
25
26 define Package/nagios-plugins
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=uclibcxx
30 TITLE:=plugins for Nagios checks
31 URL:=http://nagiosplug.sourceforge.net/
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --without-mysql \
37 --with-openssl="$(STAGING_DIR)/usr" \
38 --with-ping-command="/bin/ping -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 )
48 endef
49
50 define Build/Compile
51 $(call Build/Compile/Default,\
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 all install \
54 )
55 endef
56
57 define Package/nagios-plugins/install
58 $(INSTALL_DIR) $(1)/usr/libexec/nagios
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/libexec/nagios/
60 endef
61
62 $(eval $(call BuildPackage,nagios-plugins))