Use pkg_info's -B switch, now that we're sure to have it available,
obviating the need for a sed expression.
This commit is contained in:
parent
d4e2aa69be
commit
5a8b3a7f1c
2 changed files with 4 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.9 2005/04/15 05:17:01 schmonz Exp $
|
||||
# $NetBSD: Makefile,v 1.10 2005/07/19 21:15:10 schmonz Exp $
|
||||
#
|
||||
|
||||
DISTNAME= qmail-run-20050415
|
||||
|
@ -36,8 +36,7 @@ INSTALLED_QMAIL!= ${PKG_BEST_EXISTS} ${DEPENDS_QMAIL:C/:.*$//:Q:S/\ / /g}
|
|||
. if empty(INSTALLED_QMAIL:M*_not_found_)
|
||||
. if !defined(PKG_SYSCONFDIR.qmail-run)
|
||||
PKG_SYSCONFDIR.qmail-run!= \
|
||||
${PKG_INFO} -qB ${INSTALLED_QMAIL} | \
|
||||
${SED} -n '/^PKG_SYSCONFDIR=/s|^PKG_SYSCONFDIR=[ ]*||p'
|
||||
${PKG_INFO} -Q PKG_SYSCONFDIR ${INSTALLED_QMAIL}
|
||||
. endif
|
||||
. endif
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.7 2005/04/15 05:15:55 schmonz Exp $
|
||||
# $NetBSD: Makefile,v 1.8 2005/07/19 21:15:10 schmonz Exp $
|
||||
#
|
||||
|
||||
DISTNAME= djbdns-run-20050415
|
||||
|
@ -46,8 +46,7 @@ INSTALLED_DJBDNS!= ${PKG_BEST_EXISTS} ${DEPENDS_DJBDNS:C/:.*$//:Q:S/\ / /g}
|
|||
. if empty(INSTALLED_DJBDNS:M*_not_found_)
|
||||
. if !defined(PKG_SYSCONFDIR.djbdns-run)
|
||||
PKG_SYSCONFDIR.djbdns-run!= \
|
||||
${PKG_INFO} -qB ${INSTALLED_DJBDNS} | \
|
||||
${SED} -n '/^PKG_SYSCONFDIR=/s|^PKG_SYSCONFDIR=[ ]*||p'
|
||||
${PKG_INFO} -Q PKG_SYSCONFDIR ${INSTALLED_DJBDNS}
|
||||
. endif
|
||||
. endif
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue