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