# $OpenBSD: Makefile,v 1.31 2011/06/02 13:41:40 ajacoutot 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 DISTNAME= nagios-plugins-${V} 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} PKGNAME-snmp= nagios-plugins-snmp-${V} CATEGORIES= net REVISION-main= 1 HOMEPAGE= http://nagiosplug.sourceforge.net/ MAINTAINER= Stuart Henderson # 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/} 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 \ --without-gnutls PSEUDO_FLAVORS= no_db no_ntp no_samba no_snmp FLAVOR?= 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 BUILD_DEPENDS+= net/ntp .endif .if ! ${FLAVOR:L:Mno_samba} MULTI_PACKAGES+=-samba BUILD_DEPENDS+= net/samba .endif .if ! ${FLAVOR:L:Mno_snmp} MULTI_PACKAGES+=-snmp BUILD_DEPENDS+= net/p5-Net-SNMP \ net/net-snmp .endif WANTLIB= c pthread RUN_DEPENDS-fping= net/fping RUN_DEPENDS-game= games/qstat WANTLIB-ldap+= ${WANTLIB} asn1 com_err crypto gssapi krb5 WANTLIB-ldap+= lber ldap sasl2 ssl LIB_DEPENDS-ldap= databases/openldap \ ${LIB_DEPENDS} WANTLIB-mysql= ${WANTLIB} crypto m mysqlclient ssl z LIB_DEPENDS-mysql= databases/mysql \ ${LIB_DEPENDS} WANTLIB-ntp= ${WANTLIB} m RUN_DEPENDS-ntp= net/ntp WANTLIB-pgsql= ${WANTLIB} crypto pq LIB_DEPENDS-pgsql= databases/postgresql \ ${LIB_DEPENDS} LIB_DEPENDS-samba= WANTLIB-samba= RUN_DEPENDS-samba= net/samba RUN_DEPENDS-snmp= net/net-snmp \ net/p5-Net-SNMP WANTLIB-main= ${WANTLIB} crypto m ssl MODULES= devel/gettext # many broken tests, but... REGRESS_IS_INTERACTIVE=Yes .include