1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/www/hiawatha/files/patch-CMakeLists.txt
Tobias Kortkamp f5823c94c6 www/hiawatha: Add WebServerLoad support and cleanup port
- Sort options helpers and add pkg-help to describe options better
- Add CGIWRAPPER option which when turned off will turn off packaging
  of the setuid cgi-wrapper(1) binary
- Cleanup post-patch; use LOCALBASE where appropriate
- Drop incidental variables
- Do not install useless documentation; README.md is a copy of
  pkg-descr; ChangeLog does not contain any juicy information either
- Trim pkg-message further
2018-11-30 10:09:50 +00:00

13 lines
465 B
Plaintext

--- CMakeLists.txt.orig 2018-09-11 05:44:11 UTC
+++ CMakeLists.txt
@@ -39,7 +39,8 @@ include(FindZLIB)
include(cmake/CopyIfNotExists.cmake)
# Settings
-if(EXISTS "/proc/loadavg")
+check_function_exists(getloadavg HAVE_GETLOADAVG)
+if(HAVE_GETLOADAVG OR EXISTS "/proc/loadavg")
option(ENABLE_LOADCHECK "Enable the ability to check for server load." on)
endif()
set(CONFIG_DIR ${CMAKE_INSTALL_FULL_SYSCONFDIR}/hiawatha CACHE STRING "Configuration directory")