mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
sys-apps/keyutils: Apply Flatcar modifications
This commit is contained in:
parent
9eca6ea5c4
commit
1e8e64a6db
3
sdk_container/src/third_party/coreos-overlay/sys-apps/keyutils/README.md
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/sys-apps/keyutils/README.md
vendored
Normal 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.
|
@ -0,0 +1,3 @@
|
||||
L /etc/request-key.conf - - - - ../usr/share/keyutils/request-key.conf
|
||||
d /etc/request-key.d - - - - -
|
||||
d /etc/keyutils - - - - -
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user