summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2000-11-10 09:59:02 +0000
committerderaadt <>2000-11-10 09:59:02 +0000
commit3d110fa004a704cc5903e120c6782e5f42df1b59 (patch)
tree4ef8855e671346c079ce0307fe642467b72153dc /src
parent7501fc4f02ed5e88b8a94cdeabd6b2e181ab32df (diff)
downloadopenbsd-3d110fa004a704cc5903e120c6782e5f42df1b59.tar.gz
openbsd-3d110fa004a704cc5903e120c6782e5f42df1b59.tar.bz2
openbsd-3d110fa004a704cc5903e120c6782e5f42df1b59.zip
these contain special cases where they build man pages into .0 files;
they must now also build .ps files if MANPS is set.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/Makefile.bsd-wrapper87
1 files changed, 69 insertions, 18 deletions
diff --git a/src/lib/libssl/Makefile.bsd-wrapper b/src/lib/libssl/Makefile.bsd-wrapper
index c208db032c..8bc9696c4d 100644
--- a/src/lib/libssl/Makefile.bsd-wrapper
+++ b/src/lib/libssl/Makefile.bsd-wrapper
@@ -1,5 +1,5 @@
1# Build wrapper for OpenSSL 1# Build wrapper for OpenSSL
2# $OpenBSD: Makefile.bsd-wrapper,v 1.24 2000/10/13 21:31:28 hugh Exp $ 2# $OpenBSD: Makefile.bsd-wrapper,v 1.25 2000/11/10 09:59:02 deraadt Exp $
3 3
4# Our lndir is hacked; specify a full path to avoid potential conflicts 4# Our lndir is hacked; specify a full path to avoid potential conflicts
5# with the one installed with X11. 5# with the one installed with X11.
@@ -70,7 +70,11 @@ MANALL= ssl.cat3 SSL_get_error.cat3 \
70 \ 70 \
71 BUF_MEM_new.cat3 RC4.cat3 \ 71 BUF_MEM_new.cat3 RC4.cat3 \
72 RIPEMD160.cat3 CRYPTO_set_locking_callback.cat3 72 RIPEMD160.cat3 CRYPTO_set_locking_callback.cat3
73 73
74.if MANPS
75PSALL= ${MANALL:S/.cat1/.ps1/g:S/.cat2/.ps2/g:S/.cat3/.ps3/g:S/.cat4/.ps4/g:S/.cat5/.ps5/g:S/.cat6/.ps6/g:S/.cat7/.ps7/g:S/.cat8/.ps8/g:S/.cat9/.ps9/g}
76.endif
77
74# these are is a real problem, since they re-document functions described in 78# these are is a real problem, since they re-document functions described in
75# other pages. 79# other pages.
76# 80#
@@ -88,73 +92,107 @@ MANALL= ssl.cat3 SSL_get_error.cat3 \
88# RAND_screen RAND_load_file RAND_write_file RAND_file_name RAND_egd 92# RAND_screen RAND_load_file RAND_write_file RAND_file_name RAND_egd
89# RAND_set_rand_method RAND_get_rand_method RAND_SSLeay RAND_cleanup 93# RAND_set_rand_method RAND_get_rand_method RAND_SSLeay RAND_cleanup
90 94
91
92# buffer.pod -> BUF_MEM_new.pod 95# buffer.pod -> BUF_MEM_new.pod
93# BUF_MEM_free BUF_MEM_grow BUF_strdup 96# BUF_MEM_free BUF_MEM_grow BUF_strdup
94#
95BUF_MEM_new.cat3: buffer.pod 97BUF_MEM_new.cat3: buffer.pod
96 ( cp ${.ALLSRC} BUF_MEM_new.pm && pod2man --section=3 --official \ 98 ( cp ${.ALLSRC} BUF_MEM_new.pm && pod2man --section=3 --official \
97 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 99 --center='OpenSSL' --release="OpenBSD `uname -r`" \
98 BUF_MEM_new.pm ) | nroff -Tascii -man > ${.TARGET} 100 BUF_MEM_new.pm ) | nroff -Tascii -man > ${.TARGET}
101.if MANPS
102BUF_MEM_new.ps3: buffer.pod
103 ( cp ${.ALLSRC} BUF_MEM_new.pm && pod2man --section=3 --official \
104 --center='OpenSSL' --release="OpenBSD `uname -r`" \
105 BUF_MEM_new.pm ) | nroff -Tps -man > ${.TARGET}
106.endif
99 107
100# rc4.pod -> RC4.pod 108# rc4.pod -> RC4.pod
101# RC4_set_key 109# RC4_set_key
102#
103RC4.cat3: rc4.pod 110RC4.cat3: rc4.pod
104 ( cp ${.ALLSRC} RC4.pm && pod2man --section=3 --official \ 111 ( cp ${.ALLSRC} RC4.pm && pod2man --section=3 --official \
105 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 112 --center='OpenSSL' --release="OpenBSD `uname -r`" \
106 RC4.pm ) | nroff -Tascii -man > ${.TARGET} 113 RC4.pm ) | nroff -Tascii -man > ${.TARGET}
107 114.if MANPS
115RC4.ps3: rc4.pod
116 ( cp ${.ALLSRC} RC4.pm && pod2man --section=3 --official \
117 --center='OpenSSL' --release="OpenBSD `uname -r`" \
118 RC4.pm ) | nroff -Tps -man > ${.TARGET}
119.endif
108 120
109# threads.pod -> CRYPTO_set_locking_callback.pod 121# threads.pod -> CRYPTO_set_locking_callback.pod
110# CRYPTO_set_id_callback CRYPTO_num_locks 122# CRYPTO_set_id_callback CRYPTO_num_locks
111#
112CRYPTO_set_locking_callback.cat3: threads.pod 123CRYPTO_set_locking_callback.cat3: threads.pod
113 ( cp ${.ALLSRC} CRYPTO_set_locking_callback.pm && \ 124 ( cp ${.ALLSRC} CRYPTO_set_locking_callback.pm && \
114 pod2man --section=3 --official \ 125 pod2man --section=3 --official \
115 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 126 --center='OpenSSL' --release="OpenBSD `uname -r`" \
116 CRYPTO_set_locking_callback.pm ) | nroff -Tascii -man > ${.TARGET} 127 CRYPTO_set_locking_callback.pm ) | nroff -Tascii -man > ${.TARGET}
128.if MANPS
129CRYPTO_set_locking_callback.ps3: threads.pod
130 ( cp ${.ALLSRC} CRYPTO_set_locking_callback.pm && \
131 pod2man --section=3 --official \
132 --center='OpenSSL' --release="OpenBSD `uname -r`" \
133 CRYPTO_set_locking_callback.pm ) | nroff -Tps -man > ${.TARGET}
134.endif
117 135
118# ripemd.pod -> RIPEMD160.pod 136# ripemd.pod -> RIPEMD160.pod
119# RIPEMD160_Init RIPEMD160_Update RIPEMD160_Final 137# RIPEMD160_Init RIPEMD160_Update RIPEMD160_Final
120#
121RIPEMD160.cat3: ripemd.pod 138RIPEMD160.cat3: ripemd.pod
122 ( cp ${.ALLSRC} RIPEMD160.pm && pod2man --section=3 --official \ 139 ( cp ${.ALLSRC} RIPEMD160.pm && pod2man --section=3 --official \
123 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 140 --center='OpenSSL' --release="OpenBSD `uname -r`" \
124 RIPEMD160.pm ) | nroff -Tascii -man > ${.TARGET} 141 RIPEMD160.pm ) | nroff -Tascii -man > ${.TARGET}
142.if MANPS
143RIPEMD160.ps3: ripemd.pod
144 ( cp ${.ALLSRC} RIPEMD160.pm && pod2man --section=3 --official \
145 --center='OpenSSL' --release="OpenBSD `uname -r`" \
146 RIPEMD160.pm ) | nroff -Tps -man > ${.TARGET}
147.endif
125 148
126# sha.pod -> SHA1.pod 149# sha.pod -> SHA1.pod
127# ...
128#
129SHA1.cat3: sha.pod 150SHA1.cat3: sha.pod
130 ( cp ${.ALLSRC} SHA1.pm && pod2man --section=3 --official \ 151 ( cp ${.ALLSRC} SHA1.pm && pod2man --section=3 --official \
131 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 152 --center='OpenSSL' --release="OpenBSD `uname -r`" \
132 SHA1.pm ) | nroff -Tascii -man > ${.TARGET} 153 SHA1.pm ) | nroff -Tascii -man > ${.TARGET}
154.if MANPS
155SHA1.ps3: sha.pod
156 ( cp ${.ALLSRC} SHA1.pm && pod2man --section=3 --official \
157 --center='OpenSSL' --release="OpenBSD `uname -r`" \
158 SHA1.pm ) | nroff -Tps -man > ${.TARGET}
159.endif
133 160
134# md5.pod -> MD5.pod 161# md5.pod -> MD5.pod
135# ...
136#
137MD5.cat3: md5.pod 162MD5.cat3: md5.pod
138 ( cp ${.ALLSRC} MD5.pm && pod2man --section=3 --official \ 163 ( cp ${.ALLSRC} MD5.pm && pod2man --section=3 --official \
139 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 164 --center='OpenSSL' --release="OpenBSD `uname -r`" \
140 MD5.pm ) | nroff -Tascii -man > ${.TARGET} 165 MD5.pm ) | nroff -Tascii -man > ${.TARGET}
166.if MANPS
167MD5.ps3: md5.pod
168 ( cp ${.ALLSRC} MD5.pm && pod2man --section=3 --official \
169 --center='OpenSSL' --release="OpenBSD `uname -r`" \
170 MD5.pm ) | nroff -Tps -man > ${.TARGET}
171.endif
141 172
142# mdc2.pod -> MDC2.pod 173# mdc2.pod -> MDC2.pod
143# ...
144#
145MDC2.cat3: mdc2.pod 174MDC2.cat3: mdc2.pod
146 ( cp ${.ALLSRC} MDC2.pm && pod2man --section=3 --official \ 175 ( cp ${.ALLSRC} MDC2.pm && pod2man --section=3 --official \
147 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 176 --center='OpenSSL' --release="OpenBSD `uname -r`" \
148 MDC2.pm ) | nroff -Tascii -man > ${.TARGET} 177 MDC2.pm ) | nroff -Tascii -man > ${.TARGET}
178.if MANPS
179MDC2.ps3: mdc2.pod
180 ( cp ${.ALLSRC} MDC2.pm && pod2man --section=3 --official \
181 --center='OpenSSL' --release="OpenBSD `uname -r`" \
182 MDC2.pm ) | nroff -Tps -man > ${.TARGET}
183.endif
149 184
150# hmac.pod -> HMAC.pod 185# hmac.pod -> HMAC.pod
151# ...
152#
153HMAC.cat3: hmac.pod 186HMAC.cat3: hmac.pod
154 ( cp ${.ALLSRC} HMAC.pm && pod2man --section=3 --official \ 187 ( cp ${.ALLSRC} HMAC.pm && pod2man --section=3 --official \
155 --center='OpenSSL' --release="OpenBSD `uname -r`" \ 188 --center='OpenSSL' --release="OpenBSD `uname -r`" \
156 HMAC.pm ) | nroff -Tascii -man > ${.TARGET} 189 HMAC.pm ) | nroff -Tascii -man > ${.TARGET}
157 190.if MANPS
191HMAC.ps3: hmac.pod
192 ( cp ${.ALLSRC} HMAC.pm && pod2man --section=3 --official \
193 --center='OpenSSL' --release="OpenBSD `uname -r`" \
194 HMAC.pm ) | nroff -Tps -man > ${.TARGET}
195.endif
158 196
159MLINKS+=BN_CTX_new.3 BN_CTX_init.3 BN_CTX_new.3 BN_CTX_free.3 \ 197MLINKS+=BN_CTX_new.3 BN_CTX_init.3 BN_CTX_new.3 BN_CTX_free.3 \
160 BN_CTX_start.3 BN_CTX_get.3 BN_CTX_start.3 BN_CTX_end.3 \ 198 BN_CTX_start.3 BN_CTX_get.3 BN_CTX_start.3 BN_CTX_end.3 \
@@ -437,13 +475,26 @@ MANALL=
437 `basename ${.ALLSRC}` ) | nroff -Tascii -man > ${.TARGET} 475 `basename ${.ALLSRC}` ) | nroff -Tascii -man > ${.TARGET}
438 476
439 477
478.pod.ps3:
479 ( cd `dirname ${.ALLSRC}` && pod2man --section=3 --official \
480 --center='OpenSSL' --release="OpenBSD `uname -r`" \
481 `basename ${.ALLSRC}` ) | nroff -Tps -man > ${.TARGET}
482.pod.ps7:
483 ( cd `dirname ${.ALLSRC}` && pod2man --section=7 --official \
484 --center='OpenSSL' --release="OpenBSD `uname -r`" \
485 `basename ${.ALLSRC}` ) | nroff -Tps -man > ${.TARGET}
486.pod.ps1:
487 ( cd `dirname ${.ALLSRC}` && pod2man --section=1 --official \
488 --center='OpenSSL' --release="OpenBSD `uname -r`" \
489 `basename ${.ALLSRC}` ) | nroff -Tps -man > ${.TARGET}
490
440.if exists(src-patent) 491.if exists(src-patent)
441SSL_SRC=src-patent 492SSL_SRC=src-patent
442.else 493.else
443SSL_SRC=src 494SSL_SRC=src
444.endif 495.endif
445 496
446all: prereq ${MANALL} 497all: prereq ${MANALL} ${PSALL}
447 cd ${.OBJDIR} && ${MAKE} 498 cd ${.OBJDIR} && ${MAKE}
448 499
449includes: prereq 500includes: prereq