destroot empty directory?
Joshua Root
jmr at macports.org
Mon Nov 25 12:19:52 PST 2013
On 2013-11-26 07:09 , Peter Danecek wrote:
>
> Hi all,
>
> I have a doubt on how to create an empty directory in `${prefix}/var/cache/`.
>
> When I started, I found something like this:
> file mkdir ${prefix}/var/cache/fetch-crl
>
> But I doubt this is okay. I works when build from source, I guess the directory would be missing in binary packages.
>
> So I changed this to:
> install -d ${destroot}/${prefix}/var/cache/fetch-crl
>
> But because the directory is empty, it will be deleted and is not present in the binary packages. So I could do something like:
> install -d ${destroot}/${prefix}/var/cache/fetch-crl
> touch ${destroot}/${prefix}/var/cache/fetch-crl/.keep
>
> Or is there some clever way to avoid cancelling of empty directories.
destroot.keepdirs
http://guide.macports.org/#reference.phases.destroot
- Josh
More information about the macports-dev
mailing list