diff options
author | Heiko <heiko@schaefer.name> | 2021-11-10 12:02:47 +0000 |
---|---|---|
committer | Heiko <heiko@schaefer.name> | 2021-11-10 12:02:47 +0000 |
commit | 671660bdb9c04b3a0714e1c5c3e5475a26dccb1d (patch) | |
tree | f33ea10b7b845fef722b990b39dee6c444474ba9 | |
parent | cf901113cfa7d603030029fdac3b5215cbe80dde (diff) | |
parent | 0d9f89250fa25ea4d5ef71206bc4fc4e9b89c4a6 (diff) | |
download | openpgp-ca-master.tar.gz |
Add rudimentary Debian packaging
See merge request openpgp-ca/openpgp-ca!13
-rw-r--r-- | .reuse/dep5 | 3 | ||||
-rwxr-xr-x | debian/build-deb | 9 | ||||
-rw-r--r-- | debian/cargo-checksum.json | 0 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/compat | 2 | ||||
-rw-r--r-- | debian/control | 15 | ||||
-rw-r--r-- | debian/copyright | 23 | ||||
-rwxr-xr-x | debian/rules | 14 | ||||
-rw-r--r-- | debian/source/format | 1 |
9 files changed, 73 insertions, 0 deletions
diff --git a/.reuse/dep5 b/.reuse/dep5 index 8a1a135..e8581dc 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -7,3 +7,6 @@ Files: openpgp-ca-lib/src/db/schema.rs Cargo.lock Copyright: 2019-2020 Heiko Schaefer <heiko@schaefer.name> License: CC0-1.0 +Files: debian/* +Copyright: 2021, pep.foundation +License: CC0-1.0 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..4c3d42a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +openpgp-ca (0.10.1-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> Sat, 28 Sep 2019 16:45:49 +0300 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..e83ab38 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: openpgp-ca +Maintainer: Lars Wirzenius <liw@liw.fi> +Section: utils +Priority: optional +Standards-Version: 4.2.0 +Build-Depends: debhelper (>= 10~), + dh-cargo +Homepage: https://gitlab.com/openpgp-ca/openpgp-ca + +Package: openpgp-ca +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Built-Using: ${cargo:Built-Using} +Description: certify OpenPGP keys for organizations + A certificate authority for OpenPGP for use within an organization. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6cd06c7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: openpgp-ca +Upstream-Contact: Heiko Schaefer <heiko@schaefer.name> +Source: https://gitlab.com/openpgp-ca/openpgp-ca + +Files: debian/* +Copyright: 2021, pep.foundation +License: GPL-3+ + 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, 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 General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On a Debian system, you can find a copy of GPL version 3 at + /usr/share/common-licenses/GPL-3 . diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3020041 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem cargo + +override_dh_auto_build: + cargo build --all-targets --workspace + +override_dh_auto_test: + echo test are disabled due to problems with gnugp and rexpect interaction + +override_dh_auto_install: + cargo install --path=openpgp-ca-bin --root=debian/openpgp-ca + find debian/openpgp-ca -name '.crates*' -delete 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) |