43 lines
1.6 KiB
Raw Permalink Normal View History

2022-05-25 11:36:23 -04:00
.\" prtcheck manual page.
.\" (C) 2003 by Martin Opel <>
.TH prtcheck 1
prtcheck \- check the port in the current directory
.B prtcheck
[ \-\-root ]
The \fIprtcheck\fP script checks the following things: existence of
Pkgfile, \.footprint, and \.signature. It warns, if any files with non-root
user/group appear in the \.footprint, or if any of the fields Description, URL,
Packager, "Depends on" were omitted from the Pkgfile, or if any source
needed for compiling and verifying the package is unsigned.
\fIprtcheck\fP returns with an exit status of -1 if it encounters serious
violations of port correctness, >0 if it only finds easily-fixed violations,
and 0 if all checks were passed.
The following option is supported:
.I "\--root"
This option is helpful if you create ports as a normal user. Even after
debugging those Makefiles or source code packages that try to install directly
in /usr/local or ignore DESTDIR variables, the .footprint might contain
uid/gid entries matching the uid/gid of the user who called \fIpkgmk\fP (since
\fIfakeroot\fP is no requirement in a basic CRUX installation).
\fIprtcheck\fP normally just issues a warning if it finds such uid/gid entries,
but passing the --root option lets you create a new footprint, replacing the invalid
uid/gid entries with root/root. Follow up with \fIprtverify(1)\fP to additionally
check that your port's footprint respects CRUX filesystem conventions.
\fIprtcheck\fP was written by Martin Opel <> for CRUX Linux,
revised by John McQuah <> to address FS#1763.