project-config/nodepool/elements/infra-package-needs/pre-install.d/00-gentoo-useflags
Matthew Thode a8e7fbe127
fix rsyslog builds on gentoo
A new version was stabilized on the 5th that allows for more complex
ssl usage.

also, alphabetize the use flag definitions based on package name.

Change-Id: Ie6f3f8462e98ca24879db9ef942ec81072330323
2018-10-07 05:11:12 -05:00

19 lines
668 B
Bash
Executable File

#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# needed for unbound
if [ "${DISTRO_NAME}" == "gentoo" ]; then
mkdir -p /etc/portage/package.use
echo "app-admin/rsyslog openssl" >> /etc/portage/package.use/rsyslog
echo "dev-lang/python sqlite" >> /etc/portage/package.use/python
echo "dev-libs/openssl static-libs -bindist" >> /etc/portage/package.use/openssl
echo "net-misc/openssh -bindist" >> /etc/portage/package.use/openssh
echo "sys-apps/systemd audit curl gcrypt importd lzma nat" >> /etc/portage/package.use/systemd
echo "sys-libs/zlib static-libs" >> /etc/portage/package.use/zlib
fi