From owner-freebsd-ports@FreeBSD.ORG Sun Mar 21 22:46:19 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CA0B1065672 for ; Sun, 21 Mar 2010 22:46:19 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from worf.ds9.tecnik93.com (worf.ds9.tecnik93.com [81.196.207.130]) by mx1.freebsd.org (Postfix) with ESMTP id 10A648FC16 for ; Sun, 21 Mar 2010 22:46:18 +0000 (UTC) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by worf.ds9.tecnik93.com (Postfix) with ESMTPSA id D419C22C508F; Mon, 22 Mar 2010 00:46:17 +0200 (EET) Date: Mon, 22 Mar 2010 00:46:16 +0200 From: Ion-Mihai Tetcu To: Thomas-Martin Seck Message-ID: <20100322004616.03eaf816@it.buh.tecnik93.com> In-Reply-To: <20100321143652.GB1784@wcfields.tmseck.homedns.org> References: <20100317184936.2310.qmail@wcfields.tmseck.homedns.org> <20100321143652.GB1784@wcfields.tmseck.homedns.org> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/FH.noWB8W0rPaT_/EXJZ7Ow"; protocol="application/pgp-signature" Cc: freebsd-ports@freebsd.org Subject: Re: correct location for third party /var files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2010 22:46:19 -0000 --Sig_/FH.noWB8W0rPaT_/EXJZ7Ow Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 21 Mar 2010 15:36:52 +0100 Thomas-Martin Seck wrote: > * Doug Barton (dougb@FreeBSD.org): >=20 > > On Wed, 17 Mar 2010, Thomas-Martin Seck wrote: > > >When I started maintaining ports in 2004, the (or at least my) > > >goal was to avoid absolute paths in pkg-plist like the plague, > > >that is why I do not bother to use something /var/cache/squid > > >or /var/log/squid instead of PREFIX/squid/{logs,cache}. There is > > >IMHO nothing wrong with storing variable data in $PREFIX/portname/ > > >as long as this is sensibly done. $PREFIX/portname/var or > > >$PREFIX/var/portname on the other hand is usually just a sign of > > >sloppy porting and should be fixed. > > > > > >Trying to separate static and variable data and scattering said > > >data across filesystems just for the sake of it or for arcane > > >aesthetic reasons is - IMO - not really helpful for the user. > >=20 > > I disagree strongly. hier(7) exists for a reason. I have always set > > up systems to make a clear distinction between partitions that will > > be more or less "static" and those that will be actively written > > to. This saves a lot of time NOT having to rebuild a system after a > > crash because the essential elements are still healthy. > >=20 > > Your personal feelings about it don't really enter in. If you don't=20 > > understand or don't agree with a policy feel free to discuss it. > > Choosing to ignore it because you don't like it isn't really an > > option. >=20 > Oh dear, what did I do. (Why did people not report this five years > ago?) >=20 > Anyway, I just tried to move cache/log/pidfile to /var and found that > this seems a bit tricky if not impossible when you generate your > packagelist dynamically with PLIST_DIRS/PLIST_FILES. It looks like you > need to wrap your absolute paths (or rather the @dirrm(try) calls in > the plist) between "@cwd /" and "@cwd %%PREFIX%%". Does anyone know > how to achieve this without resorting to a static pkg-plist? ${ECHO} something >> ${TMPPLIST} --=20 IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B --Sig_/FH.noWB8W0rPaT_/EXJZ7Ow Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkumobkACgkQJ7GIuiH/oeVEAACdFM4NHfDluc4Vp2pLdbgcyJEo 2xQAn36C3zNSMqvT9po9HgjXm92Bm2gv =n24E -----END PGP SIGNATURE----- --Sig_/FH.noWB8W0rPaT_/EXJZ7Ow--