-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pg_top: Honour pkgsrc's preferred man page directory. Delint.
- Loading branch information
Showing
4 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-*-* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |