Subject: pkg/21858: for pkg_install: improved DESCR, man page path, and use PKG_TOOLS_BIN
To: None <>
From: None <>
List: netbsd-bugs
Date: 06/11/2003 10:24:56
>Number:         21858
>Category:       pkg
>Synopsis:       for pkg_install: improved DESCR, man page path, and use PKG_TOOLS_BIN
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 11 17:26:00 UTC 2003
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 i386
Architecture: i386
Machine: i386
The pkgtools/pkg_install/PLIST for man pages may be wrong.
Also, may needs path to pkg_admin which is ran at install time.
Also, provided below is improved COMMENT and more DESCR.
Use LOCALBASE=/usr and then the man pages get installed in different
place from rest of installed packages.

Also, it runs pkg_admin but maybe not in path?
Below are some ideas for the Makefile, PLIST and DESCR:

-COMMENT=		NetBSD-current's pkg_* tools
+COMMENT=		package installation and administration tools
-.if ${PREFIX} == "/usr"
+.if ${OPSYS} == "NetBSD" && ${PREFIX} == "/usr"
 CONFIGURE_ARGS+=	--mandir=${PREFIX}/share/man
+MANDIR=			share/
 CONFIGURE_ARGS+=	--mandir=${PREFIX}/man

Index: pkgtools/pkg_install/PLIST
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/PLIST,v
retrieving revision 1.2
diff -b -u -r1.2 PLIST
--- pkgtools/pkg_install/PLIST	2003/01/12 02:33:02	1.2
+++ pkgtools/pkg_install/PLIST	2003/06/11 17:13:16
@@ -4,14 +4,14 @@
 @comment share/man/man1/pkg_add.1
 @comment share/man/man1/pkg_admin.1
 @comment share/man/man1/pkg_create.1
 @comment share/man/man1/pkg_delete.1
 @comment share/man/man1/pkg_info.1
-@exec [ -f ${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ] || pkg_admin rebuild
+@exec [ -f ${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ] || ${PKG_TOOLS_BIN}/pkg_admin rebuild


+This package includes the package installation and administration tools:
+pkg_add - a utility for installing and upgrading software packages
+pkg_admin - perform various administrative tasks to the pkg system
+pkg_create - a utility for creating software package distributions
+pkg_delete - a utility for deleting previously installed software packages
+pkg_info - a utility for displaying information on software packages