sys-apps/keyutils: Clean slate to reapply our changes

This commit is contained in:
Krzesimir Nowak 2021-12-15 20:20:25 +01:00
parent 03c56caf2e
commit f6a355da10

View File

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