Package: nitrocli Version: 0.2.3-1 Severity: minor Dear Maintainer,
nitrocli includes bash-completion: https://github.com/d-e-s-o/nitrocli#bash-completion Please enable this in the package! Attached is a simple example of how I added it to another package. -- System Information: Debian Release: 10.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable'), (100, 'proposed-updates') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages nitrocli depends on: ii libc6 2.28-10 ii libgcc1 1:8.3.0-6 ii libnitrokey3 3.4.1-4 Versions of packages nitrocli recommends: ii gnupg-agent 2.2.12-1+deb10u1 ii gpg-agent [gnupg-agent] 2.2.12-1+deb10u1 nitrocli suggests no packages. -- no debconf information
>From 18acf9c9c19b2f02a7f23b4a9235f17bc060a5c0 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner <h...@eds.org> Date: Wed, 5 Aug 2020 14:17:12 +0200 Subject: [PATCH 1/1] add bash-completion --- debian/bash-completion/ocf-cc | 19 +++++++++++++++++++ debian/control | 1 + debian/libocf-cc-java.bash-completion | 1 + debian/rules | 2 +- 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 debian/bash-completion/ocf-cc create mode 100644 debian/libocf-cc-java.bash-completion diff --git a/debian/bash-completion/ocf-cc b/debian/bash-completion/ocf-cc new file mode 100644 index 0000000..153dc4b --- /dev/null +++ b/debian/bash-completion/ocf-cc @@ -0,0 +1,19 @@ +_have ocf-cc && +_ocf_cc() +{ + local cur + + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + + case $prev in + '-r'|'-s') + return 0 + ;; + esac + OPTS="-l -n -p -q -r -s -v" + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) + return 0 +} +complete -F _ocf_cc ocf-cc diff --git a/debian/control b/debian/control index 8a63a49..2f8a993 100644 --- a/debian/control +++ b/debian/control @@ -6,6 +6,7 @@ Uploaders: Hans-Christoph Steiner <h...@eds.org> Build-Depends: debhelper-compat (= 13), ant, ant-optional, + bash-completion, default-jdk-headless (>= 2:1.8) | default-jdk (>= 2:1.8), javahelper, ivy, diff --git a/debian/libocf-cc-java.bash-completion b/debian/libocf-cc-java.bash-completion new file mode 100644 index 0000000..3f6ae58 --- /dev/null +++ b/debian/libocf-cc-java.bash-completion @@ -0,0 +1 @@ +debian/bash-completion/ocf-cc diff --git a/debian/rules b/debian/rules index 51a1ddc..f413584 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,7 @@ include /usr/share/dpkg/default.mk %: - dh $@ --with javahelper + dh $@ --with bash-completion,javahelper override_dh_auto_build: ant dist -lib /usr/share/java/ivy.jar -- 2.20.1