--- /usr/portage/eclass/rox.eclass 2005-07-11 11:35:37.000000000 -0400 +++ rox.eclass 2005-09-23 06:04:19.000000000 -0400 @@ -16,6 +16,8 @@ # For examples refer to ebuilds in rox-extra/ +# need python to byte compile modules, if any +inherit python if [ -z "$ROX_VER" ]; then ROX_VER="2.1.0" @@ -38,7 +40,7 @@ rox_src_compile() { cd ${APPNAME} #Some packages need to be compiled. - chmod 755 ./AppRun + chmod a+x ./AppRun if [ -d "src/" ]; then ./AppRun --compile || die "Failed to compile the package" rm -rf src @@ -53,44 +55,50 @@ fi insinto /usr/lib/rox doins -r ${APPNAME} - #set correct permisions on files, in case they are wrong - chmod 755 ${D}/usr/lib/rox/${APPNAME}/AppRun - chmod 755 ${D}/usr/lib/rox/${APPNAME}/AppletRun + #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' | xargs chmod a+x >/dev/null 2>&1 + find ${D}/usr/lib/rox/${APPNAME} -name 'AppletRun' | xargs chmod a+x >/dev/null 2>&1 - # set permisions for programms where we have libdir script + # 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 + chmod a+x ${D}/usr/lib/rox/${APPNAME}/libdir fi - # set permisiaon for programms where we have rox_run script (all who using rox-clib ) + # 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 + chmod a+x ${D}/usr/lib/rox/${APPNAME}/rox_run fi - # some programms have choice_install script + # 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 + chmod a+x ${D}/usr/lib/rox/${APPNAME}/choice_install fi - # set permisions on all binares files for compiled programms per arch + # 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} + chmod -R a+x ${D}/usr/lib/rox/${APPNAME}/${PLATFORM} fi #create a script in bin to run the application from command line dodir /usr/bin/ - echo "#!/bin/sh" > "${D}/usr/bin/${APPNAME}" - echo "exec /usr/lib/rox/${APPNAME}/AppRun \"\$@\"" >> "${D}/usr/bin/${APPNAME}" + cat >${D}/usr/bin/${APPNAME} </dev/null 2>&1 } rox_pkg_postinst() { - einfo "The $APPNAME has been installed into /usr/lib/rox" + einfo "$APPNAME has been installed into /usr/lib/rox" einfo "You can run it by enter $APPNAME in command line or" einfo "can run it by pointing Rox file manage to that location" einfo "and click on new application"