diff options
author | nectar <nectar@FreeBSD.org> | 2003-02-10 19:57:56 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-02-10 19:57:56 +0000 |
commit | b36647ffe0b4c7db913b64382b29be7953f7dfa4 (patch) | |
tree | 4aff87bb2998fd6e0b9415d7e9964bea45904b96 /secure/lib/libcrypto/Makefile.inc | |
parent | ba1743e91bea2d716235e6ab42a5492659b6c7e6 (diff) | |
download | FreeBSD-src-b36647ffe0b4c7db913b64382b29be7953f7dfa4.zip FreeBSD-src-b36647ffe0b4c7db913b64382b29be7953f7dfa4.tar.gz |
Install the OpenSSL man pages in /usr/share/openssl/man
and remove the WANT_OPENSSL_MANPAGES knob.
Diffstat (limited to 'secure/lib/libcrypto/Makefile.inc')
-rw-r--r-- | secure/lib/libcrypto/Makefile.inc | 47 |
1 files changed, 41 insertions, 6 deletions
diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc index bd7d6ef..734bf34 100644 --- a/secure/lib/libcrypto/Makefile.inc +++ b/secure/lib/libcrypto/Makefile.inc @@ -98,11 +98,46 @@ openssl/${h:T}: ${h} ${INSTALL} -C -m 444 ${h} openssl .endfor +MANDIR= ${SHAREDIR}/openssl/man/man + +.if defined(LIB) +_docs= ${LIB} +_skip= des_modes +_sec= 3 +.else +_docs= apps +_skip= config +_sec= 1 +.endif + man-update: - for i in `( cd ${LCRYPTO_DOC}/${LIB}${PROG} ; ls *.pod )` ; do \ - cp ${LCRYPTO_DOC}/${LIB}/$$i . ;\ - pod2man --section=3 --release="0.9.7" --center="OpenSSL" \ - $$i > ${.CURDIR}/man/$${i%%.pod}.3 ;\ - rm $$i ;\ - echo $${i%%.pod} ;\ +.for manpage in ${MAN} + @(sec=${manpage:E}; \ + pod=${manpage:R}.pod; \ + cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \ + pod2man --section=$$sec --release="0.9.7" --center="OpenSSL" \ + $$pod > ${.CURDIR}/man/${manpage}; \ + rm $$pod; \ + ${ECHO} ${manpage}) +.endfor + +man-makefile-update: + rm -f ${.CURDIR}/Makefile.man + echo '# $$FreeBSD$$' >> ${.CURDIR}/Makefile.man + echo '# DO NOT EDIT: generated from man-makefile-update target' >> \ + ${.CURDIR}/Makefile.man + for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \ + fn=`basename $$i .pod`; \ + if [ "$$fn" != "${_skip}" ]; then \ + ${ECHO} "MAN+= $$fn.${_sec}" >> ${.CURDIR}/Makefile.man; \ + fi; \ + done + for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \ + fn=`basename $$i .pod`; \ + if [ "$$fn" != "${_skip}" ]; then \ + perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \ + awk "/^$$fn\$$/ { next; } \ + { print \"MLINKS+= $$fn.${_sec} \" \$$1 \".${_sec}\" }" >> \ + ${.CURDIR}/Makefile.man; \ + fi; \ done |