Changeset 1526 in MondoRescue
- Timestamp:
- Jul 6, 2007, 12:55:59 PM (18 years ago)
- Location:
- branches/2.2.4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.4/contrib/mkcd/setup
r911 r1526 146 146 147 147 if uname -a | grep Knoppix > /dev/null ; then 148 echo "Knoppix LiveCD"149 return148 echo "Knoppix LiveCD" 149 return 150 150 fi 151 151 … … 156 156 fi 157 157 158 for fname in `find /etc -maxdepth 1 | grep release` /etc/issue.net; do158 for fname in `find /etc -maxdepth 1 | grep -E 'release|issue'` ; do 159 159 res=`cat $fname 2>/dev/null | grep -i "linux" | head -n1 | tr -s '\t' ' '` 160 160 [ "$res" = "" ] && res=`cat $fname |head -n1 | tr -s '\t' ' '` -
branches/2.2.4/mindi-busybox/distributions/gentoo/mindi-busybox.ebuild
r1444 r1526 10 10 LICENSE="GPL-2" 11 11 SLOT="0" 12 KEYWORDS=" ~x86 ia64 -*"12 KEYWORDS="x86 ia64 -*" 13 13 DEPEND="virtual/libc" 14 14 RDEPEND=">=app-arch/bzip2-0.9 -
branches/2.2.4/mindi/distributions/gentoo/mindi.ebuild
r1510 r1526 11 11 LICENSE="GPL-2" 12 12 SLOT="0" 13 KEYWORDS=" ~x86-*"13 KEYWORDS="x86 ia64 -*" 14 14 IUSE="" 15 15 -
branches/2.2.4/mindi/mindi
r1519 r1526 297 297 298 298 CopyDependenciesToDirectory() { 299 local outdir incoming fname filesize counter 299 local outdir incoming fname filesize counter d found 300 300 outdir=$1 301 301 mkdir -p $outdir … … 303 303 counter=0 304 304 while [ "$incoming" != "" ] ; do 305 if [ -d "$incoming" ] ; then 305 # Non absolute file names should not arrive till here => skipped 306 if [ `echo "$incoming" | cut -c1` != '/' ]; then 307 LogIt "Unable to handle $incoming" 308 incoming=`ReadLine` 309 continue 310 fi 311 # no parent directory of incoming should be a link, copy is not possible in that case 312 d=`dirname "$incoming"` 313 found="false" 314 while [ $d != "/" -a $found = "false" ]; do 315 [ -h "$d" ] && found="true" 316 d=`dirname "$d"` 317 done 318 if [ -d "$incoming" ] && [ ! -h "$incoming" ]; then 306 319 find $incoming/* -maxdepth 0 2> /dev/null | CopyDependenciesToDirectory $outdir 307 elif [ -e "$incoming" ] ; then320 elif [ -e "$incoming" ] && [ $found = "false" ]; then 308 321 filesize=`du -sk $incoming | cut -f1` 309 322 if [ "$filesize" -gt "$(($CHOPSIZE*2))" ] && [ ! -h "$incoming" ] ; then … … 992 1005 echo "$fname is softlink" >> $LOGFILE 993 1006 else 994 ldd $fname 2> /dev/null | ProcessLDD $fname1007 ldd $fname 2> /dev/null | ProcessLDD 995 1008 fi 996 1009 done … … 1023 1036 local i path fname_to_find location output resolved tmp stub cache_id loclist 1024 1037 fname_to_find="$1" 1038 # It's an absolute path 1025 1039 if echo "$fname_to_find" | grep -x "/.*" ; then 1026 1040 output="$fname_to_find" … … 1031 1045 return 0 1032 1046 fi 1047 # It's not an absolute path 1033 1048 output="" 1034 #for path in /etc /usr /usr/bin /usr/sbin /bin /usr/X11R6/bin /sbin /usr/local/bin /usr/local/sbin /usr/lib /usr/lib64 /lib /lib64 /usr/local/lib /usr/local/lib64 /usr/X11R6/lib /usr/X11R6/lib64 `find /usr/lib64 /lib64 /usr/local/lib64 /usr/X11R6/lib64 -type d` ; do 1035 for path in /etc /usr /usr/bin /usr/sbin /bin /usr/X11R6/bin /sbin /usr/local/bin /usr/local/sbin /usr/lib /usr/lib64 /usr/lib64/* /lib /lib64 /lib64/* /usr/local/lib /usr/local/lib64 /usr/local/lib64/* /usr/X11R6/lib /usr/X11R6/lib64 /usr/X11R6/lib64/* ; do 1036 [ ! -d "$path" ] && continue 1037 for location in "$path/$fname_to_find" ; do 1038 [ ! -e "$location" ] && continue 1039 output="$location $output" 1040 if [ -h "$location" ] ; then 1041 output="`ReadAllLink $location` $output" 1042 fi 1043 done 1049 for path in /etc /usr /usr/bin /usr/sbin /bin /usr/X11R6/bin /sbin /usr/local/bin /usr/local/sbin `find /usr/lib /lib /usr/local/lib /usr/X11R6/lib /usr/lib64 /lib64 /usr/local/lib64 /usr/X11R6/lib64 -type d -maxdepth 1 2> /dev/null` ; do 1050 #for path in /etc /usr /usr/bin /usr/sbin /bin /usr/X11R6/bin /sbin /usr/local/bin /usr/local/sbin /usr/lib /usr/lib64 /usr/lib64/* /lib /lib64 /lib64/* /usr/local/lib /usr/local/lib64 /usr/local/lib64/* /usr/X11R6/lib /usr/X11R6/lib64 /usr/X11R6/lib64/* ; do 1051 [ -h "$path" ] && continue 1052 [ ! -e "$path/$fname_to_find" ] && continue 1053 output="$path/$fname_to_find $output" 1054 if [ -h "$path/$fname_to_find" ] ; then 1055 output="`ReadAllLink $path/$fname_to_find` $output" 1056 fi 1044 1057 done 1045 1058 if [ "$output" = "" ] ; then … … 2218 2231 2219 2232 ProcessLDD() { 2220 local main_fname incoming j i fname f newf 2221 main_fname=$1 2233 local incoming f 2222 2234 read incoming 2223 2235 while [ "$incoming" != "" ] ; do 2224 2236 # We take the full path name of the dyn. lib. we want 2225 incoming=`echo "$incoming" | sed '/[[:blank:]]*.*[[:blank:]]*=>[[:blank:]]*(.*/d ; s/[[:blank:]]*.*[[:blank:]]*=>[[:blank:]]*\(\/.*\)/\1/ ; s/[[:blank:]]*\(\/.*\)[[:blank:]]*(.*/\1/'`2226 for f in `echo "$incoming"`; do2237 incoming=`echo "$incoming" | awk '{if (match($1,/\//)) {print $1} else {if (match($3,/\//)) print $3} fi}'` 2238 for f in $incoming ; do 2227 2239 echo "$f `ReadAllLink $f`" 2228 2240 done -
branches/2.2.4/mondo/distributions/gentoo/mondo.ebuild
r1510 r1526 13 13 LICENSE="GPL-2" 14 14 SLOT="0" 15 KEYWORDS=" -* ~x86"15 KEYWORDS="x86 ia64 -*" 16 16 IUSE="" 17 17
Note:
See TracChangeset
for help on using the changeset viewer.