From 46cb96d841e9667dd20d11a140e5d777c787bd47 Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Tue, 23 Jan 2024 21:28:04 +0800 Subject: [PATCH] alvistack/v2.1.10 git clean -xdf tar zcvf ../conmon_2.1.10.orig.tar.gz --exclude=.git . debuild -uc -us cp conmon.spec ../conmon_2.1.10-1.spec cp ../conmon*2.1.10*.{gz,xz,spec,dsc} /osc/home\:alvistack/containers-conmon-2.1.10/ rm -rf ../conmon*2.1.10*.* See https://github.com/containers/conmon/issues/348 Signed-off-by: Wong Hoi Sing Edison --- conmon.spec | 72 +++++++++++++++++++++++++++++++++ debian/.gitignore | 5 +++ debian/changelog | 5 +++ debian/conmon.install | 1 + debian/conmon.lintian-overrides | 4 ++ debian/control | 27 +++++++++++++ debian/copyright | 21 ++++++++++ debian/rules | 21 ++++++++++ debian/source/format | 1 + debian/source/lintian-overrides | 2 + 10 files changed, 159 insertions(+) create mode 100644 conmon.spec create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/conmon.install create mode 100644 debian/conmon.lintian-overrides create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides diff --git a/conmon.spec b/conmon.spec new file mode 100644 index 00000000..a39a2c2a --- /dev/null +++ b/conmon.spec @@ -0,0 +1,72 @@ +# Copyright 2024 Wong Hoi Sing Edison +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +%global debug_package %{nil} + +%global source_date_epoch_from_changelog 0 + +Name: conmon +Epoch: 100 +Version: 2.1.10 +Release: 1%{?dist} +Summary: OCI container runtime monitor +License: Apache-2.0 +URL: https://github.com/containers/conmon/tags +Source0: %{name}_%{version}.orig.tar.gz +%if 0%{?rhel} == 7 +BuildRequires: devtoolset-11 +BuildRequires: devtoolset-11-gcc +BuildRequires: devtoolset-11-gcc-c++ +BuildRequires: devtoolset-11-libatomic-devel +%endif +BuildRequires: gcc +BuildRequires: glib2-devel +BuildRequires: glibc-static +BuildRequires: libseccomp-devel +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: systemd-devel +Requires: libglib-2.0.so.0()(64bit) +Requires: libseccomp.so.2()(64bit) + +%description +conmon is a monitoring program and communication tool between a +container manager (like podman or CRI-O) and an OCI runtime (like runc +or crun) for a single container. + +%prep +%autosetup -T -c -n %{name}_%{version}-%{release} +tar -zx -f %{S:0} --strip-components=1 -C . + +%build +%if 0%{?rhel} == 7 +. /opt/rh/devtoolset-11/enable +%endif +set -ex && \ + export GIT_COMMIT="2dcd736e46ded79a53339462bc251694b150f870" && \ + export GIT_BRANCH="main" && \ + export GIT_BRANCH_CLEAN="main" && \ +%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 + export CFLAGS='-I /usr/include/libseccomp' && \ +%endif + make bin/conmon + +%install +make DESTDIR=%{buildroot} PREFIX=%{_prefix} install.bin + +%files +%license LICENSE +%{_bindir}/conmon + +%changelog diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 00000000..8b4cbb22 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,5 @@ +*.substvars +*debhelper* +.debhelper +conmon +files diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..dfd27ab4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +conmon (100:2.1.10-1) UNRELEASED; urgency=medium + + * https://github.com/containers/conmon/releases/tag/v2.1.10 + + -- Wong Hoi Sing Edison Tue, 23 Jan 2024 21:27:47 +0800 diff --git a/debian/conmon.install b/debian/conmon.install new file mode 100644 index 00000000..22ccc9ff --- /dev/null +++ b/debian/conmon.install @@ -0,0 +1 @@ +usr/bin/conmon diff --git a/debian/conmon.lintian-overrides b/debian/conmon.lintian-overrides new file mode 100644 index 00000000..aeda9d3e --- /dev/null +++ b/debian/conmon.lintian-overrides @@ -0,0 +1,4 @@ +conmon: copyright-without-copyright-notice +conmon: initial-upload-closes-no-bugs +conmon: no-manual-page +conmon: zero-byte-file-in-doc-directory diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..daccc22e --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: conmon +Section: devel +Priority: optional +Standards-Version: 4.5.0 +Maintainer: Wong Hoi Sing Edison +Homepage: https://github.com/containers/conmon/tags +Vcs-Browser: https://github.com/alvistack/containers-conmon +Vcs-Git: https://github.com/alvistack/containers-conmon.git +Build-Depends: + debhelper, + debhelper-compat (= 10), + libglib2.0-dev, + libseccomp-dev, + libsystemd-dev, + pkg-config, + +Package: conmon +Architecture: amd64 +Description: OCI container runtime monitor + conmon is a monitoring program and communication tool between a + container manager (like podman or CRI-O) and an OCI runtime (like runc + or crun) for a single container. +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + libglib2.0-0, + libseccomp2, diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..12900b41 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: debian/* +Copyright: 2024 Wong Hoi Sing Edison +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + The complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..310281fd --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +SHELL := /bin/bash + +override_dh_auto_build: + set -ex && \ + export GIT_COMMIT="2dcd736e46ded79a53339462bc251694b150f870" && \ + export GIT_BRANCH="main" && \ + export GIT_BRANCH_CLEAN="main" && \ + make bin/conmon + +override_dh_auto_install: + make DESTDIR=debian/tmp PREFIX=/usr install.bin + +override_dh_auto_test: + +override_dh_auto_clean: + make clean + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 00000000..147594d9 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,2 @@ +conmon source: file-without-copyright-information +conmon source: no-debian-changes