xmcd (2.6-23) install.sh

Summary

 install.sh |   90 ++++++-------------------------------------------------------
 1 file changed, 9 insertions(+), 81 deletions(-)

    
download this patch

Patch contents

--- xmcd-2.6.orig/install.sh
+++ xmcd-2.6/install.sh
@@ -49,15 +49,15 @@
 XMCD_URL=http://metalab.unc.edu/tkan/xmcd/
 DIRPERM=755
 SCRPERM=755
-FILEPERM=444
-BINPERM=711
-XBINPERM=4711
-OWNER=bin
-GROUP=bin
-BINOWNER=bin
-BINGROUP=bin
+FILEPERM=644
+BINPERM=755
+XBINPERM=4755
+OWNER=root
+GROUP=root
+BINOWNER=root
+BINGROUP=root
 XBINOWNER=root
-XBINGROUP=bin
+XBINGROUP=root
 ERRFILE=/tmp/xmcd.err
 TMPFILE=/tmp/xmcdinst.$$
 STARTUP_SCRIPT=.xmcd_start
@@ -963,80 +963,8 @@
 fi
 
 
-# Remove old xmcd components
-
-$ECHO "\n\nChecking for old xmcd components..."
-
-# Old binaries
-dirs=`echo "$OPATH" | $AWK -F: '{ for (i = 1; i <= NF; i++) print $i }'`
-for i in $BINTRYDIRS
-do
-	dirs=`$ECHO "$dirs\n$i"`
-done
-dirs=`($ECHO "$dirs" | \
-       sed -e 's/^[ 	]*//' -e '/^$/d' | \
-       sort | uniq) 2>/dev/null`
-
-if [ -n "$dirs" ]
-then
-	for i in $dirs
-	do
-	    if [ "$i" = "$BINDIR" -o "$i" = "." ]
-	    then
-		    continue
-	    fi
-
-	    for j in xmcd cda cddbcmd wm2xmcd dp2xmcd $STARTUP_SCRIPT
-	    do
-		tryfile=${i}/${j}
-		if [ -f $tryfile -a -x $tryfile ]
-		then
-		    if [ -z "$BATCH" ]
-		    then
-			YNDEF=y
-			if get_yn "Remove old executable $tryfile"
-			then
-			    rm -f $tryfile
-			    if [ $? -ne 0 ]
-			    then
-				$ECHO "Cannot remove $tryfile."
-			    fi
-			fi
-		    else
-			rm -f $tryfile
-		    fi
-		fi
-	    done
-	done
-fi
-
-# Old xmcd app-defaults files
-dirs=`for i in $LIBTRYDIRS $LIBDIR; do echo "$i"; done | sort | uniq`
-for i in $dirs
-do
-	tryfile=${i}/app-defaults/XMcd
-	if [ -f "$tryfile" ]
-	then
-		if [ -z "$BATCH" ]
-		then
-		    YNDEF=y
-		    if get_yn "Remove old xmcd resource file $tryfile"
-		    then
-			rm -f $tryfile
-			if [ $? -ne 0 ]
-			then
-			    $ECHO "Cannot remove ${tryfile}."
-			fi
-		    fi
-		else
-		    rm -f $tryfile
-		fi
-	fi
-done
-
-
 # Set architecture-specific binary directory
-ARCHBIN="${XMCDLIB}/bin-${OS_SYS_T}-${OS_MACH_T}"
+ARCHBIN=`echo ${BINDIR%bin}`lib/xmcd/
 
 
 # Make all necessary directories