Image building tools for OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

00-gentoo-envars.bash 993B

1234567891011121314151617
  1. export DIB_RELEASE=gentoo
  2. export DISTRO_NAME=gentoo
  3. export GENTOO_PROFILE=${GENTOO_PROFILE:-'default/linux/amd64/17.0'}
  4. export GENTOO_PORTAGE_CLEANUP=${GENTOO_PORTAGE_CLEANUP:-'True'}
  5. export GENTOO_PYTHON_TARGETS=${GENTOO_PYTHON_TARGETS:-'python2_7 python3_5'}
  6. export GENTOO_PYTHON_ACTIVE_VERSION=${GENTOO_PYTHON_ACTIVE_VERSION:-'python3.5'}
  7. export GENTOO_OVERLAYS=${GENTOO_OVERLAYS:-''}
  8. export GENTOO_EMERGE_DEFAULT_OPTS=${GENTOO_EMERGE_DEFAULT_OPTS:-"--binpkg-respect-use --rebuilt-binaries=y --usepkg=y --with-bdeps=y --binpkg-changed-deps=y --quiet --jobs=2"}
  9. # set the default bash array if GENTOO_EMERGE_ENV is not defined as an array
  10. if ! declare -p GENTOO_EMERGE_ENV 2> /dev/null | grep -q '^declare \-a'; then
  11. export GENTOO_EMERGE_ENV=('USE="-build"' 'FEATURES="binpkg-multi-instance buildpkg parallel-fetch parallel-install"')
  12. fi
  13. # itterate over the array, exporting each 'line'
  14. for (( i=0; i<${#GENTOO_EMERGE_ENV[@]}; i++ )); do
  15. eval export "${GENTOO_EMERGE_ENV[i]}"
  16. done