summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:08:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:08:41 +0000
commit5dff46721edbca7c587bd94fd761849e3762f213 (patch)
tree868241f370b2a53805983e3baf20135b47763325
parentAdding upstream version 6.3.0+ds1. (diff)
downloadgolang-github-checkpoint-restore-go-criu-5dff46721edbca7c587bd94fd761849e3762f213.tar.xz
golang-github-checkpoint-restore-go-criu-5dff46721edbca7c587bd94fd761849e3762f213.zip
Adding debian version 6.3.0+ds1-2.debian/6.3.0+ds1-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/README.source4
-rw-r--r--debian/changelog85
-rw-r--r--debian/control38
-rw-r--r--debian/copyright116
-rw-r--r--debian/gitlab-ci.yml6
-rw-r--r--debian/missing-sources/stats/stats.proto38
-rw-r--r--debian/missing-sources/stats/stats.proto.URL1
-rwxr-xr-xdebian/rules18
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata5
-rw-r--r--debian/watch4
11 files changed, 316 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..395ef7c
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,4 @@
+Upstream do not ship complete sources (".proto" files are from another
+repository):
+
+ https://github.com/checkpoint-restore/go-criu/issues/9
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4315e50
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,85 @@
+golang-github-checkpoint-restore-go-criu (6.3.0+ds1-2) unstable; urgency=medium
+
+ * Upload to unstable
+
+ -- Reinhard Tartler <siretart@tauware.de> Tue, 24 Oct 2023 18:08:53 -0400
+
+golang-github-checkpoint-restore-go-criu (6.3.0+ds1-1) experimental; urgency=medium
+
+ [ Reinhard Tartler ]
+ * debian/watch: mangle version number
+ * New upstream version 6.3.0+ds1
+ * Bump Standards Version
+ * debian/control: Use more appropriate archive section 'golang'
+ * take away spurious +x bits
+ * Add myself to uploaders
+
+ [ Debian Janitor ]
+ * Apply multi-arch hints:
+ + golang-github-checkpoint-restore-go-criu-dev: Add Multi-Arch: foreign.
+
+ -- Reinhard Tartler <siretart@tauware.de> Sat, 14 Jan 2023 14:30:11 -0500
+
+golang-github-checkpoint-restore-go-criu (5.3.0-2) unstable; urgency=medium
+
+ * Team upload.
+ * upload to unstable
+
+ -- Reinhard Tartler <siretart@tauware.de> Sun, 06 Mar 2022 17:34:36 -0500
+
+golang-github-checkpoint-restore-go-criu (5.3.0-1) experimental; urgency=medium
+
+ * Team upload.
+ * New upstream version 5.3.0
+
+ -- Reinhard Tartler <siretart@tauware.de> Wed, 16 Feb 2022 19:00:23 -0500
+
+golang-github-checkpoint-restore-go-criu (5.1.0-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream version 5.1.0 (Closes: #993317)
+
+ -- Shengjing Zhu <zhsj@debian.org> Mon, 11 Oct 2021 00:44:02 +0800
+
+golang-github-checkpoint-restore-go-criu (4.1.0-3) unstable; urgency=medium
+
+ * Team upload.
+
+ [ Debian Janitor ]
+ * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
+ Repository-Browse.
+
+ [ Shengjing Zhu ]
+ * Remove test directory manually in dh_configure (Closes: #971197)
+
+ -- Shengjing Zhu <zhsj@debian.org> Sun, 04 Oct 2020 16:25:43 +0800
+
+golang-github-checkpoint-restore-go-criu (4.1.0-2) unstable; urgency=medium
+
+ * Team upload.
+ * Upload to unstable.
+
+ -- Shengjing Zhu <zhsj@debian.org> Sun, 23 Aug 2020 00:45:08 +0800
+
+golang-github-checkpoint-restore-go-criu (4.1.0-1) experimental; urgency=medium
+
+ * Team upload.
+ * New upstream version 4.1.0
+ * Bump debhelper-compat to 13
+ * Remove unused Files-Excluded in d/copyright
+ * Exclude main package when building
+ * Update proto defines from criu 3.14
+
+ -- Shengjing Zhu <zhsj@debian.org> Mon, 17 Aug 2020 23:30:59 +0800
+
+golang-github-checkpoint-restore-go-criu (3.11-2) unstable; urgency=medium
+
+ * Standards-Version: 4.5.0.
+
+ -- Dmitry Smirnov <onlyjob@debian.org> Sun, 26 Jan 2020 20:17:42 +1100
+
+golang-github-checkpoint-restore-go-criu (3.11-1) unstable; urgency=medium
+
+ * Initial release (Closes: #948113).
+
+ -- Dmitry Smirnov <onlyjob@debian.org> Sat, 04 Jan 2020 17:35:35 +1100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..6647f1b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: golang-github-checkpoint-restore-go-criu
+Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
+Uploaders:
+ Dmitry Smirnov <onlyjob@debian.org>,
+ Reinhard Tartler <siretart@tauware.de>
+Section: golang
+Testsuite: autopkgtest-pkg-go
+Priority: optional
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-golang,
+ golang-github-spf13-cobra-dev,
+ golang-google-protobuf-dev,
+ protoc-gen-go,
+Build-Depends-Indep:
+ golang-any,
+Standards-Version: 4.6.1
+Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-checkpoint-restore-go-criu
+Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-checkpoint-restore-go-criu.git
+Homepage: https://github.com/checkpoint-restore/go-criu
+Rules-Requires-Root: no
+XS-Go-Import-Path: github.com/checkpoint-restore/go-criu
+
+Package: golang-github-checkpoint-restore-go-criu-dev
+Architecture: all
+Depends:
+ golang-google-protobuf-dev,
+ ${misc:Depends},
+Breaks:
+ golang-github-opencontainers-runc-dev (<< 1.0.2+ds1-1~),
+Multi-Arch: foreign
+Description: CRIU bindings for Golang
+ Golang bindings for CRIU. The code is based on the Golang-based PHaul
+ implementation from the CRIU repository.
+ .
+ Golang bindings provide an easy way to use the CRIU RPC calls from Golang
+ without the need to set up all the infrastructure to make the actual RPC
+ connection to CRIU.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..706a356
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,116 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: go-criu
+Source: https://github.com/checkpoint-restore/go-criu
+Files-Excluded: vendor
+
+Files: *
+Copyright: go-criu authors
+License: Apache-2.0
+Comment:
+ The upstream distribution does not contain an explicit statement of
+ copyright ownership. Pursuant to the Berne Convention for the Protection of
+ Literary and Artistic Works, it is assumed that all content is copyright by
+ its respective authors unless otherwise stated.
+ .
+ https://github.com/checkpoint-restore/go-criu/issues/8
+
+Files: debian/*
+Copyright:
+ 2019-2020 Dmitry Smirnov <onlyjob@debian.org>
+License: Apache-2.0 or GPL-2
+
+Files: debian/missing-sources/*
+Copyright: criu authors
+License: GPL-2
+Comment:
+ Origin: https://github.com/checkpoint-restore/criu
+ .
+ The upstream distribution does not contain an explicit statement of
+ copyright ownership. Pursuant to the Berne Convention for the Protection of
+ Literary and Artistic Works, it is assumed that all content is copyright by
+ its respective authors unless otherwise stated.
+
+Files: rpc/*
+Copyright: go-criu authors
+License: Expat
+Comment:
+ The upstream distribution does not contain an explicit statement of
+ copyright ownership. Pursuant to the Berne Convention for the Protection of
+ Literary and Artistic Works, it is assumed that all content is copyright by
+ its respective authors unless otherwise stated.
+ .
+ https://github.com/checkpoint-restore/go-criu/issues/8
+
+Files: stats/stats.pb.go
+Copyright: go-criu authors
+License: Expat
+Comment:
+ The upstream distribution does not contain an explicit statement of
+ copyright ownership. Pursuant to the Berne Convention for the Protection of
+ Literary and Artistic Works, it is assumed that all content is copyright by
+ its respective authors unless otherwise stated.
+ .
+ https://github.com/checkpoint-restore/go-criu/issues/8
+
+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.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
+
+License: Expat
+ This software is Copyright (c) 2022 by X. Ample.
+ .
+ This is free software, licensed under:
+ .
+ The MIT (X11) License
+ .
+ The MIT License
+ .
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated
+ documentation files (the "Software"), to deal in the Software
+ without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to
+ whom the Software is furnished to do so, subject to the
+ following conditions:
+ .
+ The above copyright notice and this permission notice shall
+ be included in all copies or substantial portions of the
+ Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT
+ WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+
+License: GPL-2
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the Free
+ Software Foundation, version 2 of the License.
+ ․
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ ․
+ On Debian systems, the complete text of the GNU General Public
+ License Version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml
new file mode 100644
index 0000000..594e14e
--- /dev/null
+++ b/debian/gitlab-ci.yml
@@ -0,0 +1,6 @@
+# auto-generated, DO NOT MODIFY.
+# The authoritative copy of this file lives at:
+# https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go
+---
+include:
+ - https://salsa.debian.org/go-team/infra/pkg-go-tools/-/raw/master/pipeline/test-archive.yml
diff --git a/debian/missing-sources/stats/stats.proto b/debian/missing-sources/stats/stats.proto
new file mode 100644
index 0000000..68d2f1b
--- /dev/null
+++ b/debian/missing-sources/stats/stats.proto
@@ -0,0 +1,38 @@
+syntax = "proto2";
+
+// This one contains statistics about dump/restore process
+message dump_stats_entry {
+ required uint32 freezing_time = 1;
+ required uint32 frozen_time = 2;
+ required uint32 memdump_time = 3;
+ required uint32 memwrite_time = 4;
+
+ required uint64 pages_scanned = 5;
+ required uint64 pages_skipped_parent = 6;
+ required uint64 pages_written = 7;
+
+ optional uint32 irmap_resolve = 8;
+
+ required uint64 pages_lazy = 9;
+ optional uint64 page_pipes = 10;
+ optional uint64 page_pipe_bufs = 11;
+
+ optional uint64 shpages_scanned = 12;
+ optional uint64 shpages_skipped_parent = 13;
+ optional uint64 shpages_written = 14;
+}
+
+message restore_stats_entry {
+ required uint64 pages_compared = 1;
+ required uint64 pages_skipped_cow = 2;
+
+ required uint32 forking_time = 3;
+ required uint32 restore_time = 4;
+
+ optional uint64 pages_restored = 5;
+}
+
+message stats_entry {
+ optional dump_stats_entry dump = 1;
+ optional restore_stats_entry restore = 2;
+}
diff --git a/debian/missing-sources/stats/stats.proto.URL b/debian/missing-sources/stats/stats.proto.URL
new file mode 100644
index 0000000..15aedf1
--- /dev/null
+++ b/debian/missing-sources/stats/stats.proto.URL
@@ -0,0 +1 @@
+https://raw.githubusercontent.com/checkpoint-restore/criu/v3.14/images/stats.proto
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4fcd21e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+export DH_GOLANG_EXCLUDES := crit-go/magic-gen phaul test
+
+SRC_DIR = _build/src/github.com/checkpoint-restore/go-criu/
+
+%:
+ dh $@ --builddirectory=_build --buildsystem=golang --with=golang
+
+execute_after_dh_auto_configure:
+ cp debian/missing-sources/stats/stats.proto $(SRC_DIR)stats/
+ $(RM) $(addprefix $(SRC_DIR),rpc/rpc.pb.go stats/stats.pb.go)
+ cd $(SRC_DIR) && protoc --go_out=. --go_opt=Mrpc/rpc.proto=rpc/ rpc/rpc.proto
+ cd $(SRC_DIR) && protoc --go_out=. --go_opt=Mstats/stats.proto=stats/ stats/stats.proto
+
+override_dh_auto_install:
+ dh_auto_install -- --no-binaries
+ find _build debian -name '*.proto' -exec chmod -x {} +
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..e4287b6
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/checkpoint-restore/go-criu/issues
+Bug-Submit: https://github.com/checkpoint-restore/go-criu/issues/new
+Repository: https://github.com/checkpoint-restore/go-criu.git
+Repository-Browse: https://github.com/checkpoint-restore/go-criu
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..973655f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="mode=git, pgpmode=none, dversionmangle=s/\+ds\d*$//, repacksuffix=+ds1" \
+ https://github.com/checkpoint-restore/go-criu \
+ refs/tags/v?@ANY_VERSION@ debian