Skip to content

Commit

Permalink
sshping: Use CMAKE_INSTALL_MANDIR instead of assuming man
Browse files Browse the repository at this point in the history
  • Loading branch information
iamleot committed May 28, 2022
1 parent efb3e7d commit abe704d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sshping/distinfo
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions net/sshping/patches/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit abe704d

Please sign in to comment.