From owner-freebsd-ports Sat Mar 10 17:54:36 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ns1.unixathome.org (ns1.unixathome.org [203.79.82.27]) by hub.freebsd.org (Postfix) with ESMTP id B078937B718 for ; Sat, 10 Mar 2001 17:54:32 -0800 (PST) (envelope-from dan@langille.org) Received: from wocker (wocker.int.nz.freebsd.org [192.168.0.99]) by ns1.unixathome.org (8.11.1/8.11.1) with ESMTP id f2B1sQw03743; Sun, 11 Mar 2001 14:54:26 +1300 (NZDT) (envelope-from dan@langille.org) Message-Id: <200103110154.f2B1sQw03743@ns1.unixathome.org> From: "Dan Langille" Organization: novice in training To: Will Andrews Date: Sun, 11 Mar 2001 14:54:24 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: where to put tmp files for security/logcheck Reply-To: dan@langille.org Cc: ports@FreeBSD.ORG, dan@langille.org In-reply-to: <20010310204228.M45561@ohm.physics.purdue.edu> References: <200103110019.f2B0JAw02897@ns1.unixathome.org>; from dan@langille.org on Sun, Mar 11, 2001 at 01:19:08PM +1300 X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 10 Mar 2001, at 20:42, Will Andrews wrote: > On Sun, Mar 11, 2001 at 01:19:08PM +1300, Dan Langille wrote: > > It's come to my attention (thanks Mr Fenner) that security/logcheck > > creates /usr/local/etc/tmp for its own use but does not remove that > > directory when the port is deleted. > > > > 1 - I'm not so such I like the idea of a port creating such a directory. > > Why can't it just use /var/tmp like everyone else? This would also > > remove the need to create/remove a tmp directory. > > > > 2 - If I modify the port so it just removes /usr/local/etc/tmp when > > pkg_delete is called, what's the downside? Still, I don't like the idea of > > creating directories just for tmp files. > > > > 3 - I've msg'd the author off-list to see what he thinks of this change. > > Blah. etc/tmp is wrong. hier(7) says: > > /usr/ contains the majority of user utilities and applications > [...] > local/ local executables, libraries, etc. Also used as the > default destination for the FreeBSD ports framework. > Within local/, the general layout sketched out by > hier(7) for /usr should be used. > [...] > /var/ multi-purpose log, temporary, transient, and spool files > [...] > tmp/ temporary files that are kept between system reboots > > IMO, /usr/local (${PREFIX} here) should be extended to include ${PREFIX}/var. I hope I'm not the only one confused by that. Via IRC, I've figured out that Will means that the defintion in heir should be extended to include should be extended to include ${PREFIX}/var. And that I should create and remove ${PREFIX}/var/tmp in the port. How does that sound to others? -- Dan Langille pgpkey - finger dan@unixathome.org | http://unixathome.org/finger.php got any work? I'm looking for some. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message