После установки OpenSSL, перед скачиванием пакетов выдается сообщение(предупреждение):
/!\ WARNING /!\ You have security/openssl installed but do not have DEFAULT_VERSIONS+=ssl=openssl set in your make.conf
Для исправления добавляем нужную запись в make.conf командой:
echo 'DEFAULT_VERSIONS+=ssl=openssl' >> /etc/make.conf
Дополнения:
For users of an other port than security/openssl:
for security/openssl-devel: echo ‘DEFAULT_VERSIONS+=ssl=openssl-devel’ >> /etc/make.conf
for security/libressl: echo ‘DEFAULT_VERSIONS+=ssl=libressl’ >> /etc/make.conf
for security/libressl-devel: echo ‘DEFAULT_VERSIONS+=ssl=libressl-devel’ >> /etc/make.confTo use/link openssl from your system (world): DEFAULT_VERSIONS+=ssl=base (default without installing any libressl* or openssl* port).
If you get the following error:
You have a /usr/local/lib/libcrypto.so file installed, but the framework is unable to determine what port it comes from. Add DEFAULT_VERSIONS+=ssl= to your /etc/make.conf and try again.
And you don’t know or can’t remember which one you have installed, check the output of pkg info -ox «openssl|libressl», for example, to determine how to define ssl as DEFAULT_VERSIONS.
Note: OpenSSL implementation, using ports (not packages), can be switched at any time but:
make sure programs that rely on it are compatible (few months ago, a port — I can’t remember which one — was marked incompatible with libressl)
each port which depends on it have to be rebuild (eg to switch from openssl to libressl: portmaster -o libressl openssl && portmaster -r libressl should do the trick)
Использованная литература:
https://unix.stackexchange.com/questions/297317/you-have-security-openssl-installed-but-do-not-have-default-versions-ssl-openss