Skip to content

Commit

Permalink
pg_top: Honour pkgsrc's preferred man page directory. Delint.
Browse files Browse the repository at this point in the history
  • Loading branch information
alarixnia committed Aug 11, 2023
1 parent 208aaed commit 819964d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
6 changes: 3 additions & 3 deletions databases/pg_top/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.3 2023/08/11 09:09:09 nia Exp $
# $NetBSD: Makefile,v 1.4 2023/08/11 09:14:17 nia Exp $

DISTNAME= pg_top-4.0.0
CATEGORIES= databases
MASTER_SITES= https://pg_top.gitlab.io/source/
EXTRACT_SUFX= .tar.xz

MAINTAINER= [email protected]
HOMEPAGE= https://pg_top.gitlab.io
COMMENT= top-like monitoring program for PostgreSQL
HOMEPAGE= https://pg_top.gitlab.io/
COMMENT= Monitoring program similar to top for PostgreSQL

NOT_FOR_PLATFORM= NetBSD-*-*

Expand Down
4 changes: 2 additions & 2 deletions databases/pg_top/PLIST
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2023/04/19 13:31:58 joerg Exp $
@comment $NetBSD: PLIST,v 1.2 2023/08/11 09:14:17 nia Exp $
bin/pg_top
share/man/man1/pg_top.1
man/man1/pg_top.1
3 changes: 2 additions & 1 deletion databases/pg_top/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.1 2023/04/19 13:31:58 joerg Exp $
$NetBSD: distinfo,v 1.2 2023/08/11 09:14:17 nia Exp $

BLAKE2s (pg_top-4.0.0.tar.xz) = 34b5c59e5c8eefdc1da100b879781cc481b754e35c740591360872c880814494
SHA512 (pg_top-4.0.0.tar.xz) = b7a016137495ceecdcf0ac0e95c73b7eca20b57264f7b63b0a38c3f31db742c704ed0094e07f6df051bce9bc26214f5a8f66ced1e923bb66e0c86fff1e2ffc19
Size (pg_top-4.0.0.tar.xz) = 117920 bytes
SHA1 (patch-CMakeLists.txt) = 39ae5826e2d312de1af99941124cb99ed7672961
27 changes: 27 additions & 0 deletions databases/pg_top/patches/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
$NetBSD: patch-CMakeLists.txt,v 1.1 2023/08/11 09:14:17 nia Exp $

Honour the platform's preferred man page directory.

--- CMakeLists.txt.orig 2020-10-08 19:05:41.000000000 +0000
+++ CMakeLists.txt
@@ -165,6 +165,7 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/machine/m
file(APPEND ${CMAKE_BINARY_DIR}/pg_top.1.rst "${MANUAL_SUPPLIMENT}")
endif(EXISTS "${CMAKE_SOURCE_DIR}/machine/m_${MACHINE}.man.rst")
file(APPEND ${CMAKE_BINARY_DIR}/pg_top.1 "${MANUAL_SUPPLIMENT}")
+
execute_process(
COMMAND rst2man.py ${CMAKE_BINARY_DIR}/pg_top.1.rst
OUTPUT_FILE ${CMAKE_BINARY_DIR}/pg_top.1
@@ -288,10 +289,11 @@ install(
${CMAKE_BINARY_DIR}/${PROJECT_NAME}
DESTINATION "bin"
)
+include(GNUInstallDirs)
install(
FILES
${CMAKE_BINARY_DIR}/pg_top.1
- DESTINATION "share/man/man1"
+ DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
)

# CPack rules for creating distribution files.

0 comments on commit 819964d

Please sign in to comment.