Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 10:11:50 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Thierry Thomas <thierry@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: Stage and /var ?
Message-ID:  <20131101101150.3560bd31@kalimero.tijl.coosemans.org>
In-Reply-To: <20131031142025.GA10968@graf.pompo.net>
References:  <20131031142025.GA10968@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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