From 3feb456215375a813882c312d9e8f688ea30feee Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Fri, 4 Oct 2002 20:44:28 +0000 Subject: [PATCH] install sys/opencrypto include files in /usr/include/crypto --- etc/mtree/BSD.include.dist | 2 ++ include/Makefile | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist index 6e3cddaa477a..5fbc371c17e1 100644 --- a/etc/mtree/BSD.include.dist +++ b/etc/mtree/BSD.include.dist @@ -11,6 +11,8 @@ scsi .. .. + crypto + .. dev an .. diff --git a/include/Makefile b/include/Makefile index 19f6189a0140..ef1af38ca29b 100644 --- a/include/Makefile +++ b/include/Makefile @@ -83,7 +83,7 @@ INCSLINKS+= posix4/$i ${INCLUDEDIR}/$i .endfor copies: -.for i in ${LDIRS} ${LSYMSUBDIRS} machine +.for i in ${LDIRS} ${LSYMSUBDIRS} machine crypto if [ -L ${DESTDIR}/usr/include/$i ]; then \ rm -f ${DESTDIR}/usr/include/$i; \ fi @@ -95,6 +95,9 @@ copies: ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \ ${DESTDIR}/usr/include/$i .endfor + cd ${.CURDIR}/../sys; \ + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 opencrypto/*.h \ + ${DESTDIR}/usr/include/crypto .if exists(${.CURDIR}/../sys/${MACHINE_ARCH}/include) cd ${.CURDIR}/../sys/${MACHINE_ARCH}/include; \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ @@ -112,6 +115,8 @@ symlinks: rm -rf ${DESTDIR}/usr/include/$i ln -s ../../sys/$i ${DESTDIR}/usr/include/$i .endfor + rm -rf ${DESTDIR}/usr/include/crypto + ln -s ../../sys/opencrypto ${DESTDIR}/usr/include/crypto .for i in ${LSYMSUBDIRS} rm -rf ${DESTDIR}/usr/include/$i ln -s ../../../sys/$i ${DESTDIR}/usr/include/$i