Skip to content

Commit

Permalink
alvistack/v2.1.9+20231216.331c602d
Browse files Browse the repository at this point in the history
    git clean -xdf
    tar zcvf ../conmon_2.1.9+20231216.331c602d.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp conmon.spec ../conmon_2.1.9+20231216.331c602d-1.spec
    cp ../conmon*2.1.9+20231216.331c602d*.{gz,xz,spec,dsc} /osc/home\:alvistack/containers-conmon-2.1.9+20231216.331c602d/
    rm -rf ../conmon*2.1.9+20231216.331c602d*.*

See containers#476

Signed-off-by: Wong Hoi Sing Edison <[email protected]>
  • Loading branch information
hswong3i committed Dec 16, 2023
1 parent 331c602 commit f840351
Show file tree
Hide file tree
Showing 11 changed files with 147 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.9
2.1.9+20231216.331c602d
60 changes: 60 additions & 0 deletions conmon.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Copyright 2023 Wong Hoi Sing Edison <[email protected]>
#
# 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}

Name: conmon
Epoch: 100
Version: 2.1.9+20231216.331c602d
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
BuildRequires: gcc
BuildRequires: glib2-devel
BuildRequires: glibc-static
BuildRequires: libseccomp-devel
BuildRequires: libtool
BuildRequires: pkgconfig
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
set -ex && \
export GIT_COMMIT="331c602d4c99141595a84736b9bbd611b5908565" && \
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
5 changes: 5 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.substvars
*debhelper*
.debhelper
conmon
files
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
conmon (100:2.1.9+20231216.331c602d-1) UNRELEASED; urgency=medium

* https://github.com/containers/conmon/commit/331c602d4c99141595a84736b9bbd611b5908565

-- Wong Hoi Sing Edison <[email protected]> Sat, 16 Dec 2023 11:00:20 +0800
1 change: 1 addition & 0 deletions debian/conmon.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin/conmon
4 changes: 4 additions & 0 deletions debian/conmon.lintian-overrides
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Source: conmon
Section: devel
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <[email protected]>
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,
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,
21 changes: 21 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: debian/*
Copyright: 2023 Wong Hoi Sing Edison <[email protected]>
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".
21 changes: 21 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/make -f

SHELL := /bin/bash

override_dh_auto_build:
set -ex && \
export GIT_COMMIT="331c602d4c99141595a84736b9bbd611b5908565" && \
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 $@
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
conmon source: file-without-copyright-information
conmon source: no-debian-changes

0 comments on commit f840351

Please sign in to comment.