openbsd-ports/net/nagios/plugins/Makefile

126 lines
2.7 KiB
Makefile
Raw Normal View History

2010-11-19 17:31:32 -05:00
# $OpenBSD: Makefile,v 1.30 2010/11/19 22:31:35 espie Exp $
COMMENT-main= nagios base plugins
COMMENT-fping= fping plugin
COMMENT-game= gameserver plugin
COMMENT-ldap= ldap plugin
COMMENT-mysql= mysql plugin
COMMENT-ntp= ntp plugin
COMMENT-pgsql= postgresql plugin
COMMENT-samba= samba plugin
COMMENT-snmp= plugins using snmp
V= 1.4.15
2005-08-07 06:47:00 -04:00
DISTNAME= nagios-plugins-${V}
2010-07-13 17:08:00 -04:00
PKGNAME-main= nagios-plugins-${V}
PKGNAME-fping= nagios-plugins-fping-${V}
PKGNAME-game= nagios-plugins-game-${V}
PKGNAME-ldap= nagios-plugins-ldap-${V}
PKGNAME-mysql= nagios-plugins-mysql-${V}
PKGNAME-ntp= nagios-plugins-ntp-${V}
PKGNAME-pgsql= nagios-plugins-pgsql-${V}
PKGNAME-samba= nagios-plugins-samba-${V}
2010-07-13 17:08:00 -04:00
PKGNAME-snmp= nagios-plugins-snmp-${V}
CATEGORIES= net
REVISION-main= 0
HOMEPAGE= http://nagiosplug.sourceforge.net/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# see below for WANTLIB
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagiosplug/}
2010-11-19 17:31:32 -05:00
BUILD_DEPENDS= games/qstat \
net/fping
FAKE_FLAGS= setuid_root_mode=0555
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= PATH_TO_FPING=${LOCALBASE}/sbin/fping \
PATH_TO_NTPDATE=${LOCALBASE}/sbin/ntpdate \
PATH_TO_NTPDC=${LOCALBASE}/sbin/ntpdc \
PATH_TO_NTPQ=${LOCALBASE}/sbin/ntpq
CONFIGURE_ARGS+=--libexecdir=${PREFIX}/libexec/nagios \
--with-cgiurl=/cgi-bin/nagios \
--with-openssl=/usr \
2006-11-11 12:17:43 -05:00
--without-gnutls
PSEUDO_FLAVORS= no_db no_ntp no_samba no_snmp
FLAVOR?=
2006-11-25 20:29:12 -05:00
MULTI_PACKAGES= -main -fping -game
.if ! ${FLAVOR:L:Mno_db}
MULTI_PACKAGES+=-ldap -mysql -pgsql
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} \
--with-pgsql=${LOCALBASE}
CFLAGS+= -DLDAP_DEPRECATED
.else
CONFIGURE_ARGS+=--without-mysql --without-pgsql
.endif
.if ! ${FLAVOR:L:Mno_ntp}
MULTI_PACKAGES+=-ntp
2010-11-19 17:31:32 -05:00
BUILD_DEPENDS+= net/ntp
.endif
.if ! ${FLAVOR:L:Mno_samba}
MULTI_PACKAGES+=-samba
2010-11-19 17:31:32 -05:00
BUILD_DEPENDS+= net/samba
.endif
.if ! ${FLAVOR:L:Mno_snmp}
MULTI_PACKAGES+=-snmp
2010-11-19 17:31:32 -05:00
BUILD_DEPENDS+= net/p5-Net-SNMP \
net/net-snmp
.endif
WANTLIB= c pthread
2006-11-25 20:29:12 -05:00
2010-11-19 17:31:32 -05:00
RUN_DEPENDS-fping= net/fping
2006-11-25 20:29:12 -05:00
2010-11-19 17:31:32 -05:00
RUN_DEPENDS-game= games/qstat
2006-11-25 20:29:12 -05:00
WANTLIB-ldap+= ${WANTLIB} asn1 com_err crypto gssapi krb5
WANTLIB-ldap+= lber ldap sasl2 ssl
2010-11-19 17:31:32 -05:00
LIB_DEPENDS-ldap= databases/openldap \
${LIB_DEPENDS}
2006-11-25 20:29:12 -05:00
WANTLIB-mysql= ${WANTLIB} crypto m mysqlclient ssl z
2010-11-19 17:31:32 -05:00
LIB_DEPENDS-mysql= databases/mysql \
${LIB_DEPENDS}
2006-11-25 20:29:12 -05:00
WANTLIB-ntp= ${WANTLIB} m
2010-11-19 17:31:32 -05:00
RUN_DEPENDS-ntp= net/ntp
2006-11-25 20:29:12 -05:00
WANTLIB-pgsql= ${WANTLIB} crypto pq
2010-11-19 17:31:32 -05:00
LIB_DEPENDS-pgsql= databases/postgresql \
${LIB_DEPENDS}
2006-11-25 20:29:12 -05:00
LIB_DEPENDS-samba=
WANTLIB-samba=
2010-11-19 17:31:32 -05:00
RUN_DEPENDS-samba= net/samba
2006-11-25 20:29:12 -05:00
2010-11-19 17:31:32 -05:00
RUN_DEPENDS-snmp= net/net-snmp \
net/p5-Net-SNMP
2006-11-25 20:29:12 -05:00
WANTLIB-main= ${WANTLIB} crypto m ssl
2006-11-25 20:29:12 -05:00
MODULES= devel/gettext
2006-11-11 12:17:43 -05:00
# many broken tests, but...
REGRESS_IS_INTERACTIVE=Yes
.include <bsd.port.mk>