freebsd-ports/net-mgmt/nagios/Makefile
Jun Kuriyama 292d22a3a7 Bump PORTREVISION.
Move ${PREFIX}/share/nagios/sbin to ${PREFIX}/share/nagios/cgi-bin as that
is the location originally used by the nagios author.

Apache runs as user "www" now, so nagios the nagios socket should be owned by
"www" instead of nobody.

Submitted by:	David Douthitt <n9ubh@callsign.net> via maintainer
2002-06-24 01:54:02 +00:00

49 lines
1.3 KiB
Makefile

# New ports collection makefile for: nagios
# Date created: 19 May 2002
# Whom: Blaz Zupan <blaz@si.FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nagios
PORTVERSION= 1.0.b3
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=nagios
DISTNAME= nagios-1.0b3
MAINTAINER= blaz@si.FreeBSD.org
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd \
gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
RUN_DEPENDS= ${LOCALBASE}/libexec/netsaint/check_netsaint:${PORTSDIR}/net/netsaint-plugins
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lgd -lgnugetopt"
CONFIGURE_ARGS= --with-command-user=nagios \
--with-command-grp=www \
--with-nagios-user=nagios \
--with-nagios-grp=nagios \
--with-template-objects \
--with-template-extinfo \
--with-init-dir=${PREFIX}/etc/rc.d \
--sbindir=${PREFIX}/share/nagios/cgi-bin \
--libexecdir=${PREFIX}/libexec/netsaint \
--datadir=${PREFIX}/share/nagios \
--sysconfdir=${PREFIX}/etc/nagios \
--localstatedir=${PREFIX}/var/nagios \
--prefix=${PREFIX}
INSTALL_TARGET= all install config install-config install-daemoninit install-commandmode
pre-fetch:
@${SH} ${SCRIPTDIR}/checkps
pre-install:
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
.include <bsd.port.mk>