openssl from ports
Randal L. Schwartz
merlyn at stonehenge.com
Fri Mar 2 22:27:26 UTC 2012
>>>>> "Jerry" == Jerry <jerry at seibercom.net> writes:
Jerry> I have used the port's version for quite some time now. I am not sure
Jerry> if it is still required; however, I placed the following in the
Jerry> "/etc/make.conf" file:
Jerry> WITH_OPENSSL_PORT=yes
Jerry> I then rebuilt all of the ports that require OpenSSL. Perhaps someone
Jerry> else has an easier solution.
Ahh, according to my read of /usr/ports/Mk/bsd.openssl.mk,
it looks like:
# if no preference was set, check for an installed base version
# but give an installed port preference over it.
.if !defined(WITH_OPENSSL_BASE) && \
!defined(WITH_OPENSSL_PORT) && \
!exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \
exists(${DESTDIR}/usr/include/openssl/opensslv.h)
WITH_OPENSSL_BASE=yes
.endif
and later
.if exists(${LOCALBASE}/lib/libcrypto.so)
check-depends::
@${ECHO_CMD} "Dependency error: this port wants the OpenSSL
library from the FreeBSD"
@${ECHO_CMD} "base system. You can't build against it, while a
newer"
@${ECHO_CMD} "version is installed by a port."
@${ECHO_CMD} "Please deinstall the port or undefine
WITH_OPENSSL_BASE."
@${FALSE}
.endif
So it looks like modern FreeBSD will Do The Right Thing if I just
recompile the apache22 port. Once I knew what to look for, I found it
with a bit of grepping.
Thanks!
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
More information about the freebsd-questions
mailing list