2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=nagios-plugins
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/nagiosplug
16 PKG_MD5SUM
:=af68d00bbe2c39de02803d23e5eecca3
18 include $(INCLUDE_DIR
)/package.mk
22 define Package
/nagios-plugins
26 DEPENDS
:=+uclibcxx
+libpq
27 TITLE
:=plugins for Nagios checks
28 URL
:=http
://nagiosplug.sourceforge.net
/
33 --with-openssl
="$(STAGING_DIR)/usr" \
34 --with-ping-command
="/bin/ping -w %d -c %d %s" \
35 --with-ping6-command
="/bin/ping6 -w %d -c %d %s" \
36 --with-ps-command
="/bin/ps -Aopid" \
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"
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Package
/nagios-plugins
/install
51 $(INSTALL_DIR
) $(1)/usr
/libexec
/nagios
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/libexec
/nagios
/
55 $(eval
$(call BuildPackage
,nagios-plugins
))