From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 6 10:28:52 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACDCE1065688; Mon, 6 Oct 2008 10:28:52 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 3231B8FC16; Mon, 6 Oct 2008 10:28:52 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=e7n6Smu33wrvqkyTIS5Zkn/mRIxMvatWC5CRsCq21o4pv/4Mh1oQXCVXIswSRDBaSsapW8SLkVOwSehH/mZe629ZEbUvFzjpO5n0khg/ZL3ESatBVYMOo2QbljSJ2PN/W7VKdpenZD/h/V3mJ+O50f5CAOvaVZLVd3/VXV3+gbE=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1KmnKb-000EU0-Ji; Mon, 06 Oct 2008 14:28:49 +0400 Date: Mon, 6 Oct 2008 14:28:48 +0400 From: Eygene Ryabinkin To: Mel Message-ID: References: <48E94281.8010300@quip.cz> <200810061124.55209.fbsd.hackers@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0a51aUHJSNYMigeV" Content-Disposition: inline In-Reply-To: <200810061124.55209.fbsd.hackers@rachie.is-a-geek.net> Sender: rea-fbsd@codelabs.ru Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz>, bug-followup@freebsd.org Subject: Re: ports/126853: ports-mgmt/portaudit: speed up audit of installed packages X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2008 10:28:52 -0000 --0a51aUHJSNYMigeV Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Mel, good day. Mon, Oct 06, 2008 at 11:24:54AM +0200, Mel wrote: > On Monday 06 October 2008 07:23:37 Eygene Ryabinkin wrote: > > But downloading the INDEX file from the central server seemed to be the > > best way, since it almost always gives one the latest port versions, so > > I had implemented this in a first place. >=20 > I've been following this, but I don't agree that (port|pkg_)audit should = do=20 > this, from the very perspective you're writing this program from: The download is done not by the portaudit itself, but by the helper script, portaudit-checknew. > On Sunday 28 September 2008 11:49:18 Eygene Ryabinkin wrote: > > 4. I feel that it is Unix-way to do the things: create small utilities > > that do their (small) job in a proper fashion. >=20 > Instead, it can provide installed-pkgnamepkgorigin output. The= n,=20 > any utility can check whether a new version is available, using what ever= =20 > source it finds relevant. > > For example, it is completely irrelevant if a new version is available on= the=20 > FreeBSD servers, when your machine uses a buildserver in a local network.= For=20 > those machines it's relevant whether their build server has a new version= and=20 > one can automatically upgrade if one so desires. > Similarly, if your /usr/ports is ahead of the FreeBSD's INDEX.bz2, you're= =20 > again reporting false information. I hear you, but it seems to me that I should just equip portaudit-checknew with the other sources of a new ports information and provide tunables for their location (on-disk path, URL, etc). I am planning to do this, but first I want to know if these patches will be viable for the project: feeding these into the /dev/null or just using them locally, but equipping with a lot of functionality, is not what I really want ;)) > It's also quite trivial to provide this availibility information in a dai= ly=20 > security script, for the "majority of cases" Didn't get it, sorry. Could you, please, elaborate a bit? > and it's better to have tunables=20 > like _use_remote_portindex, _use_portsdir=3D/bigdisk/usr/ports in a scrip= t. Yes, it was what I had talked about above in this mail. Thanks for the input! --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --0a51aUHJSNYMigeV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjp6GAACgkQthUKNsbL7YhIiwCfaxk/raGBCgtCRoPUirA9AM1F QWQAoKHacwvF3w+HOUw1kMJwFJUg3hrq =ee1X -----END PGP SIGNATURE----- --0a51aUHJSNYMigeV--