From f99e681dd58f6955436406d8b17c6e75e31084fc Mon Sep 17 00:00:00 2001 From: reed Date: Sat, 2 May 2009 16:14:37 +0000 Subject: Add new metadata: PREV_PKGPATH and SUPERSEDES. These will be available from pkg_summary(5) database. To be used to find previous packages when a package is moved or renamed. (Even though that is not recommended.) Documented in pkgsrc Guide and in the pkg_summary(5) manual page. Upcoming commit will have some packages modified to add them. --- pkgtools/pkg_install/files/info/show.c | 6 ++++-- pkgtools/pkg_install/files/lib/pkg_summary.5 | 14 ++++++++++++-- pkgtools/pkg_install/files/lib/version.h | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) (limited to 'pkgtools/pkg_install') diff --git a/pkgtools/pkg_install/files/info/show.c b/pkgtools/pkg_install/files/info/show.c index a7a621e3fc4..57a9167c901 100644 --- a/pkgtools/pkg_install/files/info/show.c +++ b/pkgtools/pkg_install/files/info/show.c @@ -1,4 +1,4 @@ -/* $NetBSD: show.c,v 1.28 2009/04/24 14:00:25 joerg Exp $ */ +/* $NetBSD: show.c,v 1.29 2009/05/02 16:14:37 reed Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -7,7 +7,7 @@ #if HAVE_SYS_CDEFS_H #include #endif -__RCSID("$NetBSD: show.c,v 1.28 2009/04/24 14:00:25 joerg Exp $"); +__RCSID("$NetBSD: show.c,v 1.29 2009/05/02 16:14:37 reed Exp $"); /* * FreeBSD install - a package for the installation and maintainance @@ -334,6 +334,8 @@ show_summary(struct pkg_meta *meta, package_t *plist, const char *binpkgfile) "HOMEPAGE", "PKGTOOLS_VERSION", "BUILD_DATE", + "PREV_PKGPATH", + "SUPERSEDES", NULL }; diff --git a/pkgtools/pkg_install/files/lib/pkg_summary.5 b/pkgtools/pkg_install/files/lib/pkg_summary.5 index 5b858729be1..08aece1c29b 100644 --- a/pkgtools/pkg_install/files/lib/pkg_summary.5 +++ b/pkgtools/pkg_install/files/lib/pkg_summary.5 @@ -1,4 +1,4 @@ -.\" $NetBSD: pkg_summary.5,v 1.8 2009/02/08 23:12:05 wiz Exp $ +.\" $NetBSD: pkg_summary.5,v 1.9 2009/05/02 16:14:37 reed Exp $ .\" .\" Copyright (c) 2006 The NetBSD Foundation .\" @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 29, 2007 +.Dd April 11, 2009 .Dt PKG_SUMMARY 5 .Os .Sh NAME @@ -94,6 +94,12 @@ If missing, the package does not support options. (required) The path of the package directory within pkgsrc. .It Ev PKGTOOLS_VERSION (required) The version of the package tools used to create the package. +.It Ev PREV_PKGPATH +(optional) The previous path of the package directory within pkgsrc when +a package was moved. +(See +.Ev SUPERSEDES +below for a renamed package.) .It Ev PROVIDES (optional) A list of shared libraries provided by the package, including major version number, one per line. @@ -104,6 +110,10 @@ major version number, one per line. If missing, this package does not require shared libraries. .It Ev SIZE_PKG (required) The size of the package when installed, in bytes. +.It Ev SUPERSEDES +(optional) A list of dewey patterns of previous packages this +package replaces, one per line. +This is used for package renaming. .El .Pp The diff --git a/pkgtools/pkg_install/files/lib/version.h b/pkgtools/pkg_install/files/lib/version.h index 38511738ee5..6e5fe0b9f87 100644 --- a/pkgtools/pkg_install/files/lib/version.h +++ b/pkgtools/pkg_install/files/lib/version.h @@ -1,4 +1,4 @@ -/* $NetBSD: version.h,v 1.125 2009/04/25 21:31:14 joerg Exp $ */ +/* $NetBSD: version.h,v 1.126 2009/05/02 16:14:37 reed Exp $ */ /* * Copyright (c) 2001 Thomas Klausner. All rights reserved. @@ -27,6 +27,6 @@ #ifndef _INST_LIB_VERSION_H_ #define _INST_LIB_VERSION_H_ -#define PKGTOOLS_VERSION "20090425" +#define PKGTOOLS_VERSION "20090502" #endif /* _INST_LIB_VERSION_H_ */ -- cgit v1.2.3