Subject: Re: CVS commit: pkgsrc/mk (bsd.pkg.mk:1.1567)
To: None <pkgsrc-changes@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: pkgsrc-changes
Date: 01/24/2005 04:49:30
Johnny C. Lam <jlam@netbsd.org> typed:
: Committed By: jlam
: Date: Sun Jan 23 22:23:40 UTC 2005
: Modified Files:
: pkgsrc/mk: bsd.pkg.mk
:
: Log Message:
: Move the creation of ${PKG_DB_TMPDIR} earlier so that it's created as
: the build user instead of the root user. This should allow "make
: clean" as a non-root user to work again.
:
: cvs rdiff -r1.1566 -r1.1567 pkgsrc/mk/bsd.pkg.mk
s/_PKG_DB_TMPDIR/PKG_DB_TMPDIR/g
Regards,
Geoff
--- bsd.pkg.mk.org 2005-01-24 15:08:17.000000000 +1100
+++ bsd.pkg.mk 2005-01-24 15:47:32.000000000 +1100
@@ -4870,37 +4870,37 @@
${_PKG_SILENT}${_PKG_DEBUG}${PKG_ADMIN} delete ${PKGNAME}
. endif
${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO} ${COMMENT:Q} > ${_PKG_DB_TMPDIR}/+COMMENT
+ ${ECHO} ${COMMENT:Q} > ${PKG_DB_TMPDIR}/+COMMENT
${_PKG_SILENT}${_PKG_DEBUG} \
case "${DESCR}" in \
${PKG_DB_TMPDIR}/*|"") ;; \
*) if ${TEST} -f ${DESCR}; then \
- ${CP} ${DESCR} ${_PKG_DB_TMPDIR}/+DESC; \
+ ${CP} ${DESCR} ${PKG_DB_TMPDIR}/+DESC; \
fi ;; \
esac
${_PKG_SILENT}${_PKG_DEBUG} \
case "${MESSAGE}" in \
${PKG_DB_TMPDIR}/*|"") ;; \
*) if ${TEST} -f ${MESSAGE}; then \
- ${CP} ${MESSAGE} ${_PKG_DB_TMPDIR}/+DISPLAY; \
+ ${CP} ${MESSAGE} ${PKG_DB_TMPDIR}/+DISPLAY; \
fi ;; \
esac
${_PKG_SILENT}${_PKG_DEBUG} \
case ${PKG_INSTALLATION_TYPE} in \
- pkgview) ${TOUCH} ${_PKG_DB_TMPDIR}/+VIEWS ;; \
+ pkgview) ${TOUCH} ${PKG_DB_TMPDIR}/+VIEWS ;; \
esac
${_PKG_SILENT}${_PKG_DEBUG} \
case "${INSTALL_FILE}" in \
${PKG_DB_TMPDIR}/*|"") ;; \
*) if ${TEST} -f ${INSTALL_FILE}; then \
- ${CP} ${INSTALL_FILE} ${_PKG_DB_TMPDIR}/+INSTALL; \
+ ${CP} ${INSTALL_FILE} ${PKG_DB_TMPDIR}/+INSTALL; \
fi ;; \
esac
${_PKG_SILENT}${_PKG_DEBUG} \
case "${DEINSTALL_FILE}" in \
${PKG_DB_TMPDIR}/*|"") ;; \
*) if ${TEST} -f ${DEINSTALL_FILE}; then \
- ${CP} ${DEINSTALL_FILE} ${_PKG_DB_TMPDIR}/+DEINSTALL; \
+ ${CP} ${DEINSTALL_FILE} ${PKG_DB_TMPDIR}/+DEINSTALL; \
fi ;; \
esac
${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${SIZE_PKG_FILE} ${SIZE_ALL_FILE}