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
>> OPENSSLBASE
>> 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:
>         libssl.so.6 => /usr/lib/libssl.so.6 (0x33cb7000)
>         libcrypto.so.6 => /lib/libcrypto.so.6 (0x33d04000)
>         librt.so.1 => /usr/lib/librt.so.1 (0x33e66000)
>         libc.so.7 => /lib/libc.so.7 (0x33e6b000)
>
> We look for libssl ....
>
> $ ldd /usr/local/libexec/dovecot/imap-login  | grep libssl.so
>         libssl.so.6 => /usr/lib/libssl.so.6 (0x33cb7000)
>
> This dovecot was build with the openssl-port.
>
> $ ldd /usr/local/bin/stunnel | grep libssl.so
>         libssl.so.6 => /usr/lib/libssl.so.6 (0x33cab000)
>
> This stunnel was build with OpenSSL from base.
>
>
> kind regards Dirk
>
> - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
> - [dirk.me...@dinoex.sub.org],[dirk.me...@guug.de],[din...@freebsd.org]
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>



_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to