diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-07 13:41:23 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-07 13:41:23 +0000 |
commit | c1c40d5fce57e39fbfc06d3e5ce077d0c1793fe1 (patch) | |
tree | de78880510fc0258e985cebf66bc7297cfab3d05 /usr.sbin | |
parent | edc086bb504adb6efebeb182fb27c449b4ec7cf2 (diff) |
be a bit more specific about documenting this program
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgCheck.pm | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_add/pkg_check.8 | 30 |
2 files changed, 28 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm index 3d9d7057f55..5b06f719069 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCheck.pm,v 1.8 2010/06/07 10:39:09 espie Exp $ +# $OpenBSD: PkgCheck.pm,v 1.9 2010/06/07 13:41:22 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -483,7 +483,7 @@ sub dependencies_check { my ($self, $state, $l) = @_; OpenBSD::SharedLibs::add_libs_from_system($state->{destdir}); - $self->for_all_packages($state, $l, "Dependencies", sub { + $self->for_all_packages($state, $l, "Direct dependencies", sub { my $name = shift; my $plist = OpenBSD::PackingList->from_installation($name, \&OpenBSD::PackingList::DependOnly); diff --git a/usr.sbin/pkg_add/pkg_check.8 b/usr.sbin/pkg_add/pkg_check.8 index be23cb73d1b..81a390ba21b 100644 --- a/usr.sbin/pkg_add/pkg_check.8 +++ b/usr.sbin/pkg_add/pkg_check.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pkg_check.8,v 1.1 2010/06/05 17:15:32 espie Exp $ +.\" $OpenBSD: pkg_check.8,v 1.2 2010/06/07 13:41:22 espie Exp $ .\" .\" Copyright (c) 2010 Marc Espie <espie@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 5 2010 $ +.Dd $Mdocdate: June 7 2010 $ .Dt PKG_CHECK 8 .Os .Sh NAME @@ -48,11 +48,33 @@ Checks that .Pa /var/db/pkg only contains directories, that each directory holds a packing-list, and that said packing-list is an actual packing-list that matches the directory. +.It Direct dependencies +Checks that all direct dependencies are recorded correctly, specifically, that +.Cm @depend +and +.Cm @wantlib +match actual packages. +It currently does not verify that +.Cm @wantlib +are reachable from the base package. +.It Reverse dependencies +Checks that all direct dependencies have corresponding reverse dependencies. .It Files from packages -Checks that each file or directory in those packing-lists actually exist, +Checks that each file, link or directory in those packing-lists actually exist, and that their checksum matches what's recorded in the packing-list. +.It Other files +Checks that there are no other random objects under +.Pa /usr/local . .El .Pp +By default, +.Nm +will only perform very safe transformations, such as the removal of core-dumps. +.Fl f +or +.Fl i +are the only way to perform further changes. +.Pp The options are as follows: .Bl -tag -width Ds .It Xo @@ -88,5 +110,5 @@ This program was written by .An Marc Espie . .Sh BUGS Work in progress. -More checks to be added. +The order of checks is not definitive, and more checks may be added. Use with caution. |