forked from pool/afterburn
Accepting request 879393 from home:sayalilunkad
OBS-URL: https://build.opensuse.org/request/show/879393 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/afterburn?expand=0&rev=1
This commit is contained in:
commit
9b71b91a0c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
22
_service
Normal file
22
_service
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="url">https://github.com/coreos/afterburn.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
<param name="filename">afterburn</param>
|
||||||
|
<param name="revision">v4.6.0</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
<param name="changesauthor">slunkad@suse.de</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
<service name="cargo_vendor" mode="disabled">
|
||||||
|
<param name="srcdir">afterburn</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
3
afterburn-4.6.0.tar.gz
Normal file
3
afterburn-4.6.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:64e4173fab0a8acb671645dcb64fd676fe445be9ac99c8d68bf75b1a5ec51102
|
||||||
|
size 91481
|
5
afterburn.changes
Normal file
5
afterburn.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 16 11:18:33 UTC 2021 - Sayali Lunkad <sayali.lunkad@suse.com>
|
||||||
|
|
||||||
|
Initial commit
|
||||||
|
-
|
93
afterburn.spec
Normal file
93
afterburn.spec
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
# spec file for package afterburn
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
||||||
|
Name: afterburn
|
||||||
|
Version: 4.6.0
|
||||||
|
Release: 0
|
||||||
|
Summary: A simple cloud provider agent
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/coreos/afterburn/
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.gz
|
||||||
|
Source2: cargo_config
|
||||||
|
|
||||||
|
ExcludeArch: %ix86 s390x ppc64le armhfp armv7hl
|
||||||
|
|
||||||
|
BuildRequires: cargo
|
||||||
|
BuildRequires: pkgconfig(openssl)
|
||||||
|
BuildRequires: rust >= 1.44.0
|
||||||
|
|
||||||
|
%description
|
||||||
|
Afterburn is a one-shot agent for cloud-like platforms which interacts with provider-specific metadata endpoints.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -qa1
|
||||||
|
mkdir .cargo
|
||||||
|
cp %{SOURCE2} .cargo/config
|
||||||
|
# Remove exec bits to prevent an issue in fedora shebang checking
|
||||||
|
find vendor -type f -name \*.rs -exec chmod -x '{}' \;
|
||||||
|
|
||||||
|
%build
|
||||||
|
export RUSTFLAGS=%{rustflags}
|
||||||
|
cargo build --offline --release
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||||
|
install -D -d -m 0755 %{buildroot}%{_unitdir}
|
||||||
|
|
||||||
|
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-checkin.service %{buildroot}%{_unitdir}/%{name}-checkin.service
|
||||||
|
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-firstboot-checkin.service %{buildroot}%{_unitdir}/%{name}-firstboot-checkin.service
|
||||||
|
sed -e 's,@DEFAULT_INSTANCE@,'core',' < systemd/%{name}-sshkeys@.service.in > systemd/%{name}-sshkeys@.service.tmp
|
||||||
|
mv systemd/%{name}-sshkeys@.service.tmp systemd/%{name}-sshkeys@.service
|
||||||
|
install -m 0644 %{_builddir}/%{name}-%{version}/systemd/%{name}-sshkeys@.service %{buildroot}%{_unitdir}/%{name}-sshkeys@.service
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre %{name}.service
|
||||||
|
%service_add_pre %{name}-checkin.service
|
||||||
|
%service_add_pre %{name}-firstboot-checkin.service
|
||||||
|
%service_add_pre %{name}-sshkeys@.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%service_add_post %{name}.service
|
||||||
|
%service_add_post %{name}-checkin.service
|
||||||
|
%service_add_post %{name}-firstboot-checkin.service
|
||||||
|
%service_add_post %{name}-sshkeys@.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun %{name}.service
|
||||||
|
%service_del_preun %{name}-checkin.service
|
||||||
|
%service_del_preun %{name}-firstboot-checkin.service
|
||||||
|
%service_del_preun %{name}-sshkeys@.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun %{name}.service
|
||||||
|
%service_del_postun %{name}-checkin.service
|
||||||
|
%service_del_postun %{name}-firstboot-checkin.service
|
||||||
|
%service_del_postun %{name}-sshkeys@.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{_bindir}/afterburn
|
||||||
|
%{_unitdir}/afterburn.service
|
||||||
|
%{_unitdir}/afterburn-checkin.service
|
||||||
|
%{_unitdir}/afterburn-firstboot-checkin.service
|
||||||
|
%{_unitdir}/afterburn-sshkeys@.service
|
||||||
|
|
||||||
|
%changelog
|
5
cargo_config
Normal file
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[source.crates-io]
|
||||||
|
replace-with = "vendored-sources"
|
||||||
|
|
||||||
|
[source.vendored-sources]
|
||||||
|
directory = "vendor"
|
3
vendor.tar.gz
Normal file
3
vendor.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c448d7a7e520de78e9ab30f3a4c1c1adbdb679215a73d3fa4f1c35af238f6a2a
|
||||||
|
size 18591700
|
Loading…
Reference in New Issue
Block a user