new MULTI_PACKAGES

This commit is contained in:
espie 2006-11-26 01:01:32 +00:00
parent 6a5ca0876b
commit fee93ee697
5 changed files with 19 additions and 21 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.19 2006/11/20 21:18:15 bernd Exp $
# $OpenBSD: Makefile,v 1.20 2006/11/26 01:01:32 espie Exp $
COMMENT= "host and service monitor"
COMMENT-main= "host and service monitor"
COMMENT-web= "cgis and webpages for nagios"
V= 2.5
DISTNAME= nagios-${V}
PKGNAME-main= nagios-${V}p0
PKGNAME-web= nagios-web-${V}
CATEGORIES= net
@ -18,8 +19,7 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MULTI_PACKAGES= -web
SUBPACKAGE?=
MULTI_PACKAGES= -main -web
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
@ -53,25 +53,22 @@ PATCH_LIST= patch-* chroot-*
CHROOT=
.endif
.if defined(PACKAGING)
WANTLIB= c m
. if ${SUBPACKAGE} == "-web"
PREFIX= /var/www
PREFIX-web= /var/www
# overwrite RUN_DEPENDS in order to only depend on the base package
. if ${FLAVOR:L:Mchroot}
WANTLIB=
LIB_DEPENDS=
RUN_DEPENDS= :nagios-${V}-chroot:net/nagios/nagios,chroot
. else
WANTLIB+= fontconfig freetype jpeg png z
LIB_DEPENDS= gd::graphics/gd
RUN_DEPENDS= :nagios-${V}-!chroot:net/nagios/nagios
. endif
. else
WANTLIB+= pthread
. endif
.if ${FLAVOR:L:Mchroot}
WANTLIB-web=
LIB_DEPENDS-web=
RUN_DEPENDS-web=:nagios-${V}-chroot:net/nagios/nagios,chroot
.else
WANTLIB-web= ${WANTLIB} fontconfig freetype jpeg png z
LIB_DEPENDS-web=gd::graphics/gd
RUN_DEPENDS-web=:nagios-${V}-!chroot:net/nagios/nagios
.endif
WANTLIB-main= ${WANTLIB} pthread
NO_REGRESS= Yes
CONFIG_FILES0= cgi.cfg httpd.conf nagios.cfg resource.cfg

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PFRAG.chroot,v 1.1.1.1 2005/07/25 16:32:06 sturm Exp $
@comment $OpenBSD: PFRAG.chroot-main,v 1.1 2006/11/26 01:01:32 espie Exp $
@exec ln -s ${CHROOT}${SYSCONFDIR}/nagios ${SYSCONFDIR}
@exec ln -s ${CHROOT}/var/log/nagios /var/log
@exec ln -s ${CHROOT}/var/nagios /var

View File

@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.3 2005/08/14 01:10:31 sturm Exp $
@comment $OpenBSD: PLIST-main,v 1.1 2006/11/26 01:01:32 espie Exp $
@newgroup _nagios:550
@newuser _nagios:550:_nagios:daemon:Nagios user:/var/www/nagios:/sbin/nologin
@pkgpath ${BASE_PKGPATH}
bin/nagiostats
sbin/nagios
share/examples/nagios/