File: yubico-piv-tool-Put-useful-description-in-manpage.patch

package info (click to toggle)
yubico-piv-tool 2.2.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,820 kB
  • sloc: ansic: 14,672; sh: 430; perl: 53; xml: 15; makefile: 10
file content (41 lines) | stat: -rw-r--r-- 1,766 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: nicoo <nicoo@debian.org>
Subject: yubico-piv-tool: Put useful description in manpage
Forwarded: https://github.com/Yubico/yubico-piv-tool/pull/288
Last-Update: 2021-01-31

---
 cmake/help2man.cmake | 6 +++---
 tool/CMakeLists.txt  | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cmake/help2man.cmake b/cmake/help2man.cmake
index 7fc27eb..15c1bbe 100644
--- a/cmake/help2man.cmake
+++ b/cmake/help2man.cmake
@@ -30,9 +30,9 @@ IF (NOT HELP2MAN_LOCATION)
     message (FATAL_ERROR "Cannot find help2man. Please install it.")
 ENDIF ()
 
-MACRO (add_help2man_manpage file command)
+MACRO (add_help2man_manpage file command description)
     add_custom_command (OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${file}
-            COMMAND  ${HELP2MAN_LOCATION} ARGS -s1 -N -o ${CMAKE_CURRENT_SOURCE_DIR}/${file} ./${command}
+            COMMAND  ${HELP2MAN_LOCATION} ARGS -s1 -N -n ${description} -o ${CMAKE_CURRENT_SOURCE_DIR}/${file} ./${command}
             DEPENDS ${command}
             COMMENT "Building manpage for ${command}")
-ENDMACRO ()
\ No newline at end of file
+ENDMACRO ()
diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt
index 2c6cd00..17ebf10 100644
--- a/tool/CMakeLists.txt
+++ b/tool/CMakeLists.txt
@@ -65,7 +65,7 @@ install(
 
 if (GENERATE_MAN_PAGES)
     include (${CMAKE_SOURCE_DIR}/cmake/help2man.cmake)
-    add_help2man_manpage (yubico-piv-tool.1 yubico-piv-tool)
+    add_help2man_manpage (yubico-piv-tool.1 yubico-piv-tool "Tool for managing Personal Identity Verification credentials on Yubikeys")
 
     add_custom_target (yubico-piv-tool-man ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/yubico-piv-tool.1)
     install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/yubico-piv-tool.1" DESTINATION "${YKPIV_INSTALL_MAN_DIR}/man1")