summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-06 09:13:33 +0000
committerLars Wirzenius <liw@liw.fi>2022-01-06 09:13:33 +0000
commit369b92667a1de596e94afe27a647455e2e8809f8 (patch)
tree971e111473ec6d10eed4104b03f60e4593e1e429
parentb00108afa4c2401a307fdb1d12db6fdfe9fcb03b (diff)
parentdea36d4f96bb7428814da54ccd255e1f970ef440 (diff)
downloadobnam-benchmark-369b92667a1de596e94afe27a647455e2e8809f8.tar.gz
Merge branch 'debian' into 'main'
feat: add rudimentary Debian packaging See merge request obnam/obnam-benchmark!10
-rwxr-xr-xdebian/build-deb9
-rw-r--r--debian/cargo-checksum.json0
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat2
-rw-r--r--debian/control17
-rw-r--r--debian/copyright20
-rwxr-xr-xdebian/rules14
-rw-r--r--debian/source/format1
8 files changed, 69 insertions, 0 deletions
diff --git a/debian/build-deb b/debian/build-deb
new file mode 100755
index 0000000..11f8b1f
--- /dev/null
+++ b/debian/build-deb
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -euo pipefail
+
+S="$(dpkg-parsechangelog -SSource)"
+V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')"
+
+git archive HEAD | gzip >"../${S}_${V}.orig.tar.gz"
+dpkg-buildpackage -us -uc
diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/cargo-checksum.json
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1919c57
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+obnam-benchmark (0.1.0-1) unstable; urgency=low
+
+ * Initial packaging. This is not intended to be uploaded to Debian, so
+ no closing of an ITP bug.
+
+ -- Lars Wirzenius <liw@liw.fi> Thu, 06 Jan 2022 11:07:18 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..021ea30
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1,2 @@
+10
+
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b136a64
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: obnam-benchmark
+Maintainer: Lars Wirzenius <liw@liw.fi>
+Section: admin
+Priority: optional
+Standards-Version: 4.2.0
+Build-Depends:
+ debhelper (>= 10~),
+ dh-cargo,
+ build-essential
+Homepage: https://obnam.org
+
+Package: obnam-benchmark
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Built-Using: ${cargo:Built-Using}
+Description: benchmark the Obnam backup program
+ See README.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..315ebc6
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: obnam-benchmark
+Upstream-Contact: Lars Wirzenius <liw@liw.fi>
+Source: http://git.liw.fi/obnam-benchmark
+
+Files: *
+Copyright: 2022, Lars Wirzenius and others
+License: AGPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+ .
+ 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 Affero General Public License for more details.
+ .
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..29cabab
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --buildsystem cargo
+
+override_dh_auto_build:
+ true
+
+override_dh_auto_install:
+ cargo install --path=. --root=debian/obnam-benchmark
+ find debian -name '.crates*' -delete
+
+override_dh_auto_test:
+ true
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)