From owner-freebsd-ports  Sat Mar 10 17:40:26 2001
Delivered-To: freebsd-ports@freebsd.org
Received: from ohm.physics.purdue.edu (ohm.physics.purdue.edu [128.210.146.32])
	by hub.freebsd.org (Postfix) with ESMTP id 73B0437B718
	for <ports@FreeBSD.ORG>; Sat, 10 Mar 2001 17:40:23 -0800 (PST)
	(envelope-from will@physics.purdue.edu)
Received: (from will@localhost)
	by ohm.physics.purdue.edu (8.11.2/8.9.3) id f2B1gSM60302;
	Sat, 10 Mar 2001 20:42:28 -0500 (EST)
	(envelope-from will@physics.purdue.edu)
X-Authentication-Warning: ohm.physics.purdue.edu: will set sender to will@physics.purdue.edu using -f
Date: Sat, 10 Mar 2001 20:42:28 -0500
From: Will Andrews <will@physics.purdue.edu>
To: Dan Langille <dan@langille.org>
Cc: ports@FreeBSD.ORG
Subject: Re: where to put tmp files for security/logcheck
Message-ID: <20010310204228.M45561@ohm.physics.purdue.edu>
Reply-To: Will Andrews <will@physics.purdue.edu>
Mail-Followup-To: Will Andrews <will@physics.purdue.edu>,
	Dan Langille <dan@langille.org>, ports@FreeBSD.ORG
References: <200103110019.f2B0JAw02897@ns1.unixathome.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
	protocol="application/pgp-signature"; boundary="bzuizT9vlVVqWfw+"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200103110019.f2B0JAw02897@ns1.unixathome.org>; from dan@langille.org on Sun, Mar 11, 2001 at 01:19:08PM +1300
X-Operating-System: FreeBSD 4.2-STABLE i386
Sender: owner-freebsd-ports@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org


--bzuizT9vlVVqWfw+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> creates /usr/local/etc/tmp for its own use but does not remove that=20
> directory when the port is deleted.
>=20
> 1 - I'm not so such I like the idea of a port creating such a directory. =
=20
> Why can't it just use /var/tmp like everyone else?  This would also=20
> remove the need to create/remove a tmp directory.
>=20
> 2 - If I modify the port so it just removes /usr/local/etc/tmp when=20
> pkg_delete is called, what's the downside?  Still, I don't like the idea =
of=20
> creating directories just for tmp files.
>=20
> 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 reboo=
ts

IMO, /usr/local (${PREFIX} here) should be extended to include ${PREFIX}/va=
r.

--=20
wca

--bzuizT9vlVVqWfw+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.3 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE6qtgDF47idPgWcsURAtfeAJ9b+6CZQInJQCz1jcPvjsFZeJS1jwCgkmJn
wvtkmD91H7bMyC84iF586e0=
=quen
-----END PGP SIGNATURE-----

--bzuizT9vlVVqWfw+--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message