summaryrefslogtreecommitdiff
path: root/mk/plist
diff options
context:
space:
mode:
authorjoerg <joerg>2007-08-03 14:03:39 +0000
committerjoerg <joerg>2007-08-03 14:03:39 +0000
commit3838ad4f508b323e24e242f4c61f0c2305f40557 (patch)
tree4860ee0c505f9cd1529ebed352fe099959ea0528 /mk/plist
parent5171c0c9a98bf0a4643e5db83c05e9e886ad1d49 (diff)
downloadpkgsrc-3838ad4f508b323e24e242f4c61f0c2305f40557.tar.gz
Update _USE_DESTDIR=full handling to use the new -u/-g code and
require pkg_install-20070802 for using it. It is now considered to work correctly and ready for general consumption.
Diffstat (limited to 'mk/plist')
-rw-r--r--mk/plist/plist.mk13
1 files changed, 2 insertions, 11 deletions
diff --git a/mk/plist/plist.mk b/mk/plist/plist.mk
index 2517f0dc262..28c2fac4891 100644
--- a/mk/plist/plist.mk
+++ b/mk/plist/plist.mk
@@ -1,4 +1,4 @@
-# $NetBSD: plist.mk,v 1.30 2007/07/29 05:19:44 jlam Exp $
+# $NetBSD: plist.mk,v 1.31 2007/08/03 14:03:40 joerg Exp $
#
# This Makefile fragment handles the creation of PLISTs for use by
# pkg_create(8).
@@ -186,13 +186,6 @@ _PLIST_IGNORE_FILES+= ${PLIST_IGNORE_FILES}
.endif
_BUILD_DEFS+= _PLIST_IGNORE_FILES
-.if ${_USE_DESTDIR} == "user-destdir"
-_SET_OWNER_GROUP= ${ECHO} "@owner ${REAL_ROOT_USER}"; \
- ${ECHO} "@group ${REAL_ROOT_GROUP}"
-.else
-_SET_OWNER_GROUP= :
-.endif
-
.if ${PLIST_TYPE} == "dynamic"
_PLIST_IGNORE_CMD= \
( while read i; do \
@@ -205,7 +198,6 @@ _PLIST_IGNORE_CMD= \
[ "$$ignore" = "yes" ] || ${ECHO} "$$i"; \
done )
_GENERATE_PLIST= \
- ${_SET_OWNER_GROUP}; \
${FIND} ${DESTDIR}${PREFIX} \! -type d -print | ${SORT} | \
${SED} -e "s|^${DESTDIR}${PREFIX}/||" | \
${_PLIST_IGNORE_CMD}; \
@@ -215,8 +207,7 @@ _GENERATE_PLIST= \
${SED} -e "s|^${DESTDIR}${PREFIX}/|@unexec ${RMDIR} -p %D/|" \
-e "s,$$, 2>/dev/null || ${TRUE},";
.else
-_GENERATE_PLIST= ${_SET_OWNER_GROUP}; \
- ${CAT} ${PLIST_SRC}; \
+_GENERATE_PLIST= ${CAT} ${PLIST_SRC}; \
${GENERATE_PLIST}
.endif