Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 10:23:53 +0200
From:      Neil Blakey-Milner <nbm@mithrandr.moria.org>
To:        Satoshi - Ports Wraith - Asami <asami@FreeBSD.ORG>
Cc:        Will Andrews <andrews@TECHNOLOGIST.COM>, ports@FreeBSD.ORG
Subject:   Re: arb patch to tell who installed port and when
Message-ID:  <19990825102353.A20426@rucus.ru.ac.za>
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 1999-08-24 (15:42), Satoshi - Ports Wraith - Asami wrote:
>  * Well, the theory being that ifpeople think it's a good idea, I'd then
>  * propose adding an option to pkg*, which isn't too important.  For the
>  * moment, it's reasonably arbitrary to write a script to work this out, and
>  * even manual is useful.
> 
> I think it is useful, but let's design the whole thing first.  Here
> are the comments/questions that popped up to my head:

My reason in sending it was not as a serious candidate, but just to
provoke some responses, because it got me thinking.

>  @ Do something sensible if ${USER} is not defined.  (Maybe use
>    `whoami` in that case)

whoami or id -un both will return root, unfortunately.  If !USER, then
try LOGNAME, or `basename $HOME`.  Assuming the person isn't using 'su
-l', hopefully the environment isn't destroyed and these will be useful.

>  @ What will pkg_info show?  Make sure it doesn't coredump if the
>    files are not there. :)

I think I can handle that.  "-u" isn't taken, nor is "-w"(?) for date.

>  @ 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.

I can do that too.

I'll do up some patches in an hour or two.

>  @ No change to pkg_create?

None that I can think of - I think we're more interested in who
installed the port/package, not who made it.

>  @ 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. :)

Well, this is going out of scope, but if we decide on something like
that, we'd have to start thinking about configuration files and other
scary things to adjust default behaviour, which shouldn't be changed to
preventing removal by "wrong" person by default.

Neil
-- 
Neil Blakey-Milner
nbm@rucus.ru.ac.za


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?19990825102353.A20426>