2017-09-13 21:57:12 +00:00
|
|
|
export DIB_RELEASE=gentoo
|
2016-01-28 22:24:12 +00:00
|
|
|
export DISTRO_NAME=gentoo
|
2021-03-05 03:35:21 +00:00
|
|
|
export EFI_BOOT_DIR="EFI/gentoo"
|
2019-07-26 22:18:40 +00:00
|
|
|
export GENTOO_PROFILE=${GENTOO_PROFILE:-'default/linux/amd64/17.1'}
|
2018-03-27 04:26:49 +00:00
|
|
|
export GENTOO_PORTAGE_CLEANUP=${GENTOO_PORTAGE_CLEANUP:-'True'}
|
2022-04-03 03:26:14 +00:00
|
|
|
export GENTOO_PYTHON_TARGETS=${GENTOO_PYTHON_TARGETS:-'python3_9'}
|
2017-11-01 03:04:29 +00:00
|
|
|
export GENTOO_OVERLAYS=${GENTOO_OVERLAYS:-''}
|
2019-07-26 22:18:40 +00:00
|
|
|
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 --autounmask=n"}
|
2018-10-08 05:39:35 +00:00
|
|
|
|
|
|
|
# set the default bash array if GENTOO_EMERGE_ENV is not defined as an array
|
|
|
|
if ! declare -p GENTOO_EMERGE_ENV 2> /dev/null | grep -q '^declare \-a'; then
|
2019-07-26 22:18:40 +00:00
|
|
|
declare -a GENTOO_EMERGE_ENV
|
|
|
|
GENTOO_EMERGE_ENV+=("USE=\"-build\"")
|
|
|
|
GENTOO_EMERGE_ENV+=("FEATURES=\"binpkg-multi-instance buildpkg parallel-fetch parallel-install\"")
|
|
|
|
GENTOO_EMERGE_ENV+=("PKGDIR=\"/tmp/portage-pkgdir\"")
|
|
|
|
GENTOO_EMERGE_ENV+=("DISTDIR=\"/tmp/portage-distdir\"")
|
|
|
|
GENTOO_EMERGE_ENV+=("PORTDIR=\"/tmp/portage-portdir\"")
|
|
|
|
export GENTOO_EMERGE_ENV
|
2018-10-08 05:39:35 +00:00
|
|
|
fi
|
|
|
|
# itterate over the array, exporting each 'line'
|
|
|
|
for (( i=0; i<${#GENTOO_EMERGE_ENV[@]}; i++ )); do
|
|
|
|
eval export "${GENTOO_EMERGE_ENV[i]}"
|
|
|
|
done
|
2017-04-02 18:26:13 +00:00
|
|
|
|
2019-12-20 23:51:55 +00:00
|
|
|
if [[ "${GENTOO_PROFILE}" == *"systemd"* ]]; then
|
|
|
|
export DIB_INIT_SYSTEM=${DIB_INIT_SYSTEM:-'systemd'}
|
|
|
|
else
|
|
|
|
export DIB_INIT_SYSTEM=${DIB_INIT_SYSTEM:-'openrc'}
|
|
|
|
fi
|