diff options
| author | jasper <> | 2011-01-21 09:24:46 +0000 |
|---|---|---|
| committer | jasper <> | 2011-01-21 09:24:46 +0000 |
| commit | d23be44a11f1a5189f70ab941e24ca0411bce500 (patch) | |
| tree | 374c82becba77290679e605fe5fb03b19d9f4922 | |
| parent | d2c6e1f8eaa66290717660170e0d073c1ba1d049 (diff) | |
| download | openbsd-d23be44a11f1a5189f70ab941e24ca0411bce500.tar.gz openbsd-d23be44a11f1a5189f70ab941e24ca0411bce500.tar.bz2 openbsd-d23be44a11f1a5189f70ab941e24ca0411bce500.zip | |
- simplify, krb5 handling is not needed.
prompted by brad
| -rw-r--r-- | src/lib/libssl/Makefile | 8 | ||||
| -rw-r--r-- | src/lib/libssl/generate_pkgconfig.sh | 27 |
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 | ||
| 5 | SUBDIR=crypto ssl man | 3 | SUBDIR=crypto ssl man |
| 6 | PC_FILES=openssl.pc libssl.pc libcrypto.pc | 4 | PC_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 | ||
| 18 | beforeinstall: | 16 | beforeinstall: |
| 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 | ||
| 12 | enable_krb5=false | ||
| 13 | curdir= | 12 | curdir= |
| 14 | objdir= | 13 | objdir= |
| 15 | while getopts "c:ko:" flag; do | 14 | while 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 | |||
| 54 | Description: OpenSSL cryptography library | 50 | Description: OpenSSL cryptography library |
| 55 | Version: ${ssl_version} | 51 | Version: ${ssl_version} |
| 56 | Requires: | 52 | Requires: |
| 53 | Libs: -lcrypto | ||
| 54 | Cflags: | ||
| 57 | __EOF__ | 55 | __EOF__ |
| 58 | echo -n 'Libs: -L${libdir} -lcrypto ' >> ${pc_file} | ||
| 59 | echo '-lz' >> ${pc_file} | ||
| 60 | echo -n 'Cflags: -I${includedir} ' >> ${pc_file} | ||
| 61 | ${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file} | ||
| 62 | echo '' >> ${pc_file} | ||
| 63 | 56 | ||
| 64 | 57 | ||
| 65 | pc_file="${objdir}/libssl.pc" | 58 | pc_file="${objdir}/libssl.pc" |
| @@ -73,12 +66,9 @@ Name: OpenSSL | |||
| 73 | Description: Secure Sockets Layer and cryptography libraries | 66 | Description: Secure Sockets Layer and cryptography libraries |
| 74 | Version: ${ssl_version} | 67 | Version: ${ssl_version} |
| 75 | Requires: | 68 | Requires: |
| 69 | Libs: -lssl -lcrypto | ||
| 70 | Cflags: | ||
| 76 | __EOF__ | 71 | __EOF__ |
| 77 | echo -n 'Libs: -L${libdir} -lssl -lcrypto ' >> ${pc_file} | ||
| 78 | echo '-lz' >> ${pc_file} | ||
| 79 | echo -n 'Cflags: -I${includedir} ' >> ${pc_file} | ||
| 80 | ${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file} | ||
| 81 | echo '' >> ${pc_file} | ||
| 82 | 72 | ||
| 83 | 73 | ||
| 84 | pc_file="${objdir}/openssl.pc" | 74 | pc_file="${objdir}/openssl.pc" |
| @@ -92,9 +82,6 @@ Name: OpenSSL | |||
| 92 | Description: Secure Sockets Layer and cryptography libraries and tools | 82 | Description: Secure Sockets Layer and cryptography libraries and tools |
| 93 | Version: ${ssl_version} | 83 | Version: ${ssl_version} |
| 94 | Requires: | 84 | Requires: |
| 85 | Libs: -lssl -lcrypto | ||
| 86 | Cflags: | ||
| 95 | __EOF__ | 87 | __EOF__ |
| 96 | echo -n 'Libs: -L${libdir} -lssl -lcrypto ' >> ${pc_file} | ||
| 97 | echo '-lz' >> ${pc_file} | ||
| 98 | echo -n 'Cflags: -I${includedir} ' >> ${pc_file} | ||
| 99 | ${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file} | ||
| 100 | echo '' >> ${pc_file} | ||
