14a538eac0
- the new code in check_user wants utmpx so those parts are reverted to the old popen("/usr/bin/who",...) code for now.
124 lines
2.8 KiB
Makefile
124 lines
2.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.33 2012/06/28 23:10:48 sthen 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.16
|
|
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
|
|
|
|
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/}
|
|
|
|
BUILD_DEPENDS= games/qstat \
|
|
net/fping
|
|
|
|
FAKE_FLAGS= setuid_root_mode=0555
|
|
|
|
USE_LIBTOOL= Yes
|
|
CONFIGURE_STYLE= autoconf
|
|
AUTOCONF_VERSION= 2.67
|
|
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-2.4 ldap-2.4 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} com_err crypto pq ssl
|
|
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 <bsd.port.mk>
|