Skip to content

Commit

Permalink
Merge pull request #1591 from jpculp/conditional-shibaken
Browse files Browse the repository at this point in the history
shibaken: only build for aws variants
  • Loading branch information
jpculp authored May 21, 2021
2 parents 68ce9f7 + 3b86822 commit 51f95a9
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions packages/os/os.spec
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ Requires: %{_cross_os}migration
Requires: %{_cross_os}netdog
Requires: %{_cross_os}schnauzer
Requires: %{_cross_os}settings-committer
Requires: %{_cross_os}shibaken
Requires: %{_cross_os}signpost
Requires: %{_cross_os}storewolf
Requires: %{_cross_os}sundog
Expand All @@ -79,6 +78,10 @@ Requires: %{_cross_os}pluto
Requires: %{_cross_os}static-pods
%endif

%if %{_is_aws_variant}
Requires: %{_cross_os}shibaken
%endif

%if "%{_cross_variant}" == "aws-ecs-1"
Requires: %{_cross_os}ecs-settings-applier
%endif
Expand Down Expand Up @@ -126,11 +129,6 @@ Summary: Setting generator for templated settings values.
%description -n %{_cross_os}schnauzer
%{summary}.

%package -n %{_cross_os}shibaken
Summary: Setting generator for populating admin container user-data from IMDS.
%description -n %{_cross_os}shibaken
%{summary}.

%package -n %{_cross_os}thar-be-settings
Summary: Applies changed settings to a Bottlerocket system
%description -n %{_cross_os}thar-be-settings
Expand Down Expand Up @@ -222,6 +220,13 @@ Summary: Manages user-defined K8S static pods
%{summary}.
%endif

%if %{_is_aws_variant}
%package -n %{_cross_os}shibaken
Summary: Setting generator for populating admin container user-data from IMDS.
%description -n %{_cross_os}shibaken
%{summary}.
%endif

%package -n %{_cross_os}bootstrap-containers
Summary: Manages bootstrap-containers
%description -n %{_cross_os}bootstrap-containers
Expand Down Expand Up @@ -269,7 +274,6 @@ echo "** Output from non-static builds:"
-p sundog \
-p schnauzer \
-p bork \
-p shibaken \
-p thar-be-settings \
-p thar-be-updates \
-p servicedog \
Expand All @@ -288,6 +292,9 @@ echo "** Output from non-static builds:"
%if "%{_cross_variant}" == "aws-ecs-1"
-p ecs-settings-applier \
%endif
%if %{_is_aws_variant}
-p shibaken \
%endif
%if %{_is_k8s_variant}
%if %{_is_aws_variant}
-p pluto \
Expand All @@ -308,7 +315,7 @@ fi
install -d %{buildroot}%{_cross_bindir}
for p in \
apiserver \
early-boot-config netdog sundog schnauzer bork shibaken corndog \
early-boot-config netdog sundog schnauzer bork corndog \
thar-be-settings thar-be-updates servicedog host-containers \
storewolf settings-committer \
migrator \
Expand All @@ -317,6 +324,9 @@ for p in \
%if "%{_cross_variant}" == "aws-ecs-1"
ecs-settings-applier \
%endif
%if %{_is_aws_variant}
shibaken \
%endif
%if %{_is_k8s_variant}
%if %{_is_aws_variant}
pluto \
Expand Down Expand Up @@ -423,9 +433,6 @@ install -p -m 0644 %{S:300} %{buildroot}%{_cross_udevrulesdir}/80-ephemeral-stor
%files -n %{_cross_os}bork
%{_cross_bindir}/bork

%files -n %{_cross_os}shibaken
%{_cross_bindir}/shibaken

%files -n %{_cross_os}thar-be-settings
%{_cross_bindir}/thar-be-settings
%{_cross_unitdir}/settings-applier.service
Expand Down Expand Up @@ -490,6 +497,11 @@ install -p -m 0644 %{S:300} %{buildroot}%{_cross_udevrulesdir}/80-ephemeral-stor
%{_cross_bindir}/ecs-settings-applier
%endif

%if %{_is_aws_variant}
%files -n %{_cross_os}shibaken
%{_cross_bindir}/shibaken
%endif

%if %{_is_k8s_variant}
%if %{_is_aws_variant}
%files -n %{_cross_os}pluto
Expand Down

0 comments on commit 51f95a9

Please sign in to comment.