summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjasper <>2011-01-21 09:24:46 +0000
committerjasper <>2011-01-21 09:24:46 +0000
commit0c2f5403fdb800d4b5445f5c1c58dc0ed40a3c26 (patch)
tree374c82becba77290679e605fe5fb03b19d9f4922
parent90f87718bb7566adfdc5299774565c618c107b54 (diff)
downloadopenbsd-0c2f5403fdb800d4b5445f5c1c58dc0ed40a3c26.tar.gz
openbsd-0c2f5403fdb800d4b5445f5c1c58dc0ed40a3c26.tar.bz2
openbsd-0c2f5403fdb800d4b5445f5c1c58dc0ed40a3c26.zip
- simplify, krb5 handling is not needed.
prompted by brad
-rw-r--r--src/lib/libssl/Makefile8
-rw-r--r--src/lib/libssl/generate_pkgconfig.sh27
2 files changed, 8 insertions, 27 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile
index 26acb4751a..e01d3060d8 100644
--- a/src/lib/libssl/Makefile
+++ b/src/lib/libssl/Makefile
@@ -1,6 +1,4 @@
1# $OpenBSD: Makefile,v 1.16 2010/12/28 20:07:47 jasper Exp $ 1# $OpenBSD: Makefile,v 1.17 2011/01/21 09:24:45 jasper Exp $
2
3.include <bsd.own.mk> # for KERBEROS5
4 2
5SUBDIR=crypto ssl man 3SUBDIR=crypto ssl man
6PC_FILES=openssl.pc libssl.pc libcrypto.pc 4PC_FILES=openssl.pc libssl.pc libcrypto.pc
@@ -16,11 +14,7 @@ distribution:
16 ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf 14 ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf
17 15
18beforeinstall: 16beforeinstall:
19.if (${KERBEROS5:L} == "yes")
20 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} -k
21.else
22 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} 17 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
23.endif
24 [ -d ${DESTDIR}/usr/lib/pkgconfig/ ] || \ 18 [ -d ${DESTDIR}/usr/lib/pkgconfig/ ] || \
25 ${INSTALL} -o root -g ${SHAREGRP} -d ${DESTDIR}/usr/lib/pkgconfig/ 19 ${INSTALL} -o root -g ${SHAREGRP} -d ${DESTDIR}/usr/lib/pkgconfig/
26.for p in ${PC_FILES} 20.for p in ${PC_FILES}
diff --git a/src/lib/libssl/generate_pkgconfig.sh b/src/lib/libssl/generate_pkgconfig.sh
index 6ae875cc0b..32332a4637 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.2 2011/01/03 09:32:01 jasper Exp $ 3# $OpenBSD: generate_pkgconfig.sh,v 1.3 2011/01/21 09:24:46 jasper Exp $
4# 4#
5# Generate pkg-config files for OpenSSL. 5# Generate pkg-config files for OpenSSL.
6 6
@@ -9,7 +9,6 @@ usage() {
9 exit 1 9 exit 1
10} 10}
11 11
12enable_krb5=false
13curdir= 12curdir=
14objdir= 13objdir=
15while getopts "c:ko:" flag; do 14while getopts "c:ko:" flag; do
@@ -17,9 +16,6 @@ while getopts "c:ko:" flag; do
17 c) 16 c)
18 curdir=$OPTARG 17 curdir=$OPTARG
19 ;; 18 ;;
20 k)
21 enable_krb5=true
22 ;;
23 o) 19 o)
24 objdir=$OPTARG 20 objdir=$OPTARG
25 ;; 21 ;;
@@ -54,12 +50,9 @@ Name: OpenSSL-libcrypto
54Description: OpenSSL cryptography library 50Description: OpenSSL cryptography library
55Version: ${ssl_version} 51Version: ${ssl_version}
56Requires: 52Requires:
53Libs: -lcrypto
54Cflags:
57__EOF__ 55__EOF__
58echo -n 'Libs: -L${libdir} -lcrypto ' >> ${pc_file}
59echo '-lz' >> ${pc_file}
60echo -n 'Cflags: -I${includedir} ' >> ${pc_file}
61${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file}
62echo '' >> ${pc_file}
63 56
64 57
65pc_file="${objdir}/libssl.pc" 58pc_file="${objdir}/libssl.pc"
@@ -73,12 +66,9 @@ Name: OpenSSL
73Description: Secure Sockets Layer and cryptography libraries 66Description: Secure Sockets Layer and cryptography libraries
74Version: ${ssl_version} 67Version: ${ssl_version}
75Requires: 68Requires:
69Libs: -lssl -lcrypto
70Cflags:
76__EOF__ 71__EOF__
77echo -n 'Libs: -L${libdir} -lssl -lcrypto ' >> ${pc_file}
78echo '-lz' >> ${pc_file}
79echo -n 'Cflags: -I${includedir} ' >> ${pc_file}
80${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file}
81echo '' >> ${pc_file}
82 72
83 73
84pc_file="${objdir}/openssl.pc" 74pc_file="${objdir}/openssl.pc"
@@ -92,9 +82,6 @@ Name: OpenSSL
92Description: Secure Sockets Layer and cryptography libraries and tools 82Description: Secure Sockets Layer and cryptography libraries and tools
93Version: ${ssl_version} 83Version: ${ssl_version}
94Requires: 84Requires:
85Libs: -lssl -lcrypto
86Cflags:
95__EOF__ 87__EOF__
96echo -n 'Libs: -L${libdir} -lssl -lcrypto ' >> ${pc_file}
97echo '-lz' >> ${pc_file}
98echo -n 'Cflags: -I${includedir} ' >> ${pc_file}
99${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file}
100echo '' >> ${pc_file}