On Thu, 31 Oct 2013 15:20:25 +0100 Thierry Thomas wrote:
> 
> Hello,
> 
> How should we stagify ports writing out of their $PREFIX for
> good reasons, e.g. a statedir like /var/foo/$PORTNAME.
> 
> I don't like the idea of $PREFIX/var, and prefer the real /var.
> 
> Thanks for your suggestions.

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
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to