summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-01 19:16:35 +0300
committerLars Wirzenius <liw@liw.fi>2022-04-01 19:23:15 +0300
commiteeff210c92b8532472ed8655248d9e6590eb3054 (patch)
tree66b0d5146f5e2652dc28da3c2b24c765c5d1fada
parent8643b23b7bdc8b56d5f87178871070739622c43e (diff)
downloadcachedir-rs-eeff210c92b8532472ed8655248d9e6590eb3054.tar.gz
chore: add Debian packaging
Sponsored-by: author
-rw-r--r--Cargo.lock18
-rw-r--r--Cargo.toml2
-rw-r--r--debian/cargo-checksum.json0
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat2
-rw-r--r--debian/control24
-rw-r--r--debian/copyright20
-rwxr-xr-xdebian/rules14
-rw-r--r--debian/source/format1
9 files changed, 77 insertions, 10 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 13800c9..6852bbe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -102,7 +102,7 @@ name = "cachedir"
version = "0.1.0"
dependencies = [
"anyhow",
- "clap 3.1.6",
+ "clap 3.1.8",
"fehler",
"subplot-build",
"subplotlib",
@@ -173,9 +173,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "3.1.6"
+version = "3.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8c93436c21e4698bacadf42917db28b23017027a4deccb35dbe47a7e7840123"
+checksum = "71c47df61d9e16dc010b55dba1952a57d8c215dbb533fd13cdd13369aac73b1c"
dependencies = [
"atty",
"bitflags",
@@ -190,9 +190,9 @@ dependencies = [
[[package]]
name = "clap_derive"
-version = "3.1.4"
+version = "3.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da95d038ede1a964ce99f49cbe27a7fb538d1da595e4b4f70b8c8f338d17bf16"
+checksum = "a3aab4734e083b809aaf5794e14e756d1c798d2c69c7f7de7a09a2f5214993c1"
dependencies = [
"heck 0.4.0",
"proc-macro-error",
@@ -528,9 +528,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "1.8.0"
+version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
+checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee"
dependencies = [
"autocfg",
"hashbrown",
@@ -963,9 +963,9 @@ dependencies = [
[[package]]
name = "redox_syscall"
-version = "0.2.12"
+version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ae183fc1b06c149f0c1793e1eb447c8b04bfe46d48e9e48bfb8d2d7ed64ecf0"
+checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42"
dependencies = [
"bitflags",
]
diff --git a/Cargo.toml b/Cargo.toml
index e3f2387..4a8c290 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "cachedir"
version = "0.1.0"
-edition = "2021"
+edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
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..0c342c7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+cachedir (0.1.0-1) unstable; urgency=medium
+
+ * Initial packaging. This is not intended to be uploaded to Debian, so
+ no closing of an ITP bug.
+
+ -- Lars Wirzenius <liw@liw.fi> Fri, 01 Apr 2022 19:11:46 +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..925b334
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: cachedir
+Maintainer: Lars Wirzenius <liw@liw.fi>
+Section: admin
+Priority: optional
+Standards-Version: 4.2.0
+Build-Depends:
+ debhelper (>= 10~),
+ build-essential,
+ dh-cargo,
+ git,
+ subplot,
+ texlive-fonts-recommended,
+ texlive-latex-base,
+ texlive-latex-recommended
+Homepage: https://gitlab.com/obnam/cachedir
+
+Package: cachedir
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Built-Using: ${cargo:Built-Using}
+Description: manage cache directory tags
+ A cache directory tag is a file called CACHEDIR.TAG files, with
+ specific contents. The cachedir utility can create, remove, and find
+ them. It's meant for making it easier to manage the tags.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..440a7ca
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: cachedir
+Upstream-Contact: Lars Wirzenius <liw@liw.fi>
+Source: http://git.liw.fi/cachedir-rs
+
+Files: *
+Copyright: 2022, Lars Wirzenius and others
+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/>.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8907949
--- /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/cachedir
+ find debian/cachedir -name '.crates*' -delete
+
+override_dh_auto_test:
+ cargo test
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)