forked from aws/amazon-ecs-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "add amazon-ecs-volume-plugin to rpm generic package (aws#462)"
This reverts commit 39c2e57.
- Loading branch information
1 parent
79e1785
commit e7e9e6e
Showing
5 changed files
with
1 addition
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
%global _cachedir %{_localstatedir}/cache | ||
%global bundled_agent_version %{version} | ||
%global no_exec_perm 644 | ||
%global debug_package %{nil} | ||
|
||
%ifarch x86_64 | ||
%global agent_image %{SOURCE3} | ||
|
@@ -39,8 +38,6 @@ Source2: ecs.service | |
Source3: https://s3.amazonaws.com/amazon-ecs-agent/ecs-agent-v%{bundled_agent_version}.tar | ||
# aarch64 Container agent docker image | ||
Source4: https://s3.amazonaws.com/amazon-ecs-agent/ecs-agent-arm64-v%{bundled_agent_version}.tar | ||
Source5: amazon-ecs-volume-plugin.service | ||
Source6: amazon-ecs-volume-plugin.socket | ||
|
||
BuildRequires: golang >= 1.7 | ||
BuildRequires: systemd | ||
|
@@ -61,7 +58,6 @@ required routes among its preparation steps. | |
|
||
%install | ||
install -D amazon-ecs-init %{buildroot}%{_libexecdir}/amazon-ecs-init | ||
install -D amazon-ecs-volume-plugin %{buildroot}%{_libexecdir}/amazon-ecs-volume-plugin | ||
install -m %{no_exec_perm} -D scripts/amazon-ecs-init.1 %{buildroot}%{_mandir}/man1/amazon-ecs-init.1 | ||
|
||
mkdir -p %{buildroot}%{_sysconfdir}/ecs | ||
|
@@ -77,32 +73,25 @@ install -m %{no_exec_perm} %{agent_image} %{buildroot}%{_cachedir}/ecs/ | |
mkdir -p %{buildroot}%{_sharedstatedir}/ecs/data | ||
|
||
install -m %{no_exec_perm} -D %{SOURCE2} $RPM_BUILD_ROOT/%{_unitdir}/ecs.service | ||
install -m %{no_exec_perm} -D %{SOURCE5} $RPM_BUILD_ROOT/%{_unitdir}/amazon-ecs-volume-plugin.service | ||
install -m %{no_exec_perm} -D %{SOURCE6} $RPM_BUILD_ROOT/%{_unitdir}/amazon-ecs-volume-plugin.socket | ||
|
||
%files | ||
%{_libexecdir}/amazon-ecs-init | ||
%{_mandir}/man1/amazon-ecs-init.1* | ||
%{_libexecdir}/amazon-ecs-volume-plugin | ||
%config(noreplace) %ghost %{_sysconfdir}/ecs/ecs.config | ||
%config(noreplace) %ghost %{_sysconfdir}/ecs/ecs.config.json | ||
%ghost %{_cachedir}/ecs/ecs-agent.tar | ||
%{_cachedir}/ecs/%{basename:%{agent_image}} | ||
%{_cachedir}/ecs/state | ||
%dir %{_sharedstatedir}/ecs/data | ||
%{_unitdir}/ecs.service | ||
%{_unitdir}/amazon-ecs-volume-plugin.service | ||
%{_unitdir}/amazon-ecs-volume-plugin.socket | ||
|
||
%post | ||
# Symlink the bundled ECS Agent at loadable path. | ||
ln -sf %{basename:%{agent_image}} %{_cachedir}/ecs/ecs-agent.tar | ||
%systemd_post ecs | ||
%systemd_post amazon-ecs-volume-plugin.service | ||
|
||
%postun | ||
%systemd_postun ecs.service | ||
%systemd_postun_with_restart amazon-ecs-volume-plugin | ||
%systemd_postun | ||
|
||
%changelog | ||
* Fri Dec 03 2021 Mythri Garaga Mannjunatha <[email protected]> - 1.57.1-1 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.