| 1 |
Last-Update: 2021-09-13 |
| 2 |
Forwarded: no |
| 3 |
Bug-Upstream: https://github.com/pvpgn/pvpgn-server/issues/281 |
| 4 |
Bug-Upstream: https://github.com/pvpgn/pvpgn-server/issues/467 |
| 5 |
Author: Dmitry Smirnov <[email protected]> |
| 6 |
Description: install "/etc" and "/var" and man pages where they belong. |
| 7 |
https://cmake.org/cmake/help/latest/command/install.html |
| 8 |
https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html |
| 9 |
|
| 10 |
--- a/cmake/Modules/DefineInstallationPaths.cmake |
| 11 |
+++ b/cmake/Modules/DefineInstallationPaths.cmake |
| 12 |
@@ -36,9 +36,9 @@ |
| 13 |
FORCE |
| 14 |
) |
| 15 |
else() |
| 16 |
SET(LOCALSTATE_INSTALL_DIR |
| 17 |
|
| 18 |
+ "${CMAKE_INSTALL_LOCALSTATEDIR}/lib/${APPLICATION_NAME}" |
| 19 |
CACHE PATH "The ${APPLICATION_NAME} local state install dir (default prefix/var)" |
| 20 |
FORCE |
| 21 |
) |
| 22 |
endif() |
| 23 |
@@ -70,9 +70,9 @@ |
| 24 |
FORCE |
| 25 |
) |
| 26 |
else() |
| 27 |
SET(SYSCONF_INSTALL_DIR |
| 28 |
|
| 29 |
+ "${CMAKE_INSTALL_SYSCONFDIR}/${APPLICATION_NAME}" |
| 30 |
CACHE PATH "The ${APPLICATION_NAME} sysconfig install dir (default prefix/etc)" |
| 31 |
FORCE |
| 32 |
) |
| 33 |
endif() |
| 34 |
|
| 35 |
--- a/man/CMakeLists.txt |
| 36 |
+++ b/man/CMakeLists.txt |
| 37 |
@@ -1,4 +1,7 @@ |
| 38 |
|
| 39 |
+install(FILES bnbot.1 bnchat.1 bnetd.1 bnftp.1 bni2tga.1 |
| 40 |
bnibuild.1 bniextract.1 bnilist.1 bnpass.1 bnpcap.1 bnproxy.1 bnstat.1 |
| 41 |
|
| 42 |
|
| 43 |
+ bntrackd.1 tgainfo.1 |
| 44 |
+ DESTINATION ${MAN_INSTALL_DIR}/man1) |
| 45 |
+ |
| 46 |
+install(FILES bnetd.conf.5 bntext.5 |
| 47 |
+ DESTINATION ${MAN_INSTALL_DIR}/man5) |