2017-09-13 21:57:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2017-11-01 02:50:15 +00:00
|
|
|
# get the directories in order
|
|
|
|
mkdir -p /etc/portage/profile
|
2020-04-03 05:50:14 +00:00
|
|
|
mkdir -p /etc/portage/package.accept_keywords
|
2021-01-21 17:35:27 +00:00
|
|
|
if [[ -f /etc/portage/package.keywords ]]; then
|
|
|
|
mv /etc/portage/package.keywords /etc/portage/package.accept_keywords/prebuilt-1
|
|
|
|
fi
|
2017-11-01 02:50:15 +00:00
|
|
|
mkdir -p /etc/portage/package.mask
|
|
|
|
mkdir -p /etc/portage/package.unmask
|
|
|
|
mkdir -p /etc/portage/package.use
|
2017-09-13 21:57:12 +00:00
|
|
|
|
|
|
|
# needed in order to install pip packages as root
|
|
|
|
echo 'dev-python/pip vanilla' >> /etc/portage/package.use/pip
|
|
|
|
# needed to create disk images
|
|
|
|
echo 'sys-fs/lvm2 -thin' >> /etc/portage/package.use/grub
|
|
|
|
echo 'sys-boot/grub device-mapper' >> /etc/portage/package.use/grub
|
2020-08-13 03:23:29 +00:00
|
|
|
echo 'sys-boot/grub grub_platforms_efi-64' >> /etc/portage/package.use/grub # always enable efi-64
|
2021-01-21 17:35:27 +00:00
|
|
|
if [[ 'amd64' == "${ARCH}" ]]; then
|
|
|
|
echo 'sys-boot/grub grub_platforms_pc' >> /etc/portage/package.use/grub # bios support for bios systems
|
|
|
|
fi
|
|
|
|
|
|
|
|
# tool for setting python versions
|
|
|
|
echo "~dev-lang/python-exec-2.4.6 ~${ARCH}" >> /etc/portage/package.accept_keywords/python-exec-conf
|
|
|
|
echo "dev-lang/python-exec-conf ~${ARCH}" >> /etc/portage/package.accept_keywords/python-exec-conf
|
2017-09-13 21:57:12 +00:00
|
|
|
|
2020-04-03 05:50:14 +00:00
|
|
|
# needed to install static kernel
|
2021-01-21 17:35:27 +00:00
|
|
|
echo "sys-kernel/gentoo-kernel-bin ~${ARCH}" >> /etc/portage/package.accept_keywords/kernel
|
|
|
|
echo "virtual/dist-kernel ~${ARCH}" >> /etc/portage/package.accept_keywords/kernel
|
2019-01-28 00:16:51 +00:00
|
|
|
|
2020-08-13 03:23:29 +00:00
|
|
|
# musl only valid for amd64 for now
|
2017-11-01 05:48:50 +00:00
|
|
|
if [[ "${GENTOO_PROFILE}" == *"musl"* ]]; then
|
|
|
|
echo "dev-vcs/git -gpg" >> /etc/portage/package.use/musl # gpg doesn't build on musl profiles
|
2019-01-15 15:47:46 +00:00
|
|
|
echo "sys-libs/pam cracklib" >> /etc/portage/package.use/musl
|
2021-01-21 17:35:27 +00:00
|
|
|
echo "~sys-block/open-iscsi-2.1.1 ~${ARCH}" >> /etc/portage/package.accept_keywords/musl
|
|
|
|
echo "~sys-block/open-isns-0.100 ~${ARCH}" >> /etc/portage/package.accept_keywords/musl
|
2017-11-01 05:48:50 +00:00
|
|
|
fi
|