From owner-freebsd-ports Mon Jan 20 13:44:43 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 F35BF37B401 for ; Mon, 20 Jan 2003 13:44:41 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-64-169-106-179.dsl.lsan03.pacbell.net [64.169.106.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D18D43F13 for ; Mon, 20 Jan 2003 13:44:41 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id ED39C66B60; Mon, 20 Jan 2003 13:44:40 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id CA94D1631; Mon, 20 Jan 2003 13:44:40 -0800 (PST) Date: Mon, 20 Jan 2003 13:44:40 -0800 From: Kris Kennaway To: Tim Bishop Cc: ports@FreeBSD.ORG Subject: Re: pkg-plist - dirrm on shared dirs? Message-ID: <20030120214440.GD3659@rot13.obsecurity.org> References: <20030120105343.GA23663@raq15.uk2net.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4zI0WCX1RcnW9Hbu" Content-Disposition: inline In-Reply-To: <20030120105343.GA23663@raq15.uk2net.com> 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 --4zI0WCX1RcnW9Hbu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? >=20 > 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. >=20 > http://bento.freebsd.org/errorlogs/i386-4-full-logs/extras.html#pircbot-1= .0.2.log >=20 > 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. >=20 > Unless I'm missing something obvious, like a "dirrm if empty" or the > package management stuff is clever enough to know about it. If it's truly shared, then you can use @unexec as the other poster suggested. However, in this case those two directories are not "owned" by the pircbot port (they were not created by it), but belong to the jdk port it depends on. Furtherfurthermore, if you take a look at the log itself you'll find that these directories are incorrectly being REMOVED by the jdk port when they should be left behind (they're defined in BSD.local.dist and are therefore "system" directories). It's a bit unintuitive, but the "extra files" on that webpage that are of the form ./ instead of are files that have been mistakenly removed. Finally, I already fixed this problem last week :-) Thanks for your diligence though. Kris --4zI0WCX1RcnW9Hbu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+LG3IWry0BWjoQKURAvbLAJ4tYVtW+oTzTJsyQ5SN3tJsRFCCAwCg1eN9 02deDH4FDyki93Td2JT67j0= =CHTi -----END PGP SIGNATURE----- --4zI0WCX1RcnW9Hbu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message