diff options
author | jlam <jlam> | 2003-07-25 12:04:39 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-07-25 12:04:39 +0000 |
commit | 18cf612eb5949787a7a59e0a36bd0c053b6faf7a (patch) | |
tree | ea1e8149efa2d31f9cb753055183c290cd412c35 /mk/bsd.pkg.mk | |
parent | 90fb0e66d795640039b6efa78b2eb08a1d1129ed (diff) | |
download | pkgsrc-18cf612eb5949787a7a59e0a36bd0c053b6faf7a.tar.gz |
Always create an empty +VIEWS file for depoted packages. Require version
20030725 of the pkg_install tools since we need a pkg_create(1) that
understands "-E".
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 6d9600fc5b7..1277f944b3e 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1216.2.5 2003/07/24 23:45:06 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1216.2.6 2003/07/25 12:04:39 jlam Exp $ # # This file is in the public domain. # @@ -621,7 +621,7 @@ uptodate-digest: .if defined(_OPSYS_PKGTOOLS_REQD) PKGTOOLS_REQD= ${_OPSYS_PKGTOOLS_REQD} .else -PKGTOOLS_REQD= 20030724 +PKGTOOLS_REQD= 20030725 .endif # Check that we are using up-to-date pkg_* tools with this file. @@ -692,7 +692,8 @@ PKG_ARGS_BINPKG= -p ${PREFIX:S/^${DESTDIR}//} -L ${PREFIX} ${PKG_ARGS_COMMON} .endif # !PKG_ARGS_COMMON .if ${PKG_INSTALLATION_TYPE} == "pkgviews" -PKG_ARGS_INSTALL+= -U +PKG_ARGS_INSTALL+= -U # don't update the pkgdb.byfile.db +PKG_ARGS_BINPKG+= -E # create an empty views file in the binpkg .endif PKG_SUFX?= .tgz @@ -4481,6 +4482,9 @@ fake-pkg: ${PLIST} ${DESCR} ${MESSAGE} if ${TEST} -e ${PRESERVE_FILE}; then \ ${CP} ${PRESERVE_FILE} ${PKG_DBDIR}/${PKGNAME}/+PRESERVE; \ fi ; \ + if [ "${PKG_INSTALLATION_TYPE}" = "pkgviews" ]; then \ + ${TOUCH} ${PKG_DBDIR}/${PKGNAME}/+VIEWS; \ + fi ; \ if [ -n "${INSTALL_FILE}" ]; then \ if ${TEST} -e ${INSTALL_FILE}; then \ ${CP} ${INSTALL_FILE} ${PKG_DBDIR}/${PKGNAME}/+INSTALL; \ |