-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packages: create container-registry settings extension
Signed-off-by: Sam Berning <[email protected]>
- Loading branch information
1 parent
2c4f886
commit 374f7b2
Showing
2 changed files
with
60 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "settings-container-registry" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
build = "../build.rs" | ||
|
||
[lib] | ||
path = "../packages.rs" | ||
|
||
[package.metadata.build-package] | ||
source-groups = [ | ||
"settings-extensions/container-registry" | ||
] | ||
|
||
# RPM BuildRequires | ||
[build-dependencies] | ||
glibc = { path = "../glibc" } | ||
|
||
# RPM Requires | ||
[dependencies] |
39 changes: 39 additions & 0 deletions
39
packages/settings-container-registry/settings-container-registry.spec
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
%global _cross_first_party 1 | ||
%undefine _debugsource_packages | ||
|
||
%global extension_name container-registry | ||
|
||
Name: %{_cross_os}settings-%{extension_name} | ||
Version: 0.0 | ||
Release: 0%{?dist} | ||
Summary: settings-%{extension_name} | ||
License: Apache-2.0 OR MIT | ||
URL: https://github.com/bottlerocket-os/bottlerocket | ||
|
||
BuildRequires: %{_cross_os}glibc-devel | ||
|
||
%description | ||
%{summary}. | ||
|
||
%prep | ||
%setup -T -c | ||
%cargo_prep | ||
|
||
%build | ||
%cargo_build --manifest-path %{_builddir}/sources/Cargo.toml \ | ||
-p settings-extension-%{extension_name} | ||
|
||
%install | ||
install -d %{buildroot}%{_cross_libexecdir} | ||
install -p -m 0755 \ | ||
${HOME}/.cache/%{__cargo_target}/release/settings-extension-%{extension_name} \ | ||
%{buildroot}%{_cross_libexecdir} | ||
|
||
install -d %{buildroot}%{_cross_libexecdir}/settings | ||
ln -sf \ | ||
../settings-extension-%{extension_name} \ | ||
%{buildroot}%{_cross_libexecdir}/settings/%{extension_name} | ||
|
||
%files | ||
%{_cross_libexecdir}/settings-extension-%{extension_name} | ||
%{_cross_libexecdir}/settings/%{extension_name} |