for x in "$@" ; do
if [[ -e ${x} ]] ; then
- install -m0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/bin"
+ install -m 0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/bin"
else
echo "!!! ${0##*/}: ${x} does not exist" 1>&2
false
def dofile(src,dst):
- os.system("install -m0644 '%s' '%s'" % (src, dst))
+ os.system("install -m 0644 '%s' '%s'" % (src, dst))
def install(basename, dirname, options, prefix=""):
for x in "$@" ; do
if [ -e "${x}" ] ; then
- install -m0644 "${x}" "${D}/usr/share/info"
+ install -m 0644 "${x}" "${D}/usr/share/info"
gzip -f -9 "${D}/usr/share/info/${x##*/}"
else
echo "doinfo: ${x} does not exist"
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/dolib.a,v 1.8 2004/10/10 10:07:20 carpaski Exp $
-exec env LIBOPTIONS="-m0644" \
+exec env LIBOPTIONS="-m 0644" \
dolib "$@"
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/dolib.so,v 1.12 2004/10/10 10:07:20 carpaski Exp $
-exec env LIBOPTIONS="-m0755" \
+exec env LIBOPTIONS="-m 0755" \
dolib "$@"
install -d "${D}/usr/share/man/${mandir}"
fi
- install -m0644 "${x}" "${D}/usr/share/man/${mandir}"
+ install -m 0644 "${x}" "${D}/usr/share/man/${mandir}"
((ret+=$?))
elif [[ ! -e ${x} ]] ; then
echo "doman: ${x} does not exist" 1>&2
for x in "$@" ; do
if [[ -e ${x} ]] ; then
- install -m0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/sbin"
+ install -m 0755 -o @rootuser@ -g @wheelgroup@ "${x}" "${D}${DESTTREE}/sbin"
else
echo "!!! ${0##*/}: ${x} does not exist" 1>&2
false
export INSDESTTREE=""
export EXEDESTTREE=""
export DOCDESTTREE=""
-export INSOPTIONS="-m0644"
-export EXEOPTIONS="-m0755"
-export LIBOPTIONS="-m0644"
-export DIROPTIONS="-m0755"
+export INSOPTIONS="-m 0644"
+export EXEOPTIONS="-m 0755"
+export LIBOPTIONS="-m 0644"
+export DIROPTIONS="-m 0755"
export MOPREFIX=${PN}
check_KV() {
fi
fi
- install -m0700 -d "${WORKDIR}" || die "Failed to create dir '${WORKDIR}'"
+ install -m 0700 -d "${WORKDIR}" || die "Failed to create dir '${WORKDIR}'"
[ -d "$WORKDIR" ] && cd "${WORKDIR}"
echo ">>> Unpacking source..."
src_unpack
#dbkey=${PORTAGE_CACHEDIR}/${CATEGORY}/${PF}
if [ ! -d "${dbkey%/*}" ]; then
- install -d -g ${PORTAGE_GID} -m2775 "${dbkey%/*}"
+ install -d -g ${PORTAGE_GID} -m 2775 "${dbkey%/*}"
fi
# Make it group writable. 666&~002==664
# Save current environment and touch a success file. (echo for success)
umask 002
set | @EGREP@ -v "^SANDBOX_" > "${T}/environment" 2>/dev/null
- chown portage:portage "${T}/environment" &>/dev/null
+ chown @portageuser@:@portagegroup@ "${T}/environment" &>/dev/null
chmod g+w "${T}/environment" &>/dev/null
fi