Advertisement
s243a

/var/packages/DISTRO_COMPAT_REPOS

Feb 14th, 2020
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.62 KB | None | 0 0
  1. #
  2. # DISTRO_COMPAT_REPOS
  3. #
  4.  
  5. if [ "$DISTRO_COMPAT_VERSION" = "" ] ; then
  6.     if [ -f ./DISTRO_SPECS ]; then
  7.       . ./DISTRO_SPECS
  8.     elif [ -f /etc/DISTRO_SPECS ]; then
  9.       . /etc/DISTRO_SPECS
  10.     fi
  11. fi
  12.  
  13. case "$DISTRO_TARGETARCH" in
  14.    x86)  
  15.             if [ "$DISTRO_BINARY_COMPAT" = arch ]; then
  16.                 DBIN_ARCH=i486
  17.             else
  18.                 DBIN_ARCH=i386
  19.             fi; ;;
  20.    x86_64) DBIN_ARCH=amd64 ;;
  21. esac
  22.  
  23. #----------------------
  24. #PKG_DOCS_DISTRO_COMPAT - where to download the compat-distro pkgs databases from
  25. #---------------------
  26. # 1|2|3
  27. #   1 - domain. for testing the url.
  28. #   2 - full URI of the database file.
  29. #   3 - name of db file when local and after being processed into standard format
  30.  
  31. PKG_DOCS_DISTRO_COMPAT="
  32. z|https://32.arlm.tyzoid.com/${DBIN_ARCH}/core/core.db.tar.gz|Packages-arch-${DISTRO_COMPAT_VERSION}-core
  33. z|https://32.arlm.tyzoid.com/${DBIN_ARCH}/community/community.db.tar.gz|Packages-arch-${DISTRO_COMPAT_VERSION}-community
  34. z|https://32.arlm.tyzoid.com/${DBIN_ARCH}/extra/extra.db.tar.gz|Packages-arch-${DISTRO_COMPAT_VERSION}-extra
  35. "
  36.  
  37. #-------------------
  38. #REPOS_DISTRO_COMPAT - hardcode the compat-distro repos in here...
  39. #-------------------
  40. # 1|2|3
  41. #   1 - domain. for testing the url.
  42. #   2 - full URI of the repo
  43. #   3 - name of db-file(s) associated with that repo. it may have glob wildcards.
  44.  
  45. REPOS_DISTRO_COMPAT="
  46. z|https://32.arlm.tyzoid.com|Packages-arch-${DISTRO_COMPAT_VERSION}-*
  47. "
  48.  
  49.  
  50. #---------------
  51. # fix variables
  52. #---------------
  53. PKG_DOCS_DISTRO_COMPAT="$(echo $PKG_DOCS_DISTRO_COMPAT)"
  54. REPOS_DISTRO_COMPAT="$(echo $REPOS_DISTRO_COMPAT)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement