Use the hard-coded ${PKG_TOOLS_BIN} variable as the correct location of
the pkg_admin binary.
This commit is contained in:
parent
f2c3651333
commit
604a8bc477
2 changed files with 5 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: INSTALL,v 1.1 2005/11/06 22:15:44 jlam Exp $
|
||||
# $NetBSD: INSTALL,v 1.2 2005/11/07 06:52:24 jlam Exp $
|
||||
|
||||
PKGNAME="$1"
|
||||
STAGE="$2"
|
||||
|
||||
PKG_DBDIR="@PKG_DBDIR@"
|
||||
PKG_TOOLS_BIN="@PKG_TOOLS_BIN@"
|
||||
MKDIR="@MKDIR@"
|
||||
|
||||
case ${STAGE} in
|
||||
|
@ -14,6 +15,6 @@ PRE-INSTALL)
|
|||
;;
|
||||
|
||||
POST-INSTALL)
|
||||
[ -f ${PKG_DBDIR}/pkgdb.byfile.db ] || ${PKG_PREFIX}/bin/pkg_admin rebuild
|
||||
[ -f ${PKG_DBDIR}/pkgdb.byfile.db ] || ${PKG_TOOLS_BIN}/pkg_admin rebuild
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.119 2005/11/07 06:32:58 jlam Exp $
|
||||
# $NetBSD: Makefile,v 1.120 2005/11/07 06:52:24 jlam Exp $
|
||||
|
||||
# Notes to package maintainers:
|
||||
#
|
||||
|
@ -79,6 +79,7 @@ do-extract:
|
|||
|
||||
post-build:
|
||||
${SED} -e "s|@PKG_DBDIR@|${PKG_DBDIR}|g" \
|
||||
-e "s|@PKG_TOOLS_BIN@|${PKG_TOOLS_BIN}|g" \
|
||||
-e "s|@MKDIR@|${MKDIR}|g" \
|
||||
${PKGDIR}/INSTALL > ${INSTALL_FILE}
|
||||
${CHMOD} +x ${INSTALL_FILE}
|
||||
|
|
Loading…
Reference in a new issue