Added package libpfm (note this package also requires perfmon2 be patched into the...
[openwrt/svn-archive/archive.git] / net / nagios-plugins / Makefile
1 #
2 # Copyright (C) 2008 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.12
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nagiosplug
17 PKG_MD5SUM:=af68d00bbe2c39de02803d23e5eecca3
18
19 include $(INCLUDE_DIR)/package.mk
20
21 comma:= ,
22
23 define Package/nagios-plugins
24 SECTION:=net
25 CATEGORY:=Network
26 SUBMENU:=Monitoring
27 DEPENDS:=+uclibcxx +libpq
28 TITLE:=plugins for Nagios checks
29 URL:=http://nagiosplug.sourceforge.net/
30 endef
31
32 CONFIGURE_ARGS += \
33 --without-mysql \
34 --with-openssl="$(STAGING_DIR)/usr" \
35 --with-ping-command="/bin/ping -c %d %s" \
36 --with-ps-command="/bin/ps -Aopid" \
37 --with-ps-cols="6" \
38 --with-ps-format="%d %s %d %s %s %n" \
39 --with-ps-varlist="&procuid$(comma)&procpid$(comma)&procvsz$(comma)procstat$(comma)procprog$(comma)&pos" \
40 --with-uptime-command="/usr/bin/uptime" \
41 --with-ssh-command="/usr/bin/ssh" \
42 --with-nslookup-command="/usr/bin/nslookup"
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Package/nagios-plugins/install
51 $(INSTALL_DIR) $(1)/usr/libexec/nagios
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/libexec/nagios/
53 endef
54
55 $(eval $(call BuildPackage,nagios-plugins))