5be7f8ae04
okay pvalchev@
119 lines
3.0 KiB
Makefile
119 lines
3.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.3 2005/08/13 18:20:23 espie Exp $
|
|
|
|
COMMENT= "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.1
|
|
DISTNAME= nagios-plugins-${V}
|
|
PKGNAME= nagios-plugins-${V}
|
|
PKGNAME-fping= nagios-plugins-fping-${V}p0
|
|
PKGNAME-game= nagios-plugins-game-${V}p0
|
|
PKGNAME-ldap= nagios-plugins-ldap-${V}p0
|
|
PKGNAME-mysql= nagios-plugins-mysql-${V}p0
|
|
PKGNAME-ntp= nagios-plugins-ntp-${V}p0
|
|
PKGNAME-pgsql= nagios-plugins-pgsql-${V}p0
|
|
PKGNAME-samba= nagios-plugins-samba-${V}p0
|
|
PKGNAME-snmp= nagios-plugins-snmp-${V}p0
|
|
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/}
|
|
|
|
BUILD_DEPENDS= qstat::games/qstat \
|
|
fping::net/fping
|
|
|
|
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-nagios-user=_nagios \
|
|
--with-nagios-group=_nagios \
|
|
--with-openssl=/usr \
|
|
|
|
PSEUDO_FLAVORS= no_db no_ntp no_samba no_snmp
|
|
FLAVOR?=
|
|
|
|
MULTI_PACKAGES= -fping -game
|
|
SUBPACKAGE?=
|
|
|
|
.if ! ${FLAVOR:L:Mno_db}
|
|
MULTI_PACKAGES+=-ldap -mysql -pgsql
|
|
BUILD_DEPENDS+= :mysql-client-*:databases/mysql \
|
|
:openldap-client-*:databases/openldap \
|
|
:postgresql-client-*:databases/postgresql
|
|
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} \
|
|
--with-pgsql=${LOCALBASE}
|
|
.else
|
|
CONFIGURE_ARGS+=--without-mysql --without-pgsql
|
|
.endif
|
|
|
|
.if ! ${FLAVOR:L:Mno_ntp}
|
|
MULTI_PACKAGES+=-ntp
|
|
BUILD_DEPENDS+= ntpdate::net/ntp
|
|
.endif
|
|
|
|
.if ! ${FLAVOR:L:Mno_samba}
|
|
MULTI_PACKAGES+=-samba
|
|
BUILD_DEPENDS+= smbclient::net/samba
|
|
.endif
|
|
|
|
.if ! ${FLAVOR:L:Mno_snmp}
|
|
MULTI_PACKAGES+=-snmp
|
|
BUILD_DEPENDS+= ::net/p5-Net-SNMP \
|
|
snmpget::net/net-snmp
|
|
.endif
|
|
|
|
.if defined(PACKAGING)
|
|
WANTLIB= c
|
|
. if ${SUBPACKAGE} == "-fping"
|
|
RUN_DEPENDS= fping::net/fping
|
|
. elif ${SUBPACKAGE} == "-game"
|
|
RUN_DEPENDS= qstat::games/qstat
|
|
. elif ${SUBPACKAGE} == "-ldap"
|
|
LIB_DEPENDS= lber,ldap:openldap-client-*:databases/openldap
|
|
. elif ${SUBPACKAGE} == "-mysql"
|
|
LIB_DEPENDS= mysqlclient:mysql-client-*:databases/mysql
|
|
. elif ${SUBPACKAGE} == "-ntp"
|
|
WANTLIB=
|
|
RUN_DEPENDS= ntpdate::net/ntp
|
|
. elif ${SUBPACKAGE} == "-pgsql"
|
|
WANTLIB+= crypto
|
|
LIB_DEPENDS= pq:postgresql-client-*:databases/postgresql
|
|
. elif ${SUBPACKAGE} == "-samba"
|
|
WANTLIB=
|
|
RUN_DEPENDS= smbclient::net/samba
|
|
. elif ${SUBPACKAGE} == "-snmp"
|
|
RUN_DEPENDS= snmpget::net/net-snmp \
|
|
::net/p5-Net-SNMP
|
|
. else
|
|
WANTLIB+= crypto ssl
|
|
. endif
|
|
.else
|
|
MODULES= gettext
|
|
.endif
|
|
|
|
NO_REGRESS= lots of broken tests
|
|
|
|
.include <bsd.port.mk>
|