Our errno is in section 2, so patch the vendor provided man page.
authorPeter Avalos <pavalos@dragonflybsd.org>
Mon, 13 Nov 2006 05:42:42 +0000 (05:42 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Mon, 13 Nov 2006 05:42:42 +0000 (05:42 +0000)
Thanks again to swildner for the manpage markup review.

lib/libmagic/Makefile
lib/libmagic/libmagic.man.patch [new file with mode: 0644]

index 13cb67b..bf03b6f 100644 (file)
@@ -1,4 +1,4 @@
-# $DragonFly: src/lib/libmagic/Makefile,v 1.13 2006/11/12 04:51:56 pavalos Exp $
+# $DragonFly: src/lib/libmagic/Makefile,v 1.14 2006/11/13 05:42:42 pavalos Exp $
 
 CONTRIBDIR=    ${.CURDIR}/../../contrib/file-4
 MAGICDIR= ${CONTRIBDIR}/magic
@@ -38,11 +38,12 @@ FILESDIR=   /usr/share/misc
 MAGFILES=      ${MAGICDIR}/Header ${MAGICDIR}/Localstuff\
                ${MAGICDIR}/Magdir/[a-z]*
 
-libmagic.3: ${CONTRIBDIR}/doc/libmagic.man
+libmagic.3: ${CONTRIBDIR}/doc/libmagic.man libmagic.man.patch
+         patch -o - ${.ALLSRC} | \
            sed -e s@__CSECTION__@1@g \
                -e s@__FSECTION__@5@g \
                -e s@__VERSION__@${VERSION}@g \
-               -e s@__MAGIC__@${MAGIC}@g ${.ALLSRC} > ${.TARGET}
+               -e s@__MAGIC__@${MAGIC}@g > ${.TARGET}
 
 all: ${LIB} magic.mgc magic.mime.mgc
 
diff --git a/lib/libmagic/libmagic.man.patch b/lib/libmagic/libmagic.man.patch
new file mode 100644 (file)
index 0000000..afd90b7
--- /dev/null
@@ -0,0 +1,17 @@
+$DragonFly: src/lib/libmagic/Attic/libmagic.man.patch,v 1.1 2006/11/13 05:42:42 pavalos Exp $
+Index: libmagic.man
+===================================================================
+RCS file: /cvs/src/contrib/file-4/doc/libmagic.man,v
+retrieving revision 1.1
+diff -u -r1.1 libmagic.man
+--- libmagic.man       12 Nov 2006 04:51:56 -0000      1.1
++++ libmagic.man       12 Nov 2006 23:35:03 -0000
+@@ -120,7 +120,7 @@
+ The
+ .Fn magic_errno
+ function returns the last operating system error number
+-.Pq .Xr errno 3
++.Pq Xr errno 2
+ that was encountered by a system call.
+ .Pp
+ The