Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 11:10:12 -0700
From:      Michael Haro <mharo@area51.fremont.ca.us>
To:        FreeBSD Ports Team <ports@freebsd.org>
Subject:   Re: arb patch to tell who installed port and when
Message-ID:  <19990825111012.A73932@area51.fremont.ca.us>
In-Reply-To: <vqclnb0ztpe.fsf@silvia.hip.berkeley.edu>; from Satoshi - Ports Wraith - Asami on Tue, Aug 24, 1999 at 03:42:37PM -0700
References:  <19990824144734.A73970@rucus.ru.ac.za> <XFMail.990824121955.andrews@TECHNOLOGIST.COM> <19990824213017.A99983@rucus.ru.ac.za> <vqclnb0ztpe.fsf@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990825111012.A73932>