summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/create/pkg_create.1
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-04-09 15:05:01 +0000
committerjkh <jkh@FreeBSD.org>1995-04-09 15:05:01 +0000
commite8ff66af03039a32b2bdf2f4bba9843809a54cd2 (patch)
treef273cc944338bcf02c0c1057a024d5fdbf75658e /usr.sbin/pkg_install/create/pkg_create.1
parentdbdb475f26b4d6f6d822f6bc625b0a9fc81e4b4c (diff)
downloadFreeBSD-src-e8ff66af03039a32b2bdf2f4bba9843809a54cd2.zip
FreeBSD-src-e8ff66af03039a32b2bdf2f4bba9843809a54cd2.tar.gz
Add true support for dependency lists.
1. pkg_create now has a -P argument for specifying dependencies on the command line. 2. pkg_add will honor dependencies and chain-load them automatically if it finds the required package(s) in the same directory as the package that is being loaded. For best results, install packages from a directory containing all the packages you'll possibly need (like /usr/ports/packages/all). 2 remaining flaws: 1. pkg_add looks in one place (where you were when you loaded the primary pkg) for depended packages. If you can come up with a search path scheme that's not a total hack - be my guest! 2. Recursive dependency expansion can result in the name of a dep being listed more than once. This doesn't bother pkg_add since it checks for package existance with pkg_info and will skip already-loaded packages. I don't know how/if pkg_delete handles this yet, however. I need to look into it.
Diffstat (limited to 'usr.sbin/pkg_install/create/pkg_create.1')
-rw-r--r--usr.sbin/pkg_install/create/pkg_create.111
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/create/pkg_create.1 b/usr.sbin/pkg_install/create/pkg_create.1
index c2fc2bb..e5424a9 100644
--- a/usr.sbin/pkg_install/create/pkg_create.1
+++ b/usr.sbin/pkg_install/create/pkg_create.1
@@ -15,7 +15,7 @@
.\"
.\"
.\" @(#)pkg_create.8
-.\" $Id: pkg_create.1,v 1.11 1995/01/05 10:22:51 jkh Exp $
+.\" $Id: pkg_create.1,v 1.12 1995/01/05 10:37:09 jkh Exp $
.\" hacked up by John Kohl for NetBSD--fixed a few bugs, extended keywords,
.\" added dependency tracking, etc.
.\"
@@ -28,6 +28,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl YNhv
+.Op Fl P Ar pkgs
.Op Fl p Ar prefix
.Op Fl f Ar contents
.Op Fl i Ar iscript
@@ -99,6 +100,14 @@ to be the install procedure for the package. This can be any
executable program (or shell script). It will be invoked automatically
when the package is later installed.
.Em "Optional."
+.It Fl P Ar pkgs
+Sets the initial package dependency list to
+.Ar pkgs.
+This is assumed to be a whitespace separated list of package names
+and is meant as a convenient shorthand for specifying multiple
+.Cm @pkgdep
+directives in the packing list (see PACKING LIST DETAILS section below).
+.Em "Optional."
.It Fl p Ar prefix
Sets
.Ar prefix
OpenPOWER on IntegriCloud