From abe704d8a5bf29dd8654ddd394d9f3c0770dc629 Mon Sep 17 00:00:00 2001 From: leot Date: Sat, 28 May 2022 20:46:44 +0000 Subject: [PATCH] sshping: Use CMAKE_INSTALL_MANDIR instead of assuming man --- net/sshping/distinfo | 3 ++- net/sshping/patches/patch-CMakeLists.txt | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 net/sshping/patches/patch-CMakeLists.txt diff --git a/net/sshping/distinfo b/net/sshping/distinfo index 197b5d7b579d..1589c9aa010b 100644 --- a/net/sshping/distinfo +++ b/net/sshping/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2022/05/28 17:33:20 leot Exp $ +$NetBSD: distinfo,v 1.2 2022/05/28 20:46:44 leot Exp $ BLAKE2s (sshping-0.1.4.tar.gz) = 2108dc5850f721ccde6a486689b4f8c3f6846345d019625ae1f5c8bbf0e17c6a SHA512 (sshping-0.1.4.tar.gz) = 16d72099b468c58d44835822a372f97863ba0b73282e8e64c20b0a0e6465e6f9efa634a85b0c7c13d03c470c547b08332820bf177f5bad59984270801ab74782 Size (sshping-0.1.4.tar.gz) = 3536227 bytes +SHA1 (patch-CMakeLists.txt) = 8d19570f316d37e08b8fab49ae747f0a2880edd8 diff --git a/net/sshping/patches/patch-CMakeLists.txt b/net/sshping/patches/patch-CMakeLists.txt new file mode 100644 index 000000000000..39f152b44898 --- /dev/null +++ b/net/sshping/patches/patch-CMakeLists.txt @@ -0,0 +1,15 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2022/05/28 20:46:44 leot Exp $ + +Use CMAKE_INSTALL_MANDIR instead of assuming man. + +--- CMakeLists.txt.orig 2018-03-19 21:48:55.000000000 +0000 ++++ CMakeLists.txt +@@ -27,7 +27,7 @@ add_custom_command( + COMMENT "Building manpage ${MAN_TGT}" + VERBATIM) + add_custom_target(man ALL DEPENDS ${MAN_TGT}) +-install(FILES ${MAN_TGT} DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man8) ++install(FILES ${MAN_TGT} DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_MANDIR}/man8) + + # Packaging for RPM or DEB + find_program(rpmbuild_path "rpmbuild" FALSE)