mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 09:56:59 +02:00
sys-apps/keyutils: Apply Flatcar modifications
This commit is contained in:
parent
f6a355da10
commit
c5e8ec0fc9
@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs linux-info multilib-minimal usr-ldscript
|
||||
TMPFILES_OPTIONAL=1
|
||||
inherit toolchain-funcs linux-info multilib-minimal usr-ldscript systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Linux Key Management Utilities"
|
||||
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git"
|
||||
@ -26,6 +27,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 +113,15 @@ multilib_src_test() {
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
dotmpfiles "${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