new MULTI_PACKAGES
This commit is contained in:
parent
445f357afc
commit
157d1d385c
@ -1,12 +1,12 @@
|
|||||||
# $OpenBSD: Makefile,v 1.20 2006/05/03 17:32:09 henning Exp $
|
# $OpenBSD: Makefile,v 1.21 2006/11/25 19:36:43 espie Exp $
|
||||||
|
|
||||||
COMMENT= "UPS monitoring program supporting many brands"
|
COMMENT-main= "UPS monitoring program supporting many brands"
|
||||||
COMMENT-cgi= "CGIs for monitoring Nut-based UPSs"
|
COMMENT-cgi= "CGIs for monitoring Nut-based UPSs"
|
||||||
COMMENT-snmp= "driver for monitoring UPSs via SNMP"
|
COMMENT-snmp= "driver for monitoring UPSs via SNMP"
|
||||||
|
|
||||||
VERSION= 2.0.3
|
VERSION= 2.0.3
|
||||||
DISTNAME= nut-${VERSION}
|
DISTNAME= nut-${VERSION}
|
||||||
PKGNAME= ${DISTNAME}
|
PKGNAME-main= ${DISTNAME}p0
|
||||||
PKGNAME-cgi= nut-cgi-${VERSION}
|
PKGNAME-cgi= nut-cgi-${VERSION}
|
||||||
PKGNAME-snmp= nut-snmp-${VERSION}
|
PKGNAME-snmp= nut-snmp-${VERSION}
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
@ -40,24 +40,20 @@ INSTALL_TARGET= install
|
|||||||
|
|
||||||
PSEUDO_FLAVORS= no_cgi snmp
|
PSEUDO_FLAVORS= no_cgi snmp
|
||||||
FLAVOR?=
|
FLAVOR?=
|
||||||
MULTI_PACKAGES=
|
MULTI_PACKAGES= -main
|
||||||
.if !${FLAVOR:L:Mno_cgi}
|
.if !${FLAVOR:L:Mno_cgi}
|
||||||
MULTI_PACKAGES+= -cgi
|
MULTI_PACKAGES+= -cgi
|
||||||
.endif
|
.endif
|
||||||
.if ${FLAVOR:L:Msnmp}
|
.if ${FLAVOR:L:Msnmp}
|
||||||
MULTI_PACKAGES+= -snmp
|
MULTI_PACKAGES+= -snmp
|
||||||
.endif
|
.endif
|
||||||
SUBPACKAGE?=
|
|
||||||
|
|
||||||
.if defined(PACKAGING)
|
PREFIX-cgi= ${WEB_ROOT}
|
||||||
. if ${SUBPACKAGE} == "-cgi"
|
WANTLIB-cgi=
|
||||||
PREFIX= ${WEB_ROOT}
|
|
||||||
WANTLIB=
|
LIB_DEPENDS-snmp= netsnmp::net/net-snmp
|
||||||
. elif ${SUBPACKAGE} == "-snmp"
|
|
||||||
LIB_DEPENDS+= netsnmp::net/net-snmp
|
.if ${MULTI_PACKAGES:M-cgi}
|
||||||
. endif
|
|
||||||
.else
|
|
||||||
. if ${MULTI_PACKAGES:M-cgi}
|
|
||||||
BUILD_DEPENDS+= :gd->=1.8.3:graphics/gd
|
BUILD_DEPENDS+= :gd->=1.8.3:graphics/gd
|
||||||
|
|
||||||
CONFIGURE_ARGS+= --with-cgi
|
CONFIGURE_ARGS+= --with-cgi
|
||||||
@ -67,13 +63,11 @@ CONFIGURE_ARGS+= --with-gd-includes="-I${LOCALBASE}/include"
|
|||||||
|
|
||||||
ALL_TARGET+= cgi
|
ALL_TARGET+= cgi
|
||||||
INSTALL_TARGET+= install-cgi
|
INSTALL_TARGET+= install-cgi
|
||||||
. endif
|
.endif
|
||||||
. if ${MULTI_PACKAGES:M-snmp}
|
|
||||||
LIB_DEPENDS+= netsnmp::net/net-snmp
|
|
||||||
|
|
||||||
|
.if ${MULTI_PACKAGES:M-snmp}
|
||||||
ALL_TARGET+= snmp
|
ALL_TARGET+= snmp
|
||||||
INSTALL_TARGET+= install-snmp
|
INSTALL_TARGET+= install-snmp
|
||||||
. endif
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
NO_REGRESS= Yes
|
NO_REGRESS= Yes
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
@comment $OpenBSD: PLIST,v 1.11 2006/05/03 17:32:09 henning Exp $
|
@comment $OpenBSD: PLIST-main,v 1.1 2006/11/25 19:36:43 espie Exp $
|
||||||
@conflict upsd-*
|
@conflict upsd-*
|
||||||
|
@pkgpath sysutils/nut
|
||||||
@pkgpath sysutils/nut,no_cgi
|
@pkgpath sysutils/nut,no_cgi
|
||||||
@pkgpath sysutils/nut,snmp
|
@pkgpath sysutils/nut,snmp
|
||||||
@pkgpath sysutils/nut,no_cgi,snmp
|
@pkgpath sysutils/nut,no_cgi,snmp
|
Loading…
Reference in New Issue
Block a user