summaryrefslogtreecommitdiffstats
path: root/lib/libssl
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2010-12-28 20:07:47 +0000
committerjasper <jasper@openbsd.org>2010-12-28 20:07:47 +0000
commitf8348e82f8fd1d99dce82baed37aab8d7e693dfd (patch)
tree916293d1deec47efac9ffc63caad33aadca40be0 /lib/libssl
parentPrevious diff had a buglet, found the hard way by pea@ (diff)
downloadwireguard-openbsd-f8348e82f8fd1d99dce82baed37aab8d7e693dfd.tar.xz
wireguard-openbsd-f8348e82f8fd1d99dce82baed37aab8d7e693dfd.zip
- ensure ${DESTDIR}/usr/lib/pkgconfig/ as running make distrib-dirs is not
common/encouraged practice
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/Makefile b/lib/libssl/Makefile
index 510bb0547f3..26acb4751ad 100644
--- a/lib/libssl/Makefile
+++ b/lib/libssl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.15 2010/12/28 14:30:50 jasper Exp $
+# $OpenBSD: Makefile,v 1.16 2010/12/28 20:07:47 jasper Exp $
.include <bsd.own.mk> # for KERBEROS5
@@ -21,7 +21,8 @@ beforeinstall:
.else
/bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
.endif
-
+ [ -d ${DESTDIR}/usr/lib/pkgconfig/ ] || \
+ ${INSTALL} -o root -g ${SHAREGRP} -d ${DESTDIR}/usr/lib/pkgconfig/
.for p in ${PC_FILES}
${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
-m ${SHAREMODE} ${.OBJDIR}/$p ${DESTDIR}/usr/lib/pkgconfig/