=> Bootstrap dependency curl-[0-9]*: found curl-7.30.0nb1
=> Bootstrap dependency digest>=20010302: found digest-20121220
=> Checksum SHA1 OK for security/libssh-0.5.4.tar.gz
=> Checksum RMD160 OK for security/libssh-0.5.4.tar.gz
===> Installing dependencies for libssh-0.54nb1
==========================================================================
The supported build options for libssh are:

	gcrypt openssl

The currently selected options are:

	openssl

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.libssh-0.54nb1 (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
libssh-0.54nb1.  Their current value is shown below:

        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency cmake>=2.8.1nb1: found cmake-2.8.11
=> Tool dependency checkperms>=1.1: found checkperms-1.11
===> Overriding tools for libssh-0.54nb1
===> Extracting for libssh-0.54nb1
===> Patching for libssh-0.54nb1
=> Applying pkgsrc patches for libssh-0.54nb1
=> Verifying /usr/pkgsrc/security/libssh/patches/patch-aa
=> Applying pkgsrc patch /usr/pkgsrc/security/libssh/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- CMakeLists.txt.orig	2013-01-30 11:46:25.000000000 +0000
|+++ CMakeLists.txt	2013-01-30 11:45:52.000000000 +0000
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 36.
done
===> Creating toolchain wrappers for libssh-0.54nb1
===> Configuring for libssh-0.54nb1
=> Adding run-time search paths to pkg-config files.
WARNING: [subst.mk:pkgconfig] Ignoring non-existent file "./libssh.pc.in".
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in ./CMakeLists.txt.
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 4.1.3
CMake Warning (dev) at /usr/pkg/share/cmake-2.8/Modules/Platform/NetBSD.cmake:13 (include):
  File /usr/pkg/share/cmake-2.8/Modules/Platform/NetBSD.cmake includes
  /scratch/security/libssh/work/.buildlink/cmake-Modules/Platform/UnixPaths.cmake
  (found via CMAKE_MODULE_PATH) which shadows
  /usr/pkg/share/cmake-2.8/Modules/Platform/UnixPaths.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/pkg/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:1 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/pkg/share/cmake-2.8/Modules/Platform/NetBSD.cmake:13 (include):
  File /usr/pkg/share/cmake-2.8/Modules/Platform/NetBSD.cmake includes
  /scratch/security/libssh/work/.buildlink/cmake-Modules/Platform/UnixPaths.cmake
  (found via CMAKE_MODULE_PATH) which shadows
  /usr/pkg/share/cmake-2.8/Modules/Platform/UnixPaths.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/pkg/share/cmake-2.8/Modules/CMakeCInformation.cmake:68 (include)
  CMakeLists.txt:1 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Check for working C compiler: /scratch/security/libssh/work/.wrapper/bin/cc
-- Check for working C compiler: /scratch/security/libssh/work/.wrapper/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Performing Test WITH_FPIC
-- Performing Test WITH_FPIC - Success
-- Performing Test WITH_STACK_PROTECTOR
-- Performing Test WITH_STACK_PROTECTOR - Success
-- Performing Test WITH_FORTIFY_SOURCE
-- Performing Test WITH_FORTIFY_SOURCE - Success
-- Found ZLIB: /usr/include  
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found OpenSSL: /usr/lib/libssl.so;/lib/libcrypto.so  
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Performing Test WITH_VISIBILITY_HIDDEN
-- Performing Test WITH_VISIBILITY_HIDDEN - Success
-- Looking for argp.h
-- Looking for argp.h - not found
-- Looking for pty.h
-- Looking for pty.h - not found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - found
-- Looking for openssl/blowfish.h
-- Looking for openssl/blowfish.h - found
-- Looking for openssl/des.h
-- Looking for openssl/des.h - found
-- Looking for strncpy
-- Looking for strncpy - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for getaddrinfo in socket
-- Looking for getaddrinfo in socket - not found
-- Looking for hstrerror in resolv
-- Looking for hstrerror in resolv - found
-- Looking for inet_pton in nsl
-- Looking for inet_pton in nsl - not found
-- Looking for nanosleep in rt
-- Looking for nanosleep in rt - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for poll
-- Looking for poll - found
-- Looking for select
-- Looking for select - found
-- Looking for cfmakeraw
-- Looking for cfmakeraw - found
-- Looking for regcomp
-- Looking for regcomp - found
-- Looking for ntohll
-- Looking for ntohll - not found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- The CXX compiler identification is GNU 4.1.3
-- Check for working CXX compiler: /scratch/security/libssh/work/.wrapper/bin/c++
-- Check for working CXX compiler: /scratch/security/libssh/work/.wrapper/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- ********************************************
-- ********** libssh build options : **********
-- zlib support: ON
-- libgcrypt support: OFF
-- SSH-1 support: OFF
-- SFTP support: ON
-- Server support : ON
-- Pcap debugging support : ON
-- Unit testing: OFF
-- Client code Unit testing: OFF
-- Public API documentation generation
-- Benchmarks: OFF
-- ********************************************
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_LIBDIR


-- Build files have been written to: /scratch/security/libssh/work/libssh-0.5.4
=> Rewrite cmake Dependencies files