pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Move the creation of ${PKG_DB_TMPDIR} to when we cr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/496e4661af4b
branches: trunk
changeset: 488311:496e4661af4b
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Jan 27 18:32:20 2005 +0000
description:
Move the creation of ${PKG_DB_TMPDIR} to when we create ${WRKDIR}.
This ensures that it's always created with the same user/group/mode
as ${WRKDIR}, so if a non-root user thinks he has permissions to remove
${WRKDIR}, then that expectation will remain true for ${PKG_DB_TMPDIR}.
diffstat:
mk/bsd.pkg.mk | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 21ad3a29250a -r 496e4661af4b mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Thu Jan 27 17:55:42 2005 +0000
+++ b/mk/bsd.pkg.mk Thu Jan 27 18:32:20 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1576 2005/01/27 11:21:46 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1577 2005/01/27 18:32:20 jlam Exp $
#
# This file is in the public domain.
#
@@ -1882,6 +1882,7 @@
. endif
.endif
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${WRKDIR}
+ ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${PKG_DB_TMPDIR}
.ifdef WRKOBJDIR
. if ${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once"
. if !exists(${LOCKFILE})
@@ -1895,6 +1896,7 @@
fi
.endif # WRKOBJDIR
+
_EXTRACT_SUFFIXES= .tar.gz .tgz .tar.bz2 .tbz .tar.Z .tar _tar.gz
_EXTRACT_SUFFIXES+= .shar.gz .shar.bz2 .shar.Z .shar
_EXTRACT_SUFFIXES+= .zip
@@ -3381,7 +3383,6 @@
${MAKE} clean && ${MAKE} build ;; \
esac
@${ECHO_MSG} "${_PKGSRC_IN}> Installing for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${PKG_DB_TMPDIR}
${_PKG_SILENT}${_PKG_DEBUG} \
realtarget="real-su-install"; \
action="install"; \
Home |
Main Index |
Thread Index |
Old Index