sys-apps/keyutils: Apply Flatcar modifications

This commit is contained in:
Krzesimir Nowak 2021-09-21 12:09:50 +02:00
parent 9eca6ea5c4
commit 1e8e64a6db
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,3 @@
We keep this package in overlay, because we install the keyutils
config file in /usr instead of /etc, and then establish some symlinks
during installation and with systemd's tmpfiles.d utility.

View File

@ -0,0 +1,3 @@
L /etc/request-key.conf - - - - ../usr/share/keyutils/request-key.conf
d /etc/request-key.d - - - - -
d /etc/keyutils - - - - -

View File

@ -3,7 +3,7 @@
EAPI=7
inherit toolchain-funcs linux-info multilib-minimal usr-ldscript
inherit toolchain-funcs linux-info multilib-minimal usr-ldscript systemd
DESCRIPTION="Linux Key Management Utilities"
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git"
@ -26,6 +26,8 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.5.9-header-extern-c.patch
)
MAKEOPTS+=" ETCDIR=/usr/share/keyutils"
pkg_setup() {
# To prevent a failure in test phase and false positive bug reports
# we are enforcing the following options because testsuite expects
@ -110,11 +112,15 @@ multilib_src_test() {
}
multilib_src_install() {
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/keyutils.conf"
# Possibly undo the setting for USE=static (see src_compile).
export NO_ARLIB=$(usex static-libs 0 1)
default
use static || gen_usr_ldscript -a keyutils
dosym ../usr/share/keyutils/request-key.conf /etc/request-key.conf
dodir /etc/request-key.d
dodir /etc/keyutils
}
multilib_src_install_all() {