Is it possibly to detect which OpenSSL is used for a port?

Naram Qashat cyberbotx at
Fri Mar 20 18:02:33 UTC 2015

This isn't quite what I'm looking for. I want to be able to tell within a
port's Makefile if the user wanted the base or ports OpenSSL to be used.
I've been trying to port TDE to FreeBSD, and tdelibs uses pkg-config to
check for OpenSSL. This would work if the only form of OpenSSL was in
ports, but the base OpenSSL doesn't have a pkg-config file to use, so I
need to know which is going to be used so I can determine when this
pkg-config check can be removed.

> Naram Qashat schrieb:,
>> So, I know that WITH_OPENSSL_BASE=yes or WITH_OPENSSL_PORT=yes can be
>> set
>> by a user to say they specifically want either the base or the ports
>> version of OpenSSL. But is there a way to determine within a port which
>> OpenSSL is being used, either base or ports? Should I check if
>> is set to /usr? Is there some other (or better) way to do it?
> You can check the shared binaries with "ldd".
> $ ldd /usr/local/libexec/dovecot/imap-login
> /usr/local/libexec/dovecot/imap-login:
> => /usr/lib/ (0x33cb7000)
> => /lib/ (0x33d04000)
> => /usr/lib/ (0x33e66000)
> => /lib/ (0x33e6b000)
> We look for libssl ....
> $ ldd /usr/local/libexec/dovecot/imap-login  | grep
> => /usr/lib/ (0x33cb7000)
> This dovecot was build with the openssl-port.
> $ ldd /usr/local/bin/stunnel | grep
> => /usr/lib/ (0x33cab000)
> This stunnel was build with OpenSSL from base.
> kind regards Dirk
> - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
> - [dirk.meyer at],[dirk.meyer at],[dinoex at]
> _______________________________________________
> freebsd-ports at mailing list
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at"
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

More information about the freebsd-ports mailing list