diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-07-14 10:44:04 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-07-14 10:44:04 +0000 |
commit | 4e1f856ff7193e68d6e8ce9bce3d382eeb9c467e (patch) | |
tree | bfecc120353c4df4f16fe4344378745a4cde14e6 /usr.sbin/pkg_add/pkg_create.1 | |
parent | d8cb00a3eea2e3efb7fcaca41b8f8259439dde8d (diff) |
Rework @dirrm: keep them all, and remove them at the end of pkg_delete.
Add @dir, more powerful than @dirrm, so that we can get rid of those
pesky @exec mkdir -p.
okay naddy@
Diffstat (limited to 'usr.sbin/pkg_add/pkg_create.1')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create.1 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/pkg_create.1 b/usr.sbin/pkg_add/pkg_create.1 index 534d70eb6ab..8d8c2fce130 100644 --- a/usr.sbin/pkg_add/pkg_create.1 +++ b/usr.sbin/pkg_add/pkg_create.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pkg_create.1,v 1.6 2004/07/05 23:21:56 espie Exp $ +.\" $OpenBSD: pkg_create.1,v 1.7 2004/07/14 10:44:03 espie Exp $ .\" .\" FreeBSD install - a package for the installation and maintenance .\" of non-core utilities. @@ -298,6 +298,11 @@ Note that .Nm will derive this field from the package name and add it automatically if none is given. +.It Cm @dir Ar name +Create directory +.Pa name +at install time, taking @mode, @group, @owner into account, +and remove it at deinstall time. .It Cm @dirrm Ar name Declare directory .Pa name @@ -305,13 +310,11 @@ to be deleted at deinstall time. By default, directories created by a package installation are not deleted when the package is deinstalled; this provides an explicit directory cleanup method. -This directive should appear at the end of the package list. -If more than one -.Cm @dirrm -directive is used, the directories are removed in the order specified. The .Pa name -directory will not be removed unless it is empty. +directory will not be removed unless it is empty after the package is +de-installed. +Directories to remove can be shared between packages. .It Cm @extra Ar file Declare extra file .Pa file |