This package contains the IEEE Std 1003.1-2008 (POSIX.1) manual
pages including the corrections contained in the first Technical Corrigendum, IEEE Std 1003.1-2008/Cor 1-2013. It include manuals for utilities in section 1, and for functions and headers in section 3. A lot of input and okay for the contents schwarze@; Other input from matthew@ and Dmitrij D. Czarkoff; Final okay bentley@.
This commit is contained in:
parent
efa2ae2dd4
commit
e885f20b18
50
books/man-pages-posix/Makefile
Normal file
50
books/man-pages-posix/Makefile
Normal file
@ -0,0 +1,50 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2014/07/08 08:45:22 zhuk Exp $
|
||||
|
||||
CATEGORIES = books devel
|
||||
COMMENT = POSIX manual pages
|
||||
DISTNAME = man-pages-posix-2013-a
|
||||
PKGNAME = ${DISTNAME:C/(-[0-9]+)-/\1/}
|
||||
PKG_ARCH = *
|
||||
|
||||
MASTER_SITES = https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/
|
||||
EXTRACT_SUFX = .tar.xz
|
||||
|
||||
# custom copyleft license, see POSIX-COPYRIGHT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
USE_GROFF = Yes
|
||||
NO_BUILD = Yes
|
||||
NO_TEST = Yes
|
||||
|
||||
DOCDIR = ${PREFIX}/share/doc/posix
|
||||
SUBST_VARS = DOCDIR
|
||||
|
||||
# mapping of categories: source => destination
|
||||
MANS = 0p 3
|
||||
MANS += 1p 1
|
||||
MANS += 3p 3
|
||||
|
||||
do-install:
|
||||
.for _src _dst in ${MANS}
|
||||
${INSTALL_DATA_DIR} ${DOCDIR}/man/man${_dst}
|
||||
${INSTALL_DATA} ${WRKSRC}/man${_src}/*.${_src} ${DOCDIR}/man/man${_dst}
|
||||
cd ${DOCDIR}/man/man${_dst}; \
|
||||
for page in *.${_src}; do \
|
||||
echo mv $$page $${page%${_src}}${_dst} >&2; \
|
||||
mv $$page $${page%${_src}}${_dst}; \
|
||||
done
|
||||
|
||||
# 1. Tweak page names to make whatis happier.
|
||||
# 2. Change Linux references in PROLOG sections to "generic" ones.
|
||||
perl -pi \
|
||||
-e 's,^(\.TH [^"]+)"${_src}",$$1"${_dst}",i;' \
|
||||
-e 's,Linux(\.| (?:behavior|implementation|manual)),OS$$1,g;' \
|
||||
${DOCDIR}/man/man${_dst}/*.${_dst}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/POSIX-COPYRIGHT ${DOCDIR}
|
||||
# Install original package until mandoc(1) receive tbl(7) support,
|
||||
# to obey the license rules
|
||||
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} \
|
||||
${DOCDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
2
books/man-pages-posix/distinfo
Normal file
2
books/man-pages-posix/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (man-pages-posix-2013-a.tar.xz) = GWM6XHX/feqzWx0sPVt3SOe9TvSrWYtke7fn9guQqAg=
|
||||
SIZE (man-pages-posix-2013-a.tar.xz) = 930736
|
5
books/man-pages-posix/pkg/DESCR
Normal file
5
books/man-pages-posix/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
This package contains the IEEE Std 1003.1-2008 (POSIX.1) manual
|
||||
pages including the corrections contained in the first Technical
|
||||
Corrigendum, IEEE Std 1003.1-2008/Cor 1-2013. It include manuals
|
||||
for utilities in section 1, and for functions and headers in
|
||||
section 3.
|
1147
books/man-pages-posix/pkg/PLIST
Normal file
1147
books/man-pages-posix/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
25
books/man-pages-posix/pkg/README
Normal file
25
books/man-pages-posix/pkg/README
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: README,v 1.1.1.1 2014/07/08 08:45:22 zhuk Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Using ${FULLPKGNAME} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
Because the manuals contained in this package do not match any real software
|
||||
installed, they are not installed into directories that man(1) searches by
|
||||
default. Consider adding something like this to your shell startup file:
|
||||
|
||||
alias pman='man -M ${DOCDIR}/man'
|
||||
alias papropos='apropos -M ${DOCDIR}/man'
|
||||
alias pwhatis='whatis -M ${DOCDIR}/man'
|
||||
|
||||
Then you can call it like usual "man" command:
|
||||
|
||||
papropos pthread
|
||||
pman 3 chmod
|
||||
pwhatis ldds
|
||||
|
||||
Because manual page handling tools do not support section 0, header
|
||||
documentation is installed into section 3.
|
||||
|
||||
Source package is installed to ${DOCDIR}, too,
|
||||
to satisfy the license requirements, see the POSIX-COPYRIGHT file there.
|
Loading…
Reference in New Issue
Block a user