openbsd-ports/net/nagios/plugins/Makefile

128 lines
2.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.21 2007/10/02 19:09:44 jasper 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
2007-09-30 06:37:07 -04:00
V= 1.4.10
2005-08-07 06:47:00 -04:00
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= Nikolay Sturm <sturm@openbsd.org>
# GPL
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/}
2006-11-20 16:18:15 -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
2006-11-20 16:18:15 -05:00
BUILD_DEPENDS+= ::net/ntp
.endif
.if ! ${FLAVOR:L:Mno_samba}
MULTI_PACKAGES+=-samba
2006-11-20 16:18:15 -05:00
BUILD_DEPENDS+= ::net/samba
.endif
.if ! ${FLAVOR:L:Mno_snmp}
MULTI_PACKAGES+=-snmp
BUILD_DEPENDS+= ::net/p5-Net-SNMP \
2006-11-20 16:18:15 -05:00
::net/net-snmp
.endif
WANTLIB= c
2006-11-25 20:29:12 -05:00
RUN_DEPENDS-fping= ::net/fping
RUN_DEPENDS-game= ::games/qstat
WANTLIB-ldap= ${WANTLIB} asn1 com_err crypto gssapi krb5 sasl2 ssl
LIB_DEPENDS-ldap= lber,ldap:openldap-client-*:databases/openldap \
${LIB_DEPENDS}
2006-11-25 20:29:12 -05:00
WANTLIB-mysql= ${WANTLIB} crypto m ssl z
LIB_DEPENDS-mysql= mysqlclient:mysql-client-*:databases/mysql \
${LIB_DEPENDS}
2006-11-25 20:29:12 -05:00
WANTLIB-ntp= ${WANTLIB} m
RUN_DEPENDS-ntp= ::net/ntp
WANTLIB-pgsql= ${WANTLIB} crypto
LIB_DEPENDS-pgsql= pq:postgresql-client-*:databases/postgresql \
${LIB_DEPENDS}
2006-11-25 20:29:12 -05:00
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
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
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nagios-plugins
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD \
${PREFIX}/share/doc/nagios-plugins
.include <bsd.port.mk>