#PKG_DOCS_PET_REPOS
#where to download the pet pkgs databases from.
#first field is for testing the url.
#second field is full URI of the database file.
#third field is name of db file when local and after being processed into standard format
# (in the case of PET databases, the names are the same and no processing is required)
#110607 i was putting many "common" pet pkgs in the 'quirky' repo, now using 'common'.
#110608 simplify pet pkg search order.
#111124 add arm architecture repo.
#111126 Packages-pet-noarch-official now has all no-architecture PETs, supplanting -common-.
#121102 file DISTRO_SPECS has new variable DISTRO_DB_SUBNAME (visible in this file), replaces DISTRO_COMPAT_VERSION below. for 14.0-based slacko, DISTRO_DB_SUBNAME=slacko14
#130111 name ARCHDIR possible clash, use xTARGETARCH.
#131209 Packages-puppy- files renamed to Packages-pet-

xTARGETARCH=""
if [ "$DISTRO_TARGETARCH" != "x86" ];then #defined in /etc/DISTRO_SPECS
 xTARGETARCH="${DISTRO_TARGETARCH}" #ex: arm
fi

#PET_REPOS
#hardcode the pet repos in here...
#first field is for testing the url.
#second field is full URI of the repo
#third field is the name of db-file(s) associated with that repo. it may have glob wildcards.
# ex: Packages-pet-4-official (note, url paths are in the database)

if [ "$xTARGETARCH" = "" ];then
 PKG_DOCS_PET_REPOS="ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/puppylinux/Packages-pet-${DISTRO_DB_SUBNAME}-official|Packages-pet-${DISTRO_DB_SUBNAME}-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/quirky/Packages-pet-wary5-official|Packages-pet-wary5-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/quirky/Packages-pet-quirky-official|Packages-pet-quirky-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/quirky/Packages-pet-common-official|Packages-pet-common-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/puppylinux/Packages-pet-5-official|Packages-pet-5-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/puppylinux/Packages-pet-4-official|Packages-pet-4-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/puppylinux/Packages-pet-3-official|Packages-pet-3-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/puppylinux/Packages-pet-2-official|Packages-pet-2-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/quirky/Packages-pet-noarch-official|Packages-pet-noarch-official"
 PET_REPOS='ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/quirky|Packages-pet-*-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/quirky|Packages-pet-*-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/quirky|Packages-pet-*-official mirror.aarnet.edu.au|ftp://mirror.aarnet.edu.au/pub/quirky|Packages-pet-*-official ibiblio.org|http://distro.ibiblio.org/pub/linux/distributions/puppylinux|Packages-pet-*-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-pet-*-official ftp.vcu.edu|ftp://ftp.vcu.edu/pub/gnu+linux/puppylinux|Packages-pet-*-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-pet-*-official mirror.aarnet.edu.au|http://mirror.aarnet.edu.au/pub/puppylinux|Packages-pet-*-official mirror.internode.on.net|http://mirror.internode.on.net/pub/puppylinux|Packages-pet-*-official'
else
 PKG_DOCS_PET_REPOS="ibiblio.org|http://distro.ibiblio.org/quirky/${xTARGETARCH}/Packages-pet-${DISTRO_DB_SUBNAME}-official|Packages-pet-${DISTRO_DB_SUBNAME}-official ibiblio.org|http://distro.ibiblio.org/quirky/Packages-pet-noarch-official|Packages-pet-noarch-official"
 PET_REPOS="ibiblio.org|http://distro.ibiblio.org/quirky/${xTARGETARCH}|Packages-pet-${DISTRO_DB_SUBNAME}-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/quirky/${xTARGETARCH}|Packages-pet-${DISTRO_DB_SUBNAME}-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/quirky/${xTARGETARCH}|Packages-pet-${DISTRO_DB_SUBNAME}-official ibiblio.org|http://distro.ibiblio.org/quirky|Packages-pet-noarch-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/quirky|Packages-pet-noarch-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/quirky|Packages-pet-noarch-official"
fi

#PACKAGELISTS_PET_ORDER
#this defines where Woof looks first and second (and third, etc.) for pet pkgs

if [ "$xTARGETARCH" = "" ];then #x86.
 PACKAGELISTS_PET_ORDER="Packages-pet-noarch-official Packages-pet-common-official Packages-pet-wary5-official Packages-pet-4-official"
 #110722 fiddling with this again...
 case $DISTRO_BINARY_COMPAT in #in file DISTRO_SPECS
  mageia) #Drake Puppy
   PACKAGELISTS_PET_ORDER="Packages-pet-drake-official Packages-pet-noarch-official Packages-pet-common-official Packages-pet-wary5-official Packages-pet-4-official"
  ;;
  ubuntu)
   #110622 have to leave Packages-pet-5-official in for ubuntu...
   PACKAGELISTS_PET_ORDER="Packages-pet-5-official Packages-pet-noarch-official Packages-pet-common-official Packages-pet-4-official"
   [ -f Packages-pet-${DISTRO_DB_SUBNAME}-official ] && PACKAGELISTS_PET_ORDER="Packages-pet-${DISTRO_DB_SUBNAME}-official ${PACKAGELISTS_PET_ORDER}"
  ;;
  puppy) #includes Puppy 4.3.1, wary 5.x
   case $DISTRO_COMPAT_VERSION in
    4)
     PACKAGELISTS_PET_ORDER='Packages-pet-noarch-official Packages-pet-common-official Packages-pet-4-official'   
    ;;
    *) #wary5
     PACKAGELISTS_PET_ORDER="Packages-pet-${DISTRO_DB_SUBNAME}-official Packages-pet-noarch-official Packages-pet-common-official Packages-pet-4-official"
    ;;
   esac
  ;;
  slackware) #110816 slacko
   PACKAGELISTS_PET_ORDER='Packages-pet-slacko-official Packages-pet-noarch-official Packages-pet-common-official Packages-pet-wary5-official Packages-pet-4-official'
  ;;
  *)
   [ -f Packages-pet-${DISTRO_DB_SUBNAME}-official ] && PACKAGELISTS_PET_ORDER="Packages-pet-${DISTRO_DB_SUBNAME}-official Packages-pet-noarch-official Packages-pet-common-official Packages-pet-wary5-official Packages-pet-4-official"
  ;;
 esac
else
 #arm arch. etc...
 PACKAGELISTS_PET_ORDER="Packages-pet-${DISTRO_DB_SUBNAME}-official Packages-pet-noarch-official"
fi
