Blame rpm/kernel-cert-subpackage
|
Michal Marek |
d8f177 |
%package -n %{-n*}-ueficert
|
|
Michal Marek |
a4cd5e |
Summary: UEFI Secure Boot Certificate For Package %{-n*}-kmp
|
|
Michal Marek |
d8f177 |
Group: System/Kernel
|
|
Michal Suchanek |
e98096 |
Requires(pre): suse-kernel-rpm-scriptlets
|
|
Michal Suchanek |
a133bf |
Requires(postun): suse-kernel-rpm-scriptlets
|
|
Michal Marek |
d8f177 |
%description -n %{-n*}-ueficert
|
|
Michal Marek |
d8f177 |
This package contains the UEFI Secure Boot certificate used to sign
|
|
Michal Marek |
a4cd5e |
modules in the %{-n*}-kmp packages.
|
|
Michal Marek |
d8f177 |
|
|
Michal Suchanek |
ab8dd2 |
%define run_if_exists run_if_exists() { \
|
|
Michal Suchanek |
ab8dd2 |
if [ -x "$1" ] ; then \
|
|
Michal Suchanek |
ab8dd2 |
"$@" \
|
|
Michal Suchanek |
ab8dd2 |
else \
|
|
Michal Suchanek |
ab8dd2 |
echo Cannot execute "$1" >&2 \
|
|
Michal Suchanek |
ab8dd2 |
fi \
|
|
Michal Suchanek |
ab8dd2 |
} \
|
|
Michal Suchanek |
ab8dd2 |
run_if_exists
|
|
Michal Suchanek |
ab8dd2 |
|
|
Michal Suchanek |
e98096 |
%pre -n %{-n*}-ueficert
|
|
Michal Suchanek |
e98096 |
/usr/lib/module-init-tools/kernel-scriptlets/cert-pre --certs "@CERTS@" "$@"
|
|
Michal Suchanek |
e98096 |
|
|
Michal Marek |
d8f177 |
%post -n %{-n*}-ueficert
|
|
Michal Suchanek |
e98096 |
/usr/lib/module-init-tools/kernel-scriptlets/cert-post --certs "@CERTS@" "$@"
|
|
Michal Marek |
d8f177 |
|
|
Michal Marek |
d8f177 |
%preun -n %{-n*}-ueficert
|
|
Michal Suchanek |
ab8dd2 |
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/cert-preun --certs "@CERTS@" "$@"
|
|
Michal Marek |
d8f177 |
|
|
Michal Marek |
d8f177 |
%postun -n %{-n*}-ueficert
|
|
Michal Suchanek |
ab8dd2 |
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/cert-postun --certs "@CERTS@" "$@"
|
|
Michal Suchanek |
e98096 |
|
|
Michal Suchanek |
e98096 |
%posttrans -n %{-n*}-ueficert
|
|
Michal Suchanek |
e98096 |
/usr/lib/module-init-tools/kernel-scriptlets/cert-posttrans --certs "@CERTS@" "$@"
|
|
Michal Marek |
d8f177 |
|
|
Michal Marek |
d8f177 |
%files -n %{-n*}-ueficert
|
|
Michal Marek |
d8f177 |
%defattr(-, root, root)
|
|
Michal Marek |
d8f177 |
%dir /etc/uefi
|
|
Michal Marek |
d8f177 |
/etc/uefi/certs
|