Date: Mon, 20 Jan 2003 23:01:27 +1100 From: Edwin Groothuis <edwin@mavetju.org> To: portmgr@freebsd.org Cc: Erwin Lansing <erwin@lansing.dk>, ports@freebsd.org Subject: Re: pkg-plist - dirrm on shared dirs? Message-ID: <20030120120127.GP50581@k7.mavetju> In-Reply-To: <20030120110112.GC12043@droso.net> References: <20030120105343.GA23663@raq15.uk2net.com> <20030120110112.GC12043@droso.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030120120127.GP50581>