diff --git a/tools/debian/build-deb b/tools/debian/build-deb new file mode 100755 index 0000000..11f8b1f --- /dev/null +++ b/tools/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/tools/debian/cargo-checksum.json b/tools/debian/cargo-checksum.json new file mode 100644 index 0000000..e69de29 diff --git a/tools/debian/changelog b/tools/debian/changelog new file mode 100644 index 0000000..29b0f5e --- /dev/null +++ b/tools/debian/changelog @@ -0,0 +1,6 @@ +openpgp-card-tool (0.0.11-1) unstable; urgency=medium + + * Initial packaging. This is not intended to be uploaded to Debian, so + not closing of an ITP bug. + + -- Lars Wirzenius Thu, 30 Sep 2021 09:51:32 +0300 diff --git a/tools/debian/compat b/tools/debian/compat new file mode 100644 index 0000000..021ea30 --- /dev/null +++ b/tools/debian/compat @@ -0,0 +1,2 @@ +10 + diff --git a/tools/debian/control b/tools/debian/control new file mode 100644 index 0000000..d74f234 --- /dev/null +++ b/tools/debian/control @@ -0,0 +1,23 @@ +Source: openpgp-card-tool +Maintainer: Heiko Schaefer +Uploaders: Lars Wirzenius +Section: admin +Priority: optional +Standards-Version: 4.2.0 +Build-Depends: + debhelper (>= 10~), + dh-cargo, + libclang-dev, + libpcsclite-dev, + nettle-dev, + pkg-config, +Homepage: https://gitlab.com/openpgp-card/openpgp-card + +Package: openpgp-card-tool +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Built-Using: ${cargo:Built-Using} +Description: tool to manage OpenPGP hardware tokens + The opgpcard tool allows you to inspect, configure, administer, + factory reset, and generally manage OpenPGP cards (hardware tokens), + such as Gnuk, Yubikeys, Nitrokeys, and similar. diff --git a/tools/debian/copyright b/tools/debian/copyright new file mode 100644 index 0000000..40a5b06 --- /dev/null +++ b/tools/debian/copyright @@ -0,0 +1,3 @@ +Copyright 2021-2022 Heiko Schaefer + +# SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/tools/debian/docs b/tools/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/tools/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/tools/debian/rules b/tools/debian/rules new file mode 100755 index 0000000..bb6dbe1 --- /dev/null +++ b/tools/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem cargo + +override_dh_auto_clean: + echo auto clean + +override_dh_auto_configure: + echo auto configure + +override_dh_auto_build: + cargo --version + rustc --version + cargo build --release + +override_dh_auto_test: + true + +override_dh_auto_install: + install -d debian/openpgp-card-tool/bin + cargo install --locked --path=. --root=debian/openpgp-card-tool + find debian -name ".crates*" -delete diff --git a/tools/debian/source/format b/tools/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/tools/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)