From 4e1f856ff7193e68d6e8ce9bce3d382eeb9c467e Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 14 Jul 2004 10:44:04 +0000 Subject: 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@ --- usr.sbin/pkg_add/pkg_create.1 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'usr.sbin/pkg_add/pkg_create.1') 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 -- cgit v1.2.3