DISTRO_PET_REPOS 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #PKG_DOCS_PET_REPOS
  2. #where to download the pet pkgs databases from.
  3. #first field is for testing the url.
  4. #second field is full URI of the database file.
  5. #third field is name of db file when local and after being processed into standard format
  6. # (in the case of PET databases, the names are the same and no processing is required)
  7. #110607 i was putting many "common" pet pkgs in the 'quirky' repo, now using 'common'.
  8. #110608 simplify pet pkg search order.
  9. #111124 add arm architecture repo.
  10. #111126 Packages-puppy-noarch-official now has all no-architecture PETs, supplanting -common-.
  11. #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
  12. #130111 name ARCHDIR possible clash, use xTARGETARCH.
  13. xTARGETARCH=""
  14. if [ "$DISTRO_TARGETARCH" != "x86" ];then #defined in /etc/DISTRO_SPECS
  15. xTARGETARCH="${DISTRO_TARGETARCH}" #ex: arm
  16. fi
  17. #PET_REPOS
  18. #hardcode the pet repos in here...
  19. #first field is for testing the url.
  20. #second field is full URI of the repo
  21. #third field is the name of db-file(s) associated with that repo. it may have glob wildcards.
  22. # ex: Packages-puppy-4-official (note, url paths are in the database)
  23. if [ "$xTARGETARCH" = "" ];then
  24. PKG_DOCS_PET_REPOS="ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-${DISTRO_DB_SUBNAME}-official|Packages-puppy-${DISTRO_DB_SUBNAME}-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-wary5-official|Packages-puppy-wary5-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-common-official|Packages-puppy-common-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-5-official|Packages-puppy-5-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-4-official|Packages-puppy-4-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-3-official|Packages-puppy-3-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-2-official|Packages-puppy-2-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-noarch-official|Packages-puppy-noarch-official"
  25. PET_REPOS='ibiblio.org|http://distro.ibiblio.org//puppylinux|Packages-puppy-*-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-*-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-*-official mirror.aarnet.edu.au|ftp://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-*-official ibiblio.org|http://distro.ibiblio.org//puppylinux|Packages-puppy-*-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-*-official ftp.vcu.edu|ftp://ftp.vcu.edu/pub/gnu+linux/puppylinux|Packages-puppy-*-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-*-official mirror.aarnet.edu.au|http://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-*-official mirror.internode.on.net|http://mirror.internode.on.net/pub/puppylinux|Packages-puppy-*-official'
  26. else
  27. PKG_DOCS_PET_REPOS="ibiblio.org|http://distro.ibiblio.org/puppylinux/${xTARGETARCH}/Packages-puppy-${DISTRO_DB_SUBNAME}-official|Packages-puppy-${DISTRO_DB_SUBNAME}-official ibiblio.org|http://distro.ibiblio.org/puppylinux/Packages-puppy-noarch-official|Packages-puppy-noarch-official"
  28. PET_REPOS="ibiblio.org|http://distro.ibiblio.org/puppylinux/${xTARGETARCH}|Packages-puppy-${DISTRO_DB_SUBNAME}-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux/${xTARGETARCH}|Packages-puppy-${DISTRO_DB_SUBNAME}-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux/${xTARGETARCH}|Packages-puppy-${DISTRO_DB_SUBNAME}-official ibiblio.org|http://distro.ibiblio.org/puppylinux|Packages-puppy-noarch-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-noarch-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-noarch-official"
  29. fi
  30. #PACKAGELISTS_PET_ORDER
  31. #this defines where Woof looks first and second (and third, etc.) for pet pkgs
  32. if [ "$xTARGETARCH" = "" ];then #x86.
  33. PACKAGELISTS_PET_ORDER="Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official"
  34. #110722 fiddling with this again...
  35. case $DISTRO_BINARY_COMPAT in #in file DISTRO_SPECS
  36. mageia) #Drake Puppy
  37. PACKAGELISTS_PET_ORDER="Packages-puppy-drake-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official"
  38. ;;
  39. ubuntu)
  40. #110622 have to leave Packages-puppy-5-official in for ubuntu...
  41. PACKAGELISTS_PET_ORDER="Packages-puppy-5-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-4-official"
  42. [ -f Packages-puppy-${DISTRO_DB_SUBNAME}-official ] && PACKAGELISTS_PET_ORDER="Packages-puppy-${DISTRO_DB_SUBNAME}-official ${PACKAGELISTS_PET_ORDER}"
  43. ;;
  44. puppy) #includes Puppy 4.3.1, wary 5.x
  45. case $DISTRO_COMPAT_VERSION in
  46. 4)
  47. PACKAGELISTS_PET_ORDER='Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-4-official'
  48. ;;
  49. *) #wary5
  50. PACKAGELISTS_PET_ORDER="Packages-puppy-${DISTRO_DB_SUBNAME}-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-4-official"
  51. ;;
  52. esac
  53. ;;
  54. slackware) #110816 slacko
  55. PACKAGELISTS_PET_ORDER='Packages-puppy-slacko-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official'
  56. ;;
  57. *)
  58. [ -f Packages-puppy-${DISTRO_DB_SUBNAME}-official ] && PACKAGELISTS_PET_ORDER="Packages-puppy-${DISTRO_DB_SUBNAME}-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official"
  59. ;;
  60. esac
  61. else
  62. #arm arch. etc...
  63. PACKAGELISTS_PET_ORDER="Packages-puppy-${DISTRO_DB_SUBNAME}-official Packages-puppy-noarch-official"
  64. fi