From 566ea7a2d680ab8ffd09bc86e09a16f1304daffc Mon Sep 17 00:00:00 2001 From: John Whittington Date: Tue, 17 Sep 2024 15:12:51 +0200 Subject: [PATCH 1/5] change-log key for cargo-deb; extended-description --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d03baec1..6a691615 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cyme" authors = ["John Whittington "] -description = "List system USB buses and devices; a modern cross-platform `lsusb`" +description = "List system USB buses and devices; a modern cross-platform lsusb" repository = "/~https://github.com/tuna-f1sh/cyme" readme = "README.md" license = "GPL-3.0-or-later" @@ -88,3 +88,7 @@ pre-build = ["apt-get update && apt-get install --assume-yes libusb-1.0-0-dev li [package.metadata.deb] section = "utility" +change-log = "CHANGELOG.md" +extended-description = """\ +List system USB buses and devices; a lib and modern cross-platform 'lsusb' \ +that attempts to maintain compatibility with, but also add new features.""" From 3812e18c182c0dd19c9cc901e9d6c2c3bfabf87e Mon Sep 17 00:00:00 2001 From: John Whittington Date: Tue, 17 Sep 2024 16:40:00 +0200 Subject: [PATCH 2/5] correct change-log -> changelog --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6a691615..56260988 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -88,7 +88,7 @@ pre-build = ["apt-get update && apt-get install --assume-yes libusb-1.0-0-dev li [package.metadata.deb] section = "utility" -change-log = "CHANGELOG.md" +changelog = "CHANGELOG.md" extended-description = """\ List system USB buses and devices; a lib and modern cross-platform 'lsusb' \ that attempts to maintain compatibility with, but also add new features.""" From a378873ff122545a5d8df9328956e201961be5d6 Mon Sep 17 00:00:00 2001 From: John Whittington Date: Tue, 17 Sep 2024 16:45:56 +0200 Subject: [PATCH 3/5] explicit copyright for deb package --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 56260988..8e1f819c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -88,6 +88,7 @@ pre-build = ["apt-get update && apt-get install --assume-yes libusb-1.0-0-dev li [package.metadata.deb] section = "utility" +copyright = "2024, John Whittington " changelog = "CHANGELOG.md" extended-description = """\ List system USB buses and devices; a lib and modern cross-platform 'lsusb' \ From 3a0890e687ba012fbcf070fa853e143a63debc0f Mon Sep 17 00:00:00 2001 From: John Whittington Date: Tue, 17 Sep 2024 17:23:38 +0200 Subject: [PATCH 4/5] assets for defining manpage --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 8e1f819c..72e32185 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,3 +93,8 @@ changelog = "CHANGELOG.md" extended-description = """\ List system USB buses and devices; a lib and modern cross-platform 'lsusb' \ that attempts to maintain compatibility with, but also add new features.""" +assets = [ + ["target/release/cyme", "usr/bin/", "755"], + ["README.md", "usr/share/doc/cyme/README", "644"], + ["doc/cyme.1", "/usr/share/man/man1/cyme.1", "644"], +] From cd89a0c9ad19b7d903719f5f526676180a226f06 Mon Sep 17 00:00:00 2001 From: John Whittington Date: Wed, 18 Sep 2024 07:52:40 +0000 Subject: [PATCH 5/5] gen for tests --- doc/cyme.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/cyme.1 b/doc/cyme.1 index 93b04881..4d137f66 100644 --- a/doc/cyme.1 +++ b/doc/cyme.1 @@ -2,11 +2,11 @@ .el .ds Aq ' .TH cyme 1 "cyme 1.8.2" .SH NAME -cyme \- List system USB buses and devices; a modern cross\-platform `lsusb` +cyme \- List system USB buses and devices; a modern cross\-platform lsusb .SH SYNOPSIS \fBcyme\fR [\fB\-l\fR|\fB\-\-lsusb\fR] [\fB\-t\fR|\fB\-\-tree\fR] [\fB\-d\fR|\fB\-\-vidpid\fR] [\fB\-s\fR|\fB\-\-show\fR] [\fB\-D\fR|\fB\-\-device\fR] [\fB\-\-filter\-name\fR] [\fB\-\-filter\-serial\fR] [\fB\-\-filter\-class\fR] [\fB\-v\fR|\fB\-\-verbose\fR]... [\fB\-b\fR|\fB\-\-blocks\fR] [\fB\-\-bus\-blocks\fR] [\fB\-\-config\-blocks\fR] [\fB\-\-interface\-blocks\fR] [\fB\-\-endpoint\-blocks\fR] [\fB\-m\fR|\fB\-\-more\fR] [\fB\-\-sort\-devices\fR] [\fB\-\-sort\-buses\fR] [\fB\-\-group\-devices\fR] [\fB\-\-hide\-buses\fR] [\fB\-\-hide\-hubs\fR] [\fB\-\-list\-root\-hubs\fR] [\fB\-\-decimal\fR] [\fB\-\-no\-padding\fR] [\fB\-\-color\fR] [\fB\-\-encoding\fR] [\fB\-\-icon\fR] [\fB\-\-headings\fR] [\fB\-\-json\fR] [\fB\-\-from\-json\fR] [\fB\-F\fR|\fB\-\-force\-libusb\fR] [\fB\-c\fR|\fB\-\-config\fR] [\fB\-z\fR|\fB\-\-debug\fR]... [\fB\-\-mask\-serials\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] .SH DESCRIPTION -List system USB buses and devices; a modern cross\-platform `lsusb` +List system USB buses and devices; a modern cross\-platform lsusb .SH OPTIONS .TP \fB\-l\fR, \fB\-\-lsusb\fR