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
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to