diff options
author | Jim Ramsay <lack@gentoo.org> | 2006-11-27 18:45:52 +0000 |
---|---|---|
committer | Jim Ramsay <lack@gentoo.org> | 2006-11-27 18:45:52 +0000 |
commit | 7bf53fd9ae9169b44dfac244bac4b254faf33dcc (patch) | |
tree | 4f71057fe768e957c27037bed4eddbfa87c9c4e8 /eclass | |
parent | ppc stable, bug #143404 (diff) | |
download | historical-7bf53fd9ae9169b44dfac244bac4b254faf33dcc.tar.gz historical-7bf53fd9ae9169b44dfac244bac4b254faf33dcc.tar.bz2 historical-7bf53fd9ae9169b44dfac244bac4b254faf33dcc.zip |
Replaced call to 'doins -r' with 'cp -pPR' so we don't have to manually assign permissions afterwards
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/rox.eclass | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/eclass/rox.eclass b/eclass/rox.eclass index de4955b5ad6d..9c9e737a262c 100644 --- a/eclass/rox.eclass +++ b/eclass/rox.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.16 2006/11/15 19:28:33 lack Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.17 2006/11/27 18:45:52 lack Exp $ # ROX eclass Version 2 @@ -80,8 +80,9 @@ rox_src_compile() { else rm -rf src fi - # set permissions flag here! - SET_PERM=true + if [[ -d build ]]; then + rm -rf build + fi # Restore the original AppRun mv AppRun.bak AppRun @@ -94,38 +95,14 @@ rox_src_install() { dodoc "${i}" done fi - insinto /usr/lib/rox - doins -r ${APPNAME} - - #set correct permissions on files, in case they are wrong - #include all subdirectories in search, just in case - find "${D}/usr/lib/rox/${APPNAME}" -name 'AppRun' -print0 | xargs -0 chmod 755 >/dev/null 2>&1 - find "${D}/usr/lib/rox/${APPNAME}" -name 'AppletRun' -print0 | xargs -0 chmod 755 >/dev/null 2>&1 - - # set permissions for programs where we have libdir script - if [ -f "${D}/usr/lib/rox/${APPNAME}/libdir" ]; then - chmod 755 "${D}/usr/lib/rox/${APPNAME}/libdir" - fi - # set permissions for programs where we have rox_run script (all who using rox-clib ) - if [ -f "${D}/usr/lib/rox/${APPNAME}/rox_run" ]; then - chmod 755 "${D}/usr/lib/rox/${APPNAME}/rox_run" - fi - - # some programs have choice_install script - if [ -f "${D}/usr/lib/rox/${APPNAME}/choice_install" ]; then - chmod 755 "${D}/usr/lib/rox/${APPNAME}/choice_install" - fi + insinto /usr/lib/rox - # set permissions on all binares files for compiled programs per arch - if [ -n "${SET_PERM}" ]; then - ARCH="`uname -m`" - case ${ARCH} in - i?86) ARCH=ix86 ;; - esac - PLATFORM="`uname -s`-${ARCH}" - chmod -R 755 "${D}/usr/lib/rox/${APPNAME}/${PLATFORM}" - fi + # Use 'cp -pPR' and not 'doins -r' here so we don't have to do a flurry of + # 'chmod' calls on the executables in the appdir - Just be sure that all the + # files in the original appdir prior to this step are correct, as they will + # all be preserved. + cp -pPR ${APPNAME} ${D}/usr/lib/rox/${APPNAME} #create a script in bin to run the application from command line dodir /usr/bin/ |