summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:00:39 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:00:39 +0000
commit93d0811a260d43b54bbc9578b0b39b5ae9087c1d (patch)
tree5344d714ab65a994d9d48f3257cf32ed1e2c9b8d
parent366fecaae30b315dbb033c5cc2fc4085430f3182 (diff)
automatic import of catatonitopeneuler24.03_LTSopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--catatonit.spec97
-rw-r--r--sources1
3 files changed, 99 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f9137f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v0.1.7.tar.gz
diff --git a/catatonit.spec b/catatonit.spec
new file mode 100644
index 0000000..31dcb8f
--- /dev/null
+++ b/catatonit.spec
@@ -0,0 +1,97 @@
+Name: catatonit
+Epoch: 3
+Version: 0.1.7
+Release: 7%{?dist}
+Summary: A signal-forwarding process manager for containers
+License: GPLv3+
+URL: https://github.com/openSUSE/catatonit
+Source0: https://github.com/openSUSE/catatonit/archive/v%{version}.tar.gz
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: file
+BuildRequires: gcc
+BuildRequires: git
+BuildRequires: glibc-static
+BuildRequires: libtool
+Obsoletes: podman-%{name} <= 2:4.1.2
+Provides: podman-%{name} = %{epoch}:%{version}-%{release}
+
+%description
+Catatonit is a /sbin/init program for use within containers. It
+forwards (almost) all signals to the spawned child, tears down
+the container when the spawned child exits, and otherwise
+cleans up other exited processes (zombies).
+
+This is a reimplementation of other container init programs (such as
+"tini" or "dumb-init"), but uses modern Linux facilities (such as
+signalfd(2)) and has no additional features.
+
+%prep
+%autosetup -Sgit -n %{name}-%{version}
+
+%build
+autoreconf -fi
+%configure
+%{__make} %{?_smp_mflags}
+
+# Make sure we *always* build a static binary. Otherwise we'll break containers
+# that don't have the necessary shared libs.
+file ./%{name} | grep 'statically linked'
+if [ $? != 0 ]; then
+ echo "ERROR: %{name} binary must be statically linked!"
+ exit 1
+fi
+
+%install
+install -dp %{buildroot}%{_libexecdir}/%{name}
+install -p %{name} %{buildroot}%{_libexecdir}/%{name}
+install -dp %{buildroot}%{_libexecdir}/podman
+ln -s %{_libexecdir}/%{name}/%{name} %{buildroot}%{_libexecdir}/podman/%{name}
+
+%files
+%license COPYING
+%doc README.md
+%dir %{_libexecdir}/%{name}
+%{_libexecdir}/%{name}/%{name}
+%dir %{_libexecdir}/podman
+%{_libexecdir}/podman/%{name}
+
+%changelog
+* Tue Jul 26 2022 Jindrich Novy <jnovy@redhat.com> - 3:0.1.7-7
+- make sure podman-catatonit is always obsoleted
+- Related: #2061316
+
+* Fri Jul 22 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-6
+- Rebuild for combined gating with podman
+- Related: #2061316
+
+* Fri Jul 22 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-5
+- Empty ruleset in gating.yaml
+- Related: #2061316
+
+* Wed Jul 20 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-4
+- Remove osci.brew-build.tier0.functional from gating.yaml
+- Related: #2061316
+
+* Tue Jul 19 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-3
+- Add gating.yaml to dist-git
+- Related: #2061316
+
+* Tue Jul 19 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-2
+- Obsolete and provides podman-catatonit
+- Related: #2061316
+
+* Tue Jun 28 2022 Jindrich Novy <jnovy@redhat.com> - 0.1.7-1
+- update to 0.1.7
+- Related: #2061316
+
+* Wed Apr 29 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.5-2
+- complain if not statically linked, patch from Jindrich Novy <jnovy@redhat.com>
+
+* Wed Apr 29 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.5-1
+- bump to v0.1.5
+- static binary to not break containers that don't have necessary shared libs
+
+* Wed Feb 19 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.4-1
+- first build for review
+- source copied from openSUSE @ https://build.opensuse.org/package/show/openSUSE:Factory/catatonit
diff --git a/sources b/sources
new file mode 100644
index 0000000..2e577eb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4e88a5a12a13ec1787eb6b301e839d65 v0.1.7.tar.gz