.\" $OpenBSD: register-plist.1,v 1.2 2018/06/26 06:56:07 jmc Exp $ .\" .\" Copyright (c) 2010 Marc Espie .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" 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 26 2018 $ .Dt REGISTER-PLIST 1 .Os .Sh NAME .Nm register-plist .Nd smart diff and registration of packing-lists .Sh SYNOPSIS .Nm register-plist .Ar dir .Op Ar pkgname ... .Nm .Fl t .Ar p1 .Ar p2 .Sh DESCRIPTION .Nm is used to check that a packing-list for a given package name doesn't change. By default, it is invoked at the end of .Li make package , see .Ev PACKAGE_REPOSITORY in .Xr bsd.port.mk 5 . Package names (package stem plus version) are used to uniquely identify packages. When something in the package changes, the package name should change, usually by increasing .Ev REVISION . .Pp .Nm records a packing-list for each .Ar pkgname into the given directory .Ar dir . If no previous packing-list for the given pkgname exists, the packing-list is recorded. If a previous packing-list exists, .Nm compares both packing-list for discrepancies. Whenever something significant changes, .Nm will display a diff of the differences, and exit with an error. .Pp Some items in the packing-list may change without actual problems. For instance, dependencies are allowed to go forward. On the other hand, some items like the package DESCR can't change at all. Since this is a generated file, porters often overlook that items such as the HOMEPAGE or the MAINTAINER's email address are embedded into that file, and thus that changing these requires a REVISION bump. .Pp .Nm can also be invoked with .Fl t and two packing-lists .Ar p1 .Ar p2 to directly compare those packing-lists. .Sh SEE ALSO .Xr bsd.port.mk 5