From owner-freebsd-ports Mon Jan 20 3: 1:29 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 4A77337B401 for ; Mon, 20 Jan 2003 03:01:27 -0800 (PST) Received: from mail.droso.net (koala.droso.net [193.162.142.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id B986243F18 for ; Mon, 20 Jan 2003 03:01:14 -0800 (PST) (envelope-from erwin@mail.droso.net) Received: by mail.droso.net (Postfix, from userid 1001) id 840D333254; Mon, 20 Jan 2003 12:01:12 +0100 (CET) Date: Mon, 20 Jan 2003 12:01:12 +0100 From: Erwin Lansing To: Tim Bishop Cc: ports@freebsd.org Subject: Re: pkg-plist - dirrm on shared dirs? Message-ID: <20030120110112.GC12043@droso.net> Mail-Followup-To: Tim Bishop , ports@freebsd.org References: <20030120105343.GA23663@raq15.uk2net.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <20030120105343.GA23663@raq15.uk2net.com> X-Operating-System: FreeBSD/i386 4.7-RELEASE-p3 User-Agent: Mutt/1.5.1i 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 --PEIAKu/WMn1b1Hv9 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. >=20 Most ports use this "dirrm if empty" like: @unexec rmdir %D/share/java 2>/dev/null || true Cheers, -erwin --=20 _._ _,-'""`-._ Erwin Lansing (,-.`._,'( |\`-/| http://droso.org/ erwin@lansing.dk `-.-' \ )-`( , o o) http://fnidder.dk/ -bf- `- \`_`"'- --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+K9b4qy9aWxUlaZARAtb6AKDFYPy6tPZUgCNm4RaCHl9nskgFDgCgwKIw XyNwGn/HW0NJAaGBbsavS0g= =ecU3 -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message