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