Integrate a patch to fix cURL detection

The patch has been submitted upstream, but some users depend on it now, so ship
it:
https://github.com/puppetlabs/facter/pull/1762
This commit is contained in:
Romain Tartière 2018-11-29 01:58:49 +00:00
parent c3d9932fb0
commit b1828130b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=486153
2 changed files with 12 additions and 0 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= facter
PORTVERSION= 3.12.1
PORTREVISION= 1
CATEGORIES?= sysutils
MASTER_SITES= https://downloads.puppetlabs.com/facter/

View file

@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2018-10-23 22:00:38 UTC
+++ CMakeLists.txt
@@ -52,7 +52,7 @@ SET(LEATHERMAN_COMPONENTS locale catch n
# We look for curl early, because whether or not we link to the leatherman curl library
# is dependant on whether or not we find curl on the system.
-if ((("${CMAKE_SYSTEM_NAME}" MATCHES "Linux|OpenBSD") OR WIN32) AND NOT WITHOUT_CURL)
+if ((("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD|Linux|OpenBSD") OR WIN32) AND NOT WITHOUT_CURL)
find_package(CURL)
if (CURL_FOUND)
add_definitions(-DUSE_CURL)