[BACK]Return to fill_chroot CVS log [TXT][DIR] Up to [local] / openbsd / fill_chroot

Diff for /openbsd/fill_chroot/fill_chroot between version 1.11 and 1.14

version 1.11, 2008/09/16 23:28:04 version 1.14, 2008/10/21 20:10:35
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: fill_chroot,v 1.10 2008/09/16 22:13:21 andrew Exp $  # $RedRiver: fill_chroot,v 1.13 2008/09/17 20:08:17 andrew Exp $
   
 CHROOT=${CHROOT:=/home/andrew/www}  CHROOT=${CHROOT:=/home/andrew/www}
 export CHROOT  export CHROOT
   
 _find="-name '*.so.*' -o -name '*.so' -o ( -name perl -a -type f )"  _find="-name *.so.* -o -name *.so -o ( -name perl -a -type f )"
   
 install -d -m 1750 -o www -g bin ${CHROOT}/tmp  install -d -m 1750 -o www -g bin ${CHROOT}/tmp
 for d in ${CHROOT}/{bin,sbin,usr,var,dev}/ \  for d in ${CHROOT}/{bin,sbin,usr,var,dev}/ \
Line 15 
Line 15 
         install -d -m 0555 -o root -g wheel $d          install -d -m 0555 -o root -g wheel $d
 done  done
   
 echo Installing ld.so  
 echo pax -r -w -L -p e /usr/libexec/ld.so ${CHROOT}  
 pax -r -w -L -p e /usr/libexec/ld.so ${CHROOT}  
   
 echo Making devices  echo Making devices
 cd ${CHROOT}/dev  cd ${CHROOT}/dev
 /dev/MAKEDEV std  /dev/MAKEDEV std
 cd ${OLDPWD}  cd ${OLDPWD}
   
 echo Installing perl  echo Installing perl into ${CHROOT}
 perl_to_chroot  perl_to_chroot
   
 if [ -e /usr/local/sbin/femail ]; then  if [ -e /usr/local/sbin/femail ]; then
         echo Installing femail          echo Installing femail into ${CHROOT}
         echo pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT}          echo pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT}
         pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT}          pax -r -w -L -p e /usr/local/sbin/femail ${CHROOT}
 else  else
Line 44 
Line 40 
 fi  fi
   
 if [ -e /usr/local/bin/aspell ]; then  if [ -e /usr/local/bin/aspell ]; then
         echo Installing aspell          echo Installing aspell into ${CHROOT}
         for d in \          for d in \
                 /usr/local/bin/aspell \                  /usr/local/bin/aspell \
                 /usr/local/lib/aspell \                  /usr/local/lib/aspell \
Line 57 
Line 53 
         _find="${_find} -o ( -name aspell -a -type f )"          _find="${_find} -o ( -name aspell -a -type f )"
 fi  fi
   
 echo Installing dependencies  echo Installing dependencies into ${CHROOT}
 for d in `find ${CHROOT}/usr ${_find} | \  find ${CHROOT}/usr  ${_find} |
      xargs find_depends | \       xargs find_depends | \
      sort -u `; do       sort -u | \
   {
     echo pax -r -w -L -p e $d ${CHROOT}      local _d
     pax -r -w -L -p e $d ${CHROOT}      while read _d; do
 done          echo pax -r -w -L -p e ${_d##${CHROOT}} ${CHROOT}
           pax -r -w -L -p e ${_d##${CHROOT}} ${CHROOT}
       done
   }
   
 echo Fixing ldconfig \(/var/run/ld.so.hints\)  echo Fixing ldconfig \(/var/run/ld.so.hints\)
 fix_ldconfig  fix_ldconfig

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.14

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>