From: Ion-Mihai Tetcu on 21 Mar 2010 18:46 On Sun, 21 Mar 2010 15:36:52 +0100 Thomas-Martin Seck <tmseck-lists(a)netcologne.de> wrote: > * Doug Barton (dougb(a)FreeBSD.org): > > > 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. > > > > 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. > > > > Your personal feelings about it don't really enter in. If you don't > > 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. > > Oh dear, what did I do. (Why did people not report this five years > ago?) > > 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} -- IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> itetcu(a)FreeBSD.org, PGP Key ID 057E9F8B493A297B
From: Doug Barton on 21 Mar 2010 21:28
On 03/21/10 09:52, Matthew Seaman wrote: > Instead of trying to make the pkg plist do difficult things, why not > just include code in your RC script to create whatever working files and > directories you need under /var when squid is started up? Yes, this is the typical solution, especially for pidfiles. Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org" |