Changeset cee08ee


Ignore:
Timestamp:
May 3, 2013 9:05:52 AM (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
411e12f
Parents:
5093cde
Message:

Really set the wayback machine now, tested back to 4.1.1 even ;)

Location:
src-sh/warden/scripts/backend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/createtemplate.sh

    r5093cde rcee08ee  
    3333     if [ "$oldFBSD" = "YES" ] ; then 
    3434         # Get the .inf list file 
    35          fetch -o "${JDIR}/.download/base.inf" "http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/${FBSDARCH}/${FBSDVER}/base/base.inf" 
     35         fetch -o "${JDIR}/.download/${oldStr}.inf" "http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/${FBSDARCH}/${FBSDVER}/${oldStr}/${oldStr}.inf" 
    3636         if [ $? -ne 0 ] ; then 
    37            exit_err "Failed downloading: FreeBSD ${FBSDVER} - base.inf" 
     37           exit_err "Failed downloading: FreeBSD ${FBSDVER} - ${oldStr}.inf" 
    3838         fi 
    3939         # Now read in the list of files to fetch 
     
    4242            echo "$line" | grep -q '^cksum' 
    4343            if [ $? -ne 0 ] ; then continue ; fi 
    44             fName=`echo $line | cut -d " " -f 1 | sed 's|cksum|base|g'` 
    45             fetch -o "${JDIR}/.download/$fName" "http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/${FBSDARCH}/${FBSDVER}/base/$fName" 
     44            fName=`echo $line | cut -d " " -f 1 | sed "s|cksum|$oldStr|g"` 
     45            fetch -o "${JDIR}/.download/$fName" "http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/${FBSDARCH}/${FBSDVER}/${oldStr}/$fName" 
    4646            if [ $? -ne 0 ] ; then 
    4747              exit_err "Failed downloading: FreeBSD ${FBSDVER} - $fName" 
    4848            fi 
    49          done < ${JDIR}/.download/base.inf 
     49         done < ${JDIR}/.download/${oldStr}.inf 
    5050         return 
    5151     fi 
     
    8888    elif [ "$oldFBSD" = "YES" ] ; then 
    8989      cd ${JDIR}/.download/ 
    90       cat base.?? | tar --unlink -xpzf - -C ${TDIR} #2>/dev/null 
     90      cat ${oldStr}.?? | tar --unlink -xpzf - -C ${TDIR} #2>/dev/null 
    9191      cd ${JDIR} 
    9292    else 
     
    115115      cd ${JDIR}/.download/ 
    116116      echo "Extrating FreeBSD..." 
    117       cat base.?? | tar --unlink -xpzf - -C ${JDIR}/.templatedir 2>/dev/null 
     117      cat ${oldStr}.?? | tar --unlink -xpzf - -C ${JDIR}/.templatedir 2>/dev/null 
    118118      cd ${JDIR} 
    119119      echo "Creating template archive..." 
     
    139139  fi 
    140140 
     141  rm -rf ${JDIR}/.download 
    141142  echo "Created jail template: $TNICK" 
    142143  exit 0 
     
    208209if [ -n "$FBSDVER" ] ; then 
    209210  mV=`echo $FBSDVER | cut -d '.' -f 1` 
    210   if [ $mV -lt 9 ] ; then oldFBSD="YES"; fi 
     211  if [ $mV -lt 9 ] ; then  
     212     oldFBSD="YES" 
     213     oldStr="base" 
     214  fi 
     215  if [ $mV -lt 5 ] ; then  
     216     # VERY VERY old! 
     217     oldFBSD="YES" 
     218     oldStr="bin" 
     219  fi 
    211220fi 
    212221 
  • src-sh/warden/scripts/backend/functions.sh

    r283f63e rcee08ee  
    977977     for i in `ls -d ${JDIR}/.warden-template* 2>/dev/null` 
    978978     do  
     979        if [ ! -e "$i/bin/sh" ] ; then continue ; fi 
    979980        NICK=`echo "$i" | sed "s|${JDIR}/.warden-template-||g"` 
    980981        file "$i/bin/sh" 2>/dev/null | grep -q "64-bit" 
     
    990991           TYPE="FreeBSD" 
    991992        fi 
    992         echo -e "${NICK}        - $TYPE $VER ($ARCH)" 
     993        echo -e "${NICK} - $TYPE $VER ($ARCH)" 
    993994     done 
    994995   else 
Note: See TracChangeset for help on using the changeset viewer.