Date: Wed, 15 May 2013 04:54:16 +0000 From: Max Brazhnikov <makc@freebsd.org> To: Johan van Selst <johans@freebsd.org> Cc: "svn-ports-head@freebsd.org" <svn-ports-head@freebsd.org>, "svn-ports-all@freebsd.org" <svn-ports-all@freebsd.org>, Jason Helfman <jgh@freebsd.org>, "ports-committers@freebsd.org" <ports-committers@freebsd.org> Subject: Re: svn commit: r318127 - in head/games/xboard: . files Message-ID: <1722947.Vxd1CHFxaz@mercury.ph.man.ac.uk> In-Reply-To: <20130514201011.GA50950@mud.stack.nl> References: <201305132020.r4DKKTen074755@svn.freebsd.org> <CAMuy=%2Bg7TC6t7q6kPkQ-nJ7FBx2p=cuCm3M9NDmNAHtShJmkeg@mail.gmail.com> <20130514201011.GA50950@mud.stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 14 May 2013 22:10:11 +0200 Johan van Selst wrote: > Jason Helfman wrote: > > > > > - Add deinstall script to avoid leftovers > > > > Is there any particular reason this was added in favor of a plist entry? > > > Yes, plist entries are executed before PORTDATA cleanups. Since PORTDATA > > > files are installed below this directory, an @rmdir in plist would fail. > > > I certainly welcome suggestions for a cleaner solution. > > I believe adding this to the plist would take care of your needs. > > @unexec /bin/rmdir %%PREFIX%%/share/games 2>/dev/null || true > > No, it won't. Such a command will be executed too early when the package > is removed. Another alternative is to not use PORTDATA. Besides does xboard work without PORTDATA files? Btw, since the port installs MIME data files it needs 'USES= shared-mime-info'. '@dirrmtry share/mime*' should be removed from plist after that. Cheers, Max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1722947.Vxd1CHFxaz>