Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2009 09:33:44 +0000
From:      Baptiste Daroussin <baptiste.daroussin@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: New version of the fakeroot patch
Message-ID:  <ed7b1c610912150133o41ebf90et359adf18b32833ca@mail.gmail.com>
In-Reply-To: <4B274487.7080505@infracaninophile.co.uk>
References:  <20091214151318.GC1016@wicklow.lan> <fee671620912140959q32257e1er92e2825f55a0c968@mail.gmail.com> <4B274487.7080505@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> Uh -- is it actually possible to create an empty directory when installin=
g
> from
> a pkg tarball?
>
> I ran into this problem with the phpMyAdmin port, and the only good way I
> found
> to solve it was to add a stub file into any empty directories. =A0You cou=
ld
> use a post install script or an mtree file, but that seems like overkill =
for
> such a
> trivial operation.

Normally for empty directories : you add to the plist:
@exec mkdir -p %D/path/to/empty
@dirrm path/to/empty

USE_FAKE can't solve this, but would prevent from forgetting to do
such things, you also won't have a method for the ports (in the
Makefile)
and a method for the package.

The installation being always done by installing the package, porters
should only take care of the way the package does it : install
scripts, user creation etc.

regards,
Bapt



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