Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2003 12:01:12 +0100
From:      Erwin Lansing <erwin@lansing.dk>
To:        Tim Bishop <tim@bishnet.net>
Cc:        ports@freebsd.org
Subject:   Re: pkg-plist - dirrm on shared dirs?
Message-ID:  <20030120110112.GC12043@droso.net>
In-Reply-To: <20030120105343.GA23663@raq15.uk2net.com>
References:  <20030120105343.GA23663@raq15.uk2net.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030120110112.GC12043>