Hi,

while the various README files are helpful, not everyone has the bat
book at hand for more complex questions.  Here's a diff to update the
doc/op/Makefile and make it useful to people who have groff installed.

The Makefile is just a slightly tweaked version from upstream, I have
also updated op.me to reflect the upstream Revision and updated the
etc/mail/README file to reflect reality.



Index: etc/mail/README
===================================================================
RCS file: /cvs/src/etc/mail/README,v
retrieving revision 1.5
diff -u -p -r1.5 README
--- etc/mail/README     27 Sep 2008 19:17:10 -0000      1.5
+++ etc/mail/README     14 Mar 2013 04:15:55 -0000
@@ -5,7 +5,7 @@ spamd(8).  The source for the .cf files 
 You should make changes in the corresponding .mc file and not edit
 the .cf files directly.  Useful information may be found in
 /usr/share/sendmail/README, /usr/share/sendmail/TUNING, and
-/usr/share/doc/smm/08.sendmailop/op.me.  For details on enabling
+/usr/src/gnu/usr.sbin/sendmail/doc/op/op.me.  For details on enabling
 encrypted SMTP, see the starttls(8) man page.
 
 Sendmail configuration files:
Index: gnu/usr.sbin/sendmail/doc/op/Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.sbin/sendmail/doc/op/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- gnu/usr.sbin/sendmail/doc/op/Makefile       22 Mar 2006 18:43:53 -0000      
1.4
+++ gnu/usr.sbin/sendmail/doc/op/Makefile       14 Mar 2013 04:20:01 -0000
@@ -1,17 +1,41 @@
+#      $OpenBSD$
 #      $Sendmail: Makefile,v 8.16 2006/01/05 22:03:31 ca Exp $
 
-DIR=   smm/08.sendmailop
-SRCS=  op.me
-MACROS=        -me
+SRCS=          op.me
+OBJS=          op.ps
+MACROS=                -me
+ROFF_CMD=      groff
+PIC_CMD=       pic
+EQN_CMD=       eqn
+UL_CMD=                ul
+PS2PDF_CMD=    ps2pdf
+PIC=           ${PIC_CMD} -C
+EQNASCII=      ${EQN_CMD} -C -Tascii
+EQNPS=         ${EQN_CMD} -C -Tps
+ROFFASCII=     ${ROFF_CMD} -Tascii ${MACROS}
+ROFFPS=                ${ROFF_CMD} -Tps -mps ${MACROS}
+ULASCII=       ${UL_CMD} -t dumb
+PS2PDF=                ${PS2PDF_CMD}
 
-all: op.ps
+all: ${OBJS}
 
 op.ps: ${SRCS}
-       rm -f ${.TARGET}
-       ${PIC} ${SRCS} | ${EQN} | ${ROFF} > ${.TARGET}
+       rm -f $@
+       ${PIC} ${SRCS} | ${EQNPS} | ${ROFFPS} > $@
+       test -s $@ || ${ROFFPS} -p -e ${SRCS} > $@
 
-paper.txt: ${SRCS}
-       rm -f ${.TARGET}
-       ${PIC} ${SRCS} | ${EQN} -Tascii | ${ROFF} -Tascii > ${.TARGET}
+op.txt: ${SRCS}
+       rm -f $@
+       @echo "Note: see README file in case of errors."
+       ${PIC} ${SRCS} | ${EQNASCII} | \
+       env GROFF_NO_SGR=NoThanks ${ROFFASCII} | \
+       ${ULASCII} > $@
 
-.include <bsd.doc.mk>
+op.pdf: op.ps
+       rm -f $@
+       ${PS2PDF} op.ps op.pdf
+
+clean:
+       rm -f op.ps op.txt op.pdf
+
+install: ${OBJS}
Index: gnu/usr.sbin/sendmail/doc/op/op.me
===================================================================
RCS file: /cvs/src/gnu/usr.sbin/sendmail/doc/op/op.me,v
retrieving revision 1.29
diff -u -p -r1.29 op.me
--- gnu/usr.sbin/sendmail/doc/op/op.me  26 Dec 2012 11:44:12 -0000      1.29
+++ gnu/usr.sbin/sendmail/doc/op/op.me  14 Mar 2013 04:05:30 -0000
@@ -90,7 +90,7 @@ Sendmail, Inc.
 .de Ve
 Version \\$2
 ..
-.Ve $Revision: 1.29 $
+.Ve $Revision: 8.749 $
 .rm Ve
 .sp
 For Sendmail Version 8.14
@@ -11471,7 +11471,7 @@ replace it with a blank sheet for double
 .\".sz 10
 .\"Eric Allman
 .\".sp
-.\"Version $Revision: 1.29 $
+.\"Version $Revision: 8.749 $
 .\".ce 0
 .bp 3
 .ce

Reply via email to