--- Firebird-2.5.2.26540-0/builds/install/arch-specific/linux/misc/makeInstallImage.sh.in.orig 2013-06-27 13:14:33.562335793 +0200 +++ Firebird-2.5.2.26540-0/builds/install/arch-specific/linux/misc/makeInstallImage.sh.in 2013-06-27 13:15:27.325808333 +0200 @@ -28,11 +28,6 @@ # This script builds an image of the installed system into # the gen/buildroot directory. -if [ "`whoami`" != "root" ]; then - echo 'You must be root to build package' - exit 1 -fi - # Making an assumption that this program is being run in the gen directory BuildRootDir=.. BuiltFBDir=./firebird # Where the just build fb exists. @@ -118,7 +113,6 @@ for d in $Dirs; do Dir=${TargetDir}${d} mkdir -p $Dir - chown root:root $Dir chmod 0755 $Dir done } @@ -163,7 +157,6 @@ cp $BuiltFBDir/bin/isql ${TargetDir}@FB_BINDIR@/isql cp $BuiltFBDir/bin/qli ${TargetDir}@FB_BINDIR@/qli - chown root:root ${TargetDir}@FB_BINDIR@/* chmod 0755 ${TargetDir}@FB_BINDIR@/* #sbin @@ -182,7 +175,6 @@ cp $BuiltFBDir/bin/createAliasDB.sh ${TargetDir}@FB_SBINDIR@ cp $BuiltFBDir/bin/fb_config ${TargetDir}@FB_SBINDIR@ - chown root:root ${TargetDir}@FB_SBINDIR@/* chmod 0755 ${TargetDir}@FB_SBINDIR@/* chmod 0700 ${TargetDir}@FB_SBINDIR@/*.sh @@ -206,19 +198,16 @@ for i in `find ${TargetDir}@FB_SAMPLEDIR@ -type d -print` do - chown root:root $i chmod 0555 $i done for i in `find ${TargetDir}@FB_SAMPLEDIR@ -type f -print` do - chown root:root $i chmod 0444 $i done makeDirs @FB_SAMPLEDBDIR@ cp $BuiltFBDir/examples/empbuild/*.fdb ${TargetDir}@FB_SAMPLEDBDIR@ - chown root:root ${TargetDir}@FB_SAMPLEDBDIR@/*.fdb chmod 0444 ${TargetDir}@FB_SAMPLEDBDIR@/*.fdb fi @@ -226,13 +215,11 @@ copyIfExists $BuiltFBDir/help/help.gbak ${TargetDir}@FB_HELPDIR@ cp $BuiltFBDir/help/help.fdb ${TargetDir}@FB_HELPDIR@ - chown root:root ${TargetDir}@FB_HELPDIR@/*.fdb chmod 0444 ${TargetDir}@FB_HELPDIR@/*.fdb #message file cp $BuiltFBDir/*.msg ${TargetDir}@FB_MSGDIR@ - chown root:root ${TargetDir}@FB_MSGDIR@/*.msg chmod 0444 ${TargetDir}@FB_MSGDIR@/*.msg #secureDB (access rights will be set at install time) @@ -241,7 +228,6 @@ #.h files cp $BuiltFBDir/include/*.h ${TargetDir}@FB_INCDIR@ - chown root:root ${TargetDir}@FB_INCDIR@/*.h chmod 0444 ${TargetDir}@FB_INCDIR@/*.h #lib @@ -250,20 +236,17 @@ cp -f $BuiltFBDir/lib/libib_util.so ${TargetDir}@FB_LIBDIR@/libib_util.so copyIfExists $BuiltFBDir/lib/libicu*.so* ${TargetDir}@FB_LIBDIR@ - chown root:root ${TargetDir}@FB_LIBDIR@/*.so* chmod 0755 ${TargetDir}@FB_LIBDIR@/*.so* #plugins cp -df $BuiltFBDir/plugins/* ${TargetDir}@FB_PLUGDIR@ - chown root:root ${TargetDir}@FB_PLUGDIR@/*.so* chmod 0755 ${TargetDir}@FB_PLUGDIR@/*.so* #intl cp $BuiltFBDir/intl/libfbintl.so ${TargetDir}@FB_INTLDIR@/fbintl cp $BuildRootDir/gen/install/misc/fbintl.conf ${TargetDir}@FB_INTLDIR@ - chown root:root ${TargetDir}@FB_INTLDIR@/fbintl* chmod 0755 ${TargetDir}@FB_INTLDIR@/fbintl chmod 0644 ${TargetDir}@FB_INTLDIR@/fbintl.conf @@ -276,7 +259,6 @@ cp $BuildRootDir/src/extlib/ib_udf2.sql ${TargetDir}@FB_UDFDIR@ cp $BuildRootDir/src/extlib/fbudf/fbudf.sql ${TargetDir}@FB_UDFDIR@ - chown root:root ${TargetDir}@FB_UDFDIR@/*.so ${TargetDir}@FB_UDFDIR@/*.sql chmod 0755 ${TargetDir}@FB_UDFDIR@/*.so chmod 0644 ${TargetDir}@FB_UDFDIR@/*.sql @@ -287,9 +269,7 @@ cp $BuildRootDir/doc/WhatsNew ${TargetDir}@FB_CONFDIR@/WhatsNew cp $BuildRootDir/doc/README.user ${TargetDir}@FB_CONFDIR@/README - chown -R root:root ${TargetDir}@FB_MISCDIR@ for i in `find ${TargetDir}@FB_MISCDIR@ -print`; do - chown root:root $i if [ -d $i ]; then chmod 0755 $i else @@ -306,7 +286,6 @@ cp $BuildRootDir/gen/install/misc/firebird.init.d.* ${TargetDir}@FB_MISCDIR@ cp $BuildRootDir/gen/install/misc/rc.config.firebird ${TargetDir}@FB_MISCDIR@ - chown -R root:root ${TargetDir}@FB_MISCDIR@ chmod -R go-rwx ${TargetDir}@FB_MISCDIR@ #conf @@ -314,13 +293,11 @@ cp $BuildRootDir/gen/install/misc/aliases.conf ${TargetDir}@FB_CONFDIR@ cp $BuildRootDir/gen/install/misc/fbtrace.conf ${TargetDir}@FB_CONFDIR@ - chown root:root ${TargetDir}@FB_CONFDIR@/*.conf chmod 0644 ${TargetDir}@FB_CONFDIR@/*.conf #license cp $BuildRootDir/builds/install/misc/*License.txt ${TargetDir}@FB_CONFDIR@ - chown root:root ${TargetDir}@FB_CONFDIR@/*License.txt chmod 0444 ${TargetDir}@FB_CONFDIR@/*License.txt # Create links from @libdir@ to install area.