diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-08 16:21:51 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-08 16:21:51 +0000 |
commit | b55dfcc7403f6ac2561a0b81a0641a5f1ee8efd7 (patch) | |
tree | 61905ff02708a31dd9bee7339e58939ad073b1c8 | |
parent | f0b8dd9c96191debe02d4b048825c56c0d2f78b7 (diff) | |
download | pkgsrc-b55dfcc7403f6ac2561a0b81a0641a5f1ee8efd7.tar.gz |
Introduce "makedirs" as a helper target to create directories with
unprivileged ownership.
-rw-r--r-- | mk/bsd.pkg.mk | 5 | ||||
-rw-r--r-- | mk/extract/extract.mk | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 844059a54f0..955ee206169 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1847 2006/06/08 08:01:53 rillig Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1848 2006/06/08 16:21:51 jlam Exp $ # # This file is in the public domain. # @@ -843,6 +843,9 @@ release-lock: .USE ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${_LOCKFILE} .endif +.PHONY: makedirs +makedirs: ${WRKDIR} + ${WRKDIR}: .if !defined(KEEP_WRKDIR) . if ${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once" diff --git a/mk/extract/extract.mk b/mk/extract/extract.mk index 64806118644..e3d2e4d97bb 100644 --- a/mk/extract/extract.mk +++ b/mk/extract/extract.mk @@ -1,4 +1,4 @@ -# $NetBSD: extract.mk,v 1.4 2006/06/08 15:45:52 jlam Exp $ +# $NetBSD: extract.mk,v 1.5 2006/06/08 16:21:51 jlam Exp $ # # The following variables may be set by the package Makefile and # specify how extraction happens: @@ -43,7 +43,7 @@ _EXTRACT_COOKIE= ${WRKDIR}/.extract_done ### extract is a public target to perform extraction. ### _EXTRACT_TARGETS+= checksum -_EXTRACT_TARGETS+= ${WRKDIR} +_EXTRACT_TARGETS+= makedirs _EXTRACT_TARGETS+= depends _EXTRACT_TARGETS+= tools _EXTRACT_TARGETS+= acquire-extract-lock |