1
0

allocator.yaml is owned by the admin

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/aws-nitro-enclaves-cli?expand=0&rev=9
This commit is contained in:
Olaf Hering 2021-11-24 13:40:31 +00:00 committed by Git OBS Bridge
parent 6bed0e71b9
commit fafc40a7b3

View File

@ -30,6 +30,7 @@ Source0: %name-%version.tar.xz
Source1: vendor.tar.xz Source1: vendor.tar.xz
Source2: cargo_config Source2: cargo_config
Requires(pre): system-group-%ne_system_group = %version-%release Requires(pre): system-group-%ne_system_group = %version-%release
Requires(post): coreutils
Requires: aws-nitro-enclaves-binaryblobs Requires: aws-nitro-enclaves-binaryblobs
Requires: jq Requires: jq
BuildRequires: cargo > 1.44 BuildRequires: cargo > 1.44
@ -91,14 +92,11 @@ cp -aviLt "$_" \
bootstrap/nitro-enclaves-allocator \ bootstrap/nitro-enclaves-allocator \
bootstrap/nitro-cli-config \ bootstrap/nitro-cli-config \
%nil %nil
mkdir -vp '%buildroot%_sysconfdir/nitro_enclaves'
cp -aviLt "$_" \
bootstrap/allocator.yaml \
%nil
d='%buildroot%_datadir/nitro_enclaves' d='%buildroot%_datadir/nitro_enclaves'
mkdir -vp "${d}" mkdir -vp "${d}"
cp -aviLt "$_" \ cp -aviLt "$_" \
bootstrap/allocator.yaml \
vsock_proxy/configs/vsock-proxy.yaml \ vsock_proxy/configs/vsock-proxy.yaml \
%nil %nil
blobs="${d}/blobs" blobs="${d}/blobs"
@ -141,11 +139,17 @@ cp -aviLt "$_" "${suc}"
%pre -n system-group-%ne_system_group -f system-group-%ne_system_group.pre %pre -n system-group-%ne_system_group -f system-group-%ne_system_group.pre
%service_add_pre nitro-enclaves-allocator.service nitro-enclaves-vsock-proxy.service %service_add_pre nitro-enclaves-allocator.service nitro-enclaves-vsock-proxy.service
%post %post
%tmpfiles_create %_tmpfilesdir/%name.conf if test "$1" -eq 1
then
mkdir -vpm 0755 '%_sysconfdir/nitro_enclaves'
cp -aviLt '%_sysconfdir/nitro_enclaves' \
%_datadir/nitro_enclaves/allocator.yaml
fi
ld='/var/log/nitro_enclaves' ld='/var/log/nitro_enclaves'
mkdir -vp "${ld}" mkdir -vp "${ld}"
chmod -v 0770 "${ld}" chmod -v 0770 "${ld}"
chown -v '0:%ne_system_group' "${ld}" chown -v '0:%ne_system_group' "${ld}"
%tmpfiles_create %_tmpfilesdir/%name.conf
%udev_rules_update %udev_rules_update
%service_add_post nitro-enclaves-allocator.service nitro-enclaves-vsock-proxy.service %service_add_post nitro-enclaves-allocator.service nitro-enclaves-vsock-proxy.service
%preun %preun
@ -160,8 +164,8 @@ chown -v '0:%ne_system_group' "${ld}"
%license THIRD_PARTY_LICENSES %license THIRD_PARTY_LICENSES
%license THIRD_PARTY_LICENSES*.html %license THIRD_PARTY_LICENSES*.html
%dir %_datadir/nitro_enclaves %dir %_datadir/nitro_enclaves
%config(noreplace) %_sysconfdir/nitro_enclaves
%_bindir/* %_bindir/*
%_datadir/nitro_enclaves/allocator.yaml
%_datadir/nitro_enclaves/vsock-proxy.yaml %_datadir/nitro_enclaves/vsock-proxy.yaml
%_tmpfilesdir/%name.conf %_tmpfilesdir/%name.conf
%_udevrulesdir/%name.conf %_udevrulesdir/%name.conf