From owner-freebsd-ports Wed Aug 25 11: 9:19 1999 Delivered-To: freebsd-ports@freebsd.org Received: from area51.fremont.ca.us (c158457-a.frmt1.sfba.home.com [24.9.169.120]) by hub.freebsd.org (Postfix) with ESMTP id 03DD914F17 for ; Wed, 25 Aug 1999 11:09:17 -0700 (PDT) (envelope-from mharo@area51.fremont.ca.us) Received: (from mharo@localhost) by area51.fremont.ca.us (8.9.3/8.9.2) id LAA73989 for ports@freebsd.org; Wed, 25 Aug 1999 11:10:12 -0700 (PDT) (envelope-from mharo) Date: Wed, 25 Aug 1999 11:10:12 -0700 From: Michael Haro To: FreeBSD Ports Team Subject: Re: arb patch to tell who installed port and when Message-ID: <19990825111012.A73932@area51.fremont.ca.us> Mail-Followup-To: FreeBSD Ports Team References: <19990824144734.A73970@rucus.ru.ac.za> <19990824213017.A99983@rucus.ru.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Satoshi - Ports Wraith - Asami on Tue, Aug 24, 1999 at 03:42:37PM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Aug 24, 1999 at 03:42:37PM -0700, Satoshi - Ports Wraith - Asami wrote: > > I think it is useful, but let's design the whole thing first. Here > are the comments/questions that popped up to my head: > > @ Do something sensible if ${USER} is not defined. (Maybe use > `whoami` in that case) How about ignoring ${USER} and using /usr/bin/logname. > @ What will pkg_info show? Make sure it doesn't coredump if the > files are not there. :) Information for foobar-1.0: Installed by: joe-user Description: ... > > @ I'm assuming pkg_add will create a new "user" file with the > appropriate information (same criteria: $USER if defined, `whoami` > if not), and a new "when" file at the installation date. How about using getlogin() to find out who. > @ No change to pkg_create? I can't think of anything to add here. > @ Anything that pkg_delete has to do? Maybe warn if the user is > different from the one that added it? (Just throwing out all > possibilities -- I don't think that's very useful. :) Warning could be an option but I'd like a flag to turn off warning. I'm not sure if warning should be on by default or not. Michael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message