summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl')
-rw-r--r--src/lib/libssl/Makefile49
-rw-r--r--src/lib/libssl/generate_pkgconfig.sh4
-rw-r--r--src/lib/libssl/man/Makefile4
3 files changed, 51 insertions, 6 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile
index 04baaccb45..16d08731eb 100644
--- a/src/lib/libssl/Makefile
+++ b/src/lib/libssl/Makefile
@@ -1,11 +1,56 @@
1# $OpenBSD: Makefile,v 1.19 2014/04/11 22:51:53 miod Exp $ 1# $OpenBSD: Makefile,v 1.20 2016/09/03 12:42:42 beck Exp $
2 2
3SUBDIR=ssl man 3SUBDIR= man
4PC_FILES=openssl.pc libssl.pc 4PC_FILES=openssl.pc libssl.pc
5 5
6CLEANFILES=${PC_FILES} 6CLEANFILES=${PC_FILES}
7 7
8LIB= ssl
9
10.include <bsd.own.mk>
11CFLAGS+= -Wall -Wundef
12.if ${COMPILER_VERSION:L} != "gcc3"
13CFLAGS+= -Werror
14.endif
15CFLAGS+= -DLIBRESSL_INTERNAL
16CFLAGS+= -I${.CURDIR}
17
18LDADD+= -L${BSDOBJDIR}/lib/libcrypto/crypto -lcrypto
19
20SRCS=\
21 s3_srvr.c s3_clnt.c s3_lib.c s3_pkt.c s3_both.c \
22 s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \
23 t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \
24 d1_meth.c d1_srvr.c d1_clnt.c d1_lib.c d1_pkt.c \
25 d1_both.c d1_enc.c d1_srtp.c \
26 ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \
27 ssl_ciph.c ssl_stat.c ssl_rsa.c \
28 ssl_asn1.c ssl_txt.c ssl_algs.c \
29 bio_ssl.c ssl_err.c t1_reneg.c \
30 pqueue.c
31SRCS+= s3_cbc.c
32SRCS+= bs_ber.c bs_cbb.c bs_cbs.c
33
34HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h
35
36.PATH: ${.CURDIR}
37
38includes:
39 @test -d ${DESTDIR}/usr/include/openssl || \
40 mkdir ${DESTDIR}/usr/include/openssl
41 @cd ${.CURDIR}; for i in $(HDRS); do \
42 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
43 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
44 ${DESTDIR}/usr/include/openssl"; \
45 echo $$j; \
46 eval "$$j"; \
47 done;
48
49.include <bsd.lib.mk>
50
8beforeinstall: 51beforeinstall:
52 nm -o lib${LIB}.a | egrep -w 'printf|fprintf' && \
53 (echo please fix stdio usage in this library; false) || true
9 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} 54 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
10.for p in ${PC_FILES} 55.for p in ${PC_FILES}
11 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ 56 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
diff --git a/src/lib/libssl/generate_pkgconfig.sh b/src/lib/libssl/generate_pkgconfig.sh
index ea050120fb..de14a121fc 100644
--- a/src/lib/libssl/generate_pkgconfig.sh
+++ b/src/lib/libssl/generate_pkgconfig.sh
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $OpenBSD: generate_pkgconfig.sh,v 1.8 2014/04/11 22:51:53 miod Exp $ 3# $OpenBSD: generate_pkgconfig.sh,v 1.9 2016/09/03 12:42:42 beck Exp $
4# 4#
5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org> 5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org>
6# 6#
@@ -51,7 +51,7 @@ if [ ! -w "${objdir}" ]; then
51fi 51fi
52 52
53version_re="s/^#define[[:blank:]]+SHLIB_VERSION_NUMBER[[:blank:]]+\"(.*)\".*/\1/p" 53version_re="s/^#define[[:blank:]]+SHLIB_VERSION_NUMBER[[:blank:]]+\"(.*)\".*/\1/p"
54version_file=${curdir}/src/crypto/opensslv.h 54version_file=${curdir}/../libcrypto/opensslv.h
55lib_version=$(sed -nE ${version_re} ${version_file}) 55lib_version=$(sed -nE ${version_re} ${version_file})
56 56
57# Put -I${includedir} into Cflags so configure script tests like 57# Put -I${includedir} into Cflags so configure script tests like
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile
index cb0b2661db..e30d3fbb42 100644
--- a/src/lib/libssl/man/Makefile
+++ b/src/lib/libssl/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.33 2016/03/30 06:38:43 jmc Exp $ 1# $OpenBSD: Makefile,v 1.34 2016/09/03 12:42:45 beck Exp $
2 2
3.include <bsd.own.mk> # for NOMAN 3.include <bsd.own.mk> # for NOMAN
4 4
@@ -96,7 +96,7 @@ maninstall:
96 96
97.endif 97.endif
98 98
99.PATH: ${.CURDIR}/../src/doc/ssl 99.PATH: ${.CURDIR}/../doc
100.SUFFIXES: .pod .1 .3 .7 100.SUFFIXES: .pod .1 .3 .7
101.for sect in 1 3 7 101.for sect in 1 3 7
102.pod.${sect}: 102.pod.${sect}: