Stage and /var ?

Matthias Andree matthias.andree at gmx.de
Sat Nov 2 10:19:57 UTC 2013



Thierry Thomas <thierry at FreeBSD.org> schrieb:
>Le ven  1 nov 13 à 10:11:50 +0100, Tijl Coosemans <tijl at FreeBSD.org>
> écrivait :
>
>> Something like this should work:
>> 
>> 
>> In post-install do: ${MKDIR} /var/foo
>> 
>> In pkg-plist add:
>> 
>> @unexec rmdir /var/foo 2>/dev/null || true
>> @exec mkdir -p /var/foo
>
>Thanks for this, it could be useful for some other ports.
>
>About net/neubot (just committed), I removed the creation of the
>directory from the Makefile, and it still works: it's created anyway
>when the application creates its database.
>
>Regards,
>-- 
>Th. Thomas.

This only works with pkgNG, not traditional pkg_... tools.


More information about the freebsd-ports mailing list