Advertisement
s243a

DISTRO_PET_REPOS (/root/.packages)

Aug 29th, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.54 KB | None | 0 0
  1. #------------------
  2. #PKG_DOCS_PET_REPOS - where to download the pet pkgs databases from.
  3. #------------------
  4. # 1|2|3
  5. #   1 - domain. for testing the url.
  6. #   2 - full URI of the database file.
  7. #   3 - name of db file when local and after being processed into standard format
  8. #  (in the case of PET databases, the names are the same and no processing is required)
  9.  
  10. if ( echo "$BUILD_FROM_WOOF" | grep -q ';' ) ; then
  11.     WCE_BRANCH=$(echo "$BUILD_FROM_WOOF" | cut -f 1 -d ';')
  12. else
  13.     WCE_BRANCH=testing
  14. fi
  15.  
  16. PKG_DOCS_PET_REPOS="
  17. z|https://raw.githubusercontent.com/puppylinux-woof-CE/woof-CE/${WCE_BRANCH}/woof-distro/x86/${DISTRO_BINARY_COMPAT}/${DISTRO_DB_SUBNAME}/Packages-puppy-${DISTRO_DB_SUBNAME}-official|z
  18. z|https://raw.githubusercontent.com/puppylinux-woof-CE/woof-CE/testing/woof-distro/Packages-puppy-noarch-official|z
  19. "
  20.  
  21. #---------
  22. #PET_REPOS - hardcode the pet repos in here...
  23. #---------
  24. # 1|2|3
  25. #   1 - domain. for testing the url.
  26. #   2 - full URI of the repo
  27. #   3 - name of db-file(s) associated with that repo. it may have glob wildcards.
  28. #   ex: Packages-puppy-4-official (note, url paths are in the database)
  29.  
  30. PET_REPOS="
  31. z|http://distro.ibiblio.org/puppylinux|Packages-puppy-*-official
  32. z|http://01micko.com/wdlkmpx/puppylinux|Packages-puppy-stretch-official
  33. z|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-*-official
  34. z|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-*-official
  35. z|ftp://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-*-official
  36. z|http://distro.ibiblio.org/puppylinux|Packages-puppy-*-official
  37. z|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-*-official
  38. z|ftp://ftp.vcu.edu/pub/gnu+linux/puppylinux|Packages-puppy-*-official
  39. z|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-*-official
  40. z|http://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-*-official
  41. z|http://mirror.internode.on.net/pub/puppylinux|Packages-puppy-*-official
  42. "
  43.  
  44. #----------------------
  45. #PACKAGELISTS_PET_ORDER
  46. #----------------------
  47. #   this defines where Woof (and PPM) looks first and second
  48. #   (and third, etc.) for pet pkgs
  49.  
  50. PACKAGELISTS_PET_ORDER="
  51. Packages-puppy-${DISTRO_DB_SUBNAME}-official
  52. Packages-puppy-noarch-official
  53. "
  54.  
  55.  
  56. #---------------
  57. # fix variables
  58. #---------------
  59. PKG_DOCS_PET_REPOS="$(echo "$PKG_DOCS_PET_REPOS" | sed '/^$/d' | tr '\n' ' ' | sed 's% $%%')"
  60. PET_REPOS="$(echo "$PET_REPOS" | sed '/^$/d' | tr '\n' ' ' | sed 's% $%%')"
  61. PACKAGELISTS_PET_ORDER="$(echo "$PACKAGELISTS_PET_ORDER" | sed '/^$/d' | tr '\n' ' ' | sed 's% $%%')"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement