Date: Fri, 20 Mar 2015 14:02:31 -0400 From: "Naram Qashat" <cyberbotx@cyberbotx.com> To: freebsd-ports@FreeBSD.org Subject: Re: Is it possibly to detect which OpenSSL is used for a port? Message-ID: <1b89602a13f212214de4f70feaf3f11e.squirrel@www.cyberbotx.com>
next in thread | raw e-mail | index | archive | help
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.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org] > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1b89602a13f212214de4f70feaf3f11e.squirrel>