summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-04-25 20:12:35 +0000
committerjlam <jlam@pkgsrc.org>2006-04-25 20:12:35 +0000
commit057ec88ef75191ed0ab12698a97ca8dd55f1c48d (patch)
tree63905fd8ffaf82317f958abcb9460afa05b24b53 /mk
parentede4976eb92f1c89fd34dc8908a50d8f4b2b490c (diff)
downloadpkgsrc-057ec88ef75191ed0ab12698a97ca8dd55f1c48d.tar.gz
Use colons as separators instead of slashes on the off-chance that "/"
is used in either the user or group name due to some bizarro set of circumstances.
Diffstat (limited to 'mk')
-rw-r--r--mk/install/dirs26
-rw-r--r--mk/install/files28
2 files changed, 27 insertions, 27 deletions
diff --git a/mk/install/dirs b/mk/install/dirs
index d916ab94680..29dd5eaf915 100644
--- a/mk/install/dirs
+++ b/mk/install/dirs
@@ -1,4 +1,4 @@
-# $NetBSD: dirs,v 1.11 2006/04/25 19:54:39 jlam Exp $
+# $NetBSD: dirs,v 1.12 2006/04/25 20:12:35 jlam Exp $
#
# Generate a +DIRS script that reference counts directories that are
# required for the proper functioning of the package.
@@ -120,16 +120,16 @@ ADD)
else
${ECHO} "${PKG_METADATA_DIR}" >> $token
fi
- case $d_user/$d_group/$d_mode in
- [!/]*/[!/]*/[!/]*)
+ case $d_user:$d_group:$d_mode in
+ [!:]*:[!:]*:[!:]*)
${ECHO} "$d_user $d_group $d_mode" > $perms
;;
esac
- case $d_flags/$_PKG_CONFIG in
- *f*/*|*/yes)
+ case $d_flags:$_PKG_CONFIG in
+ *f*:*|*:yes)
${MKDIR} $dir
- case $d_user/$d_group/$d_mode in
- [!/]*/[!/]*/[!/]*)
+ case $d_user:$d_group:$d_mode in
+ [!:]*:[!:]*:[!:]*)
${CHOWN} $d_user $dir
${CHGRP} $d_group $dir
${CHMOD} $d_mode $dir
@@ -162,8 +162,8 @@ REMOVE)
case `${CAT} $tokentmp | ${SED} -n "$="` in
"")
${TEST} -f "$preexist" ||
- { case $d_flags/$_PKG_CONFIG in
- *f*/*|*/yes)
+ { case $d_flags:$_PKG_CONFIG in
+ *f*:*|*:yes)
${RMDIR} -p $dir 2>/dev/null || ${TRUE};
;;
esac; }
@@ -185,8 +185,8 @@ PERMS)
"") continue ;;
[!/]*) dir="${PKG_PREFIX}/$dir" ;;
esac
- case $d_user/$d_group/$d_mode/$_PKG_CONFIG/$_PKG_CONFIG_PERMS in
- [!/]*/[!/]*/[!/]*/yes/yes)
+ case $d_user:$d_group:$d_mode:$_PKG_CONFIG:$_PKG_CONFIG_PERMS in
+ [!:]*:[!:]*:[!:]*:yes:yes)
${CHOWN} $d_user $dir
${CHGRP} $d_group $dir
${CHMOD} $d_mode $dir
@@ -215,8 +215,8 @@ CHECK-ADD)
${ECHO} ""
;;
esac
- case $d_user/$d_group/$d_mode in
- [!/]*/[!/]*/[!/]*)
+ case $d_user:$d_group:$d_mode in
+ [!:]*:[!:]*:[!:]*)
${ECHO} " $dir (o=$d_user, g=$d_group, m=$d_mode)"
;;
*)
diff --git a/mk/install/files b/mk/install/files
index b6b924196ce..81030105847 100644
--- a/mk/install/files
+++ b/mk/install/files
@@ -1,4 +1,4 @@
-# $NetBSD: files,v 1.11 2006/04/25 19:54:39 jlam Exp $
+# $NetBSD: files,v 1.12 2006/04/25 20:12:35 jlam Exp $
#
# Generate a +FILES script that reference counts config files that are
# required for the proper functioning of the package.
@@ -154,8 +154,8 @@ ADD)
if ${TEST} ! -f "$file" -a ! -f "$f_eg"; then
:
else
- case "$f_flags/$_PKG_CONFIG/$_PKG_RCD_SCRIPTS" in
- *f*/*/*|[!r]/yes/*|[!r][!r]/yes/*|[!r][!r][!r]/yes/*|*r*/yes/yes)
+ case "$f_flags:$_PKG_CONFIG:$_PKG_RCD_SCRIPTS" in
+ *f*:*:*|[!r]:yes:*|[!r][!r]:yes:*|[!r][!r][!r]:yes:*|*r*:yes:yes)
case "$printed_header" in
yes) ;;
*) printed_header=yes
@@ -225,8 +225,8 @@ REMOVE)
:
elif ${TEST} -f "$file" -a -f "$f_eg" && \
${CMP} -s "$file" "$f_eg"; then
- case "$f_flags/$_PKG_CONFIG/$_PKG_RCD_SCRIPTS" in
- *f*/*/*|[!r]/yes/*|[!r][!r]/yes/*|[!r][!r][!r]/yes/*|*r*/yes/yes)
+ case "$f_flags:$_PKG_CONFIG:$_PKG_RCD_SCRIPTS" in
+ *f*:*:*|[!r]:yes:*|[!r][!r]:yes:*|[!r][!r][!r]:yes:*|*r*:yes:yes)
${RM} -f "$file"
;;
esac
@@ -245,8 +245,8 @@ REMOVE)
PERMS)
${SED} -n "/^\# FILE: /{s/^\# FILE: //;p;}" ${SELF} | ${SORT} -ru |
while read file f_flags f_eg f_mode f_user f_group; do
- case $_PKG_CONFIG/$_PKG_CONFIG_PERMS in
- yes/yes) ;;
+ case $_PKG_CONFIG:$_PKG_CONFIG_PERMS in
+ yes:yes) ;;
*) continue ;;
esac
case $file in
@@ -309,18 +309,18 @@ CHECK-ADD)
;;
esac
${ECHO} ""
- case $f_mode/$f_user/$f_group in
- //)
+ case $f_mode:$f_user:$f_group in
+ ::)
${ECHO} " $file"
;;
- [!/]*//)
+ [!:]*::)
${ECHO} " $file (m=$f_mode)"
;;
- [!/]*/[!/]*/)
- ${ECHO} " $file (o=$f_user, m=$f_mode)"
+ [!:]*:[!:]*:)
+ ${ECHO} " $file (m=$f_mode, o=$f_user)"
;;
- [!/]*/[!/]*/[!/]*)
- ${ECHO} " $file (o=$f_user, g=$f_group, m=$f_mode)"
+ [!:]*:[!:]*:[!:]*)
+ ${ECHO} " $file (m=$f_mode, o=$f_user, g=$f_group)"
;;
esac
${TEST} ! -f "$f_eg" || ${ECHO} " [$f_eg]"