2002-05-29 06:35:18 +00:00
|
|
|
# New ports collection makefile for: nagios
|
|
|
|
# Date created: 19 May 2002
|
|
|
|
# Whom: Blaz Zupan <blaz@si.FreeBSD.org>
|
2000-07-12 18:43:32 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-05-29 06:35:18 +00:00
|
|
|
PORTNAME= nagios
|
2003-06-08 12:55:22 +00:00
|
|
|
PORTVERSION= 1.1
|
2003-08-02 15:02:05 +00:00
|
|
|
PORTREVISION= 2
|
2000-07-12 18:43:32 +00:00
|
|
|
CATEGORIES= net
|
2002-05-29 06:35:18 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR=nagios
|
2000-07-12 18:43:32 +00:00
|
|
|
|
2001-05-17 06:02:17 +00:00
|
|
|
MAINTAINER= blaz@si.FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= Extremely powerful network monitoring system
|
2000-07-12 18:43:32 +00:00
|
|
|
|
2003-04-23 10:40:02 +00:00
|
|
|
.if defined(WITH_GD2)
|
2003-07-14 02:53:03 +00:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd2
|
2003-04-23 10:40:02 +00:00
|
|
|
.else
|
2003-07-11 18:16:14 +00:00
|
|
|
LIB_DEPENDS= gd1.2:${PORTSDIR}/graphics/gd
|
2003-04-23 10:40:02 +00:00
|
|
|
.endif
|
2002-07-22 03:19:03 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net/nagios-plugins
|
2000-07-12 18:43:32 +00:00
|
|
|
|
2003-07-14 02:53:03 +00:00
|
|
|
USE_GETOPT_LONG=yes
|
2000-07-12 18:43:32 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-14 02:53:03 +00:00
|
|
|
|
|
|
|
CPPFLAGS= ${INCGD} -I${LOCALBASE}/include
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}" \
|
2003-07-14 14:29:10 +00:00
|
|
|
CFLAGS="${CPPFLAGS} ${CFLAGS} ${INCGD}" \
|
2003-07-14 02:53:03 +00:00
|
|
|
LIBS="-L${LOCALBASE}/lib ${LIBGD}"
|
2002-05-29 06:35:18 +00:00
|
|
|
CONFIGURE_ARGS= --with-command-user=nagios \
|
2002-06-24 01:54:02 +00:00
|
|
|
--with-command-grp=www \
|
2002-05-29 06:35:18 +00:00
|
|
|
--with-nagios-user=nagios \
|
|
|
|
--with-nagios-grp=nagios \
|
|
|
|
--with-template-objects \
|
|
|
|
--with-template-extinfo \
|
|
|
|
--with-init-dir=${PREFIX}/etc/rc.d \
|
2002-06-24 01:54:02 +00:00
|
|
|
--sbindir=${PREFIX}/share/nagios/cgi-bin \
|
2002-07-22 03:19:03 +00:00
|
|
|
--libexecdir=${PREFIX}/libexec/nagios \
|
2002-05-29 06:35:18 +00:00
|
|
|
--datadir=${PREFIX}/share/nagios \
|
|
|
|
--sysconfdir=${PREFIX}/etc/nagios \
|
2003-04-07 01:16:37 +00:00
|
|
|
--localstatedir=/var/spool/nagios \
|
2002-05-29 06:35:18 +00:00
|
|
|
--prefix=${PREFIX}
|
2001-04-03 22:07:20 +00:00
|
|
|
|
2003-07-11 18:16:14 +00:00
|
|
|
.if defined(WITH_GD2)
|
|
|
|
INCGD= -I${LOCALBASE}/include
|
|
|
|
LIBGD= -lgd
|
|
|
|
.else
|
|
|
|
INCGD= -I${LOCALBASE}/include/gd
|
|
|
|
LIBGD= -lgd1
|
|
|
|
.endif
|
|
|
|
|
2003-04-07 00:39:54 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
|
|
|
|
--with-mysql-inc=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysql-xdata
|
|
|
|
.endif
|
|
|
|
|
2003-06-08 12:55:22 +00:00
|
|
|
.if defined(NAGIOS_FILE_PERFDATA)
|
|
|
|
CONFIGURE_ARGS+=--with-file-perfdata
|
|
|
|
.endif
|
|
|
|
|
2003-04-07 00:39:54 +00:00
|
|
|
.if defined(WITH_POSTGRES)
|
2003-04-07 01:16:37 +00:00
|
|
|
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
2003-04-07 00:39:54 +00:00
|
|
|
CONFIGURE_ARGS+=--with-pgsql-lib=${LOCALBASE}/pgsql \
|
|
|
|
--with-pgsql-inc=${LOCALBASE}/pgsql \
|
|
|
|
--with-pgsql-xdata
|
|
|
|
.endif
|
|
|
|
|
2001-04-03 22:07:20 +00:00
|
|
|
INSTALL_TARGET= all install config install-config install-daemoninit install-commandmode
|
2000-07-12 18:43:32 +00:00
|
|
|
|
|
|
|
pre-install:
|
2001-05-17 06:02:17 +00:00
|
|
|
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2000-07-12 18:43:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|