From owner-freebsd-ports Mon Jan 20 4: 1:35 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D09337B401; Mon, 20 Jan 2003 04:01:34 -0800 (PST) Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id C438543F13; Mon, 20 Jan 2003 04:01:33 -0800 (PST) (envelope-from edwin@mavetju.org) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 9BE572B845; Mon, 20 Jan 2003 13:01:31 +0100 (CET) Received: by k7.mavetju (Postfix, from userid 1001) id B601E6A712B; Mon, 20 Jan 2003 23:01:27 +1100 (EST) Date: Mon, 20 Jan 2003 23:01:27 +1100 From: Edwin Groothuis To: portmgr@freebsd.org Cc: Erwin Lansing , ports@freebsd.org Subject: Re: pkg-plist - dirrm on shared dirs? Message-ID: <20030120120127.GP50581@k7.mavetju> References: <20030120105343.GA23663@raq15.uk2net.com> <20030120110112.GC12043@droso.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030120110112.GC12043@droso.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Jan 20, 2003 at 12:01:12PM +0100, Erwin Lansing wrote: > On Mon, Jan 20, 2003 at 10:53:43AM +0000, Tim Bishop wrote: > > What's the correct procedure for dealing with "shared" directories, > > possibly created by a port, in the pkg-plist? > > > > A specific case is the irc/pircbot port, according to the URL below there > > are two directories (/usr/local/share/java, /usr/local/share/java/classes) > > which are left behind. > > > > http://bento.freebsd.org/errorlogs/i386-4-full-logs/extras.html#pircbot-1.0.2.log > > > > What should I do with these directories? If I dirrm them there's a chance > > they'll fail because another port might have put files in there. > > > > Unless I'm missing something obvious, like a "dirrm if empty" or the > > package management stuff is clever enough to know about it. > > > Most ports use this "dirrm if empty" like: > @unexec rmdir %D/share/java 2>/dev/null || true I was wondering if there could come a new command for it, @dirrmfailok or something. It would save a lot of typing and typos (what %D?) Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message