summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/crypto/Makefile14
-rw-r--r--lib/libssl/ssl/Makefile14
2 files changed, 18 insertions, 10 deletions
diff --git a/lib/libssl/crypto/Makefile b/lib/libssl/crypto/Makefile
index fc1a092225b..e2c1c4f858a 100644
--- a/lib/libssl/crypto/Makefile
+++ b/lib/libssl/crypto/Makefile
@@ -164,14 +164,18 @@ HDRS= asn1/asn1.h asn1/asn1_mac.h bf/blowfish.h bio/bio.h \
${LCRYPTO_SRC}/txt_db ${LCRYPTO_SRC}
includes:
- @cd ${LCRYPTO_SRC}; for i in $(HDRS); do \
- j="cmp -s ${LCRYPTO_SRC}/$$i \
- ${DESTDIR}/usr/include/ssl/`basename $$i` || \
+ @d=`mktemp -d /tmp/libsslXXXXXXXXXX`; \
+ cd ${LCRYPTO_SRC}; for i in $(HDRS); do \
+ f=`basename $$i`; \
+ j="sed 's/#include \"\\([^\"]*\\)\"/#include <ssl\\/\\1>/' \
+ ${LCRYPTO_SRC}/$$i >$$d/$$f && \
+ (cmp -s $$d/$$f ${DESTDIR}/usr/include/ssl/$$f || \
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${LCRYPTO_SRC}/$$i ${DESTDIR}/usr/include/ssl"; \
+ $$d/$$f ${DESTDIR}/usr/include/ssl)"; \
echo $$j; \
eval "$$j"; \
- done
+ done; \
+ rm -rf $$d
.include <bsd.lib.mk>
diff --git a/lib/libssl/ssl/Makefile b/lib/libssl/ssl/Makefile
index 6fffdd9ef22..02bec28066b 100644
--- a/lib/libssl/ssl/Makefile
+++ b/lib/libssl/ssl/Makefile
@@ -73,13 +73,17 @@ HDRS= ssl.h ssl2.h ssl3.h ssl23.h tls1.h
.PATH: ${LSSL_SRC}
includes:
- @cd ${LSSL_SRC}; for i in $(HDRS); do \
- j="cmp -s $$i ${DESTDIR}/usr/include/ssl/`basename $$i` || \
+ @d=`mktemp -d /tmp/libsslXXXXXXXXXX`; \
+ cd ${LSSL_SRC}; for i in $(HDRS); do \
+ f=`basename $$i`; \
+ j="sed 's/#include \"\\([^\"]*\\)\"/#include <ssl\\/\\1>/' \
+ $$i >$$d/$$f && \
+ (cmp -s $$d/$$f ${DESTDIR}/usr/include/ssl/$$f || \
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
- $$i ${DESTDIR}/usr/include/ssl"; \
+ $$d/$$f ${DESTDIR}/usr/include/ssl)"; \
echo $$j; \
eval "$$j"; \
- done
-
+ done; \
+ rm -rf $$d
.include <bsd.lib.mk>