2010-01-17 13:02:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.22 2010/01/17 12:02:33 wiz Exp $
|
2006-02-18 18:19:20 +01:00
|
|
|
#
|
|
|
|
|
2010-01-17 13:02:03 +01:00
|
|
|
PKGREVISION= 1
|
2006-02-18 18:19:20 +01:00
|
|
|
CATEGORIES= net sysutils
|
|
|
|
|
2009-04-11 19:24:00 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-02-22 20:26:05 +01:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/nagiosplug/
|
2006-02-18 18:19:20 +01:00
|
|
|
COMMENT= Nagios plugins
|
|
|
|
|
|
|
|
.include "../../net/nagios-plugins/Makefile.common"
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2006-10-20 10:54:44 +02:00
|
|
|
USE_TOOLS+= perl:run
|
|
|
|
|
2009-11-15 05:47:41 +01:00
|
|
|
PKG_GROUPS+= ${NAGIOS_GROUP}
|
2009-05-26 15:32:29 +02:00
|
|
|
|
2006-08-17 16:20:14 +02:00
|
|
|
CONFIGURE_ARGS+= --without-pgsql --without-mysql \
|
|
|
|
--without-smbclient-command --without-snmpget-command \
|
|
|
|
--without-snmpgetnext-command --without-fping-command
|
|
|
|
|
2007-11-26 23:14:27 +01:00
|
|
|
SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_icmp ${REAL_ROOT_USER} ${NAGIOS_GROUP} 4550
|
|
|
|
|
2009-01-13 18:11:33 +01:00
|
|
|
PLIST_VARS+= linux
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
PLIST.linux= yes
|
|
|
|
.endif
|
|
|
|
|
2006-02-18 18:19:20 +01:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2007-03-30 04:37:11 +02:00
|
|
|
CONFIGURE_ARGS+= --with-df-command="/bin/df -Pklt nokernfs,procfs,fdesc"
|
2006-02-18 18:19:20 +01:00
|
|
|
.endif
|
|
|
|
|
2007-03-30 04:37:11 +02:00
|
|
|
# required to enable large file support on Solaris
|
2007-03-30 07:52:37 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
CPPFLAGS_LFS!= getconf LFS_CFLAGS
|
|
|
|
MAKE_ENV+= CPPFLAGS_LFS=${CPPFLAGS_LFS:Q}
|
|
|
|
.endif
|
2007-11-29 11:03:19 +01:00
|
|
|
LIBS.SunOS+= -lm
|
2007-03-30 04:37:11 +02:00
|
|
|
|
2006-02-18 18:19:20 +01:00
|
|
|
.if !exists(/usr/bin/ssh)
|
|
|
|
DEPENDS+= {ssh{,6}-[0-9]*,openssh-[0-9]*}:../../security/openssh
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|