Use SUBST_CMD-main explicitly rather than SUBST_CMD; following bsd.port.mk

r1.1183 this is now subpackage-dependent - nfsen sets a different PREFIX for
different subpackages and this change caused failures in DPB builds (but not
normal builds) as they pass the subpackage in SUBDIR.

Problem reported by krw, ok espie@.
This commit is contained in:
sthen 2012-08-28 23:33:33 +00:00
parent 11cf61a3e6
commit 25fa27eeb7

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.16 2012/04/22 11:41:55 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.17 2012/08/28 23:33:33 sthen Exp $
MULTI_PACKAGES= -main -web
COMMENT-main= web-based front end for the nfdump netflow tools
@ -39,7 +39,7 @@ WWWDIR= ${WRKINST}${PREFIX-web}/htdocs
PKG_ARCH= *
pre-configure:
@${SUBST_CMD} ${WRKSRC}/etc/nfsen-dist.conf
@${SUBST_CMD-main} ${WRKSRC}/etc/nfsen-dist.conf
@cd ${WRKSRC}/html; [ -r index.php ] || echo \
'<?php header("Location: nfsen.php"); ?>' > index.php