From owner-freebsd-ports@FreeBSD.ORG Sun Dec 2 08:50:03 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EDAE85C4 for ; Sun, 2 Dec 2012 08:50:03 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 574128FC08 for ; Sun, 2 Dec 2012 08:50:03 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id qB28nx96023862 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 2 Dec 2012 08:49:59 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.7.1 smtp.infracaninophile.co.uk qB28nx96023862 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1354438199; bh=Mj1UGTvrIUQSgVfC6OtO76QFTL9gPQMwMC5GyI9CNzI=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sun,=2002=20Dec=202012=2008:49:51=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-ports@ freebsd.org|Subject:=20Re:=20web=20FreeBSD=20Ports=20Search=20is=2 0out=20of=20sync|References:=20<50BA347D.9080301@quip.cz>=20=20< CAN6yY1tqH857Ju2C8ADVPYG9VzhJYmY3Rya9fAvP=3DpcbVvvuRA@mail.gmail.c om>=20=20<20121202102250.50553fbc@it.tim.tetcu.info>|In-Repl y-To:=20<20121202102250.50553fbc@it.tim.tetcu.info>; b=DxDmF3SZDGFKsxa3zoY98mBO7Bio0clYHT9g+hbXalFgyyGS+H55A0zQ0bARtSSpL p9/UMI55WNwbiYaLK4uVZ14KRd4TFg5q7tTcerVJ2/ean3IucaUezXH6WCKgyUTqdK goK492Z32wffLZYp8/16X/LcDAghWsbPJRWKgjDk= Message-ID: <50BB162F.1040309@infracaninophile.co.uk> Date: Sun, 02 Dec 2012 08:49:51 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: web FreeBSD Ports Search is out of sync References: <50BA347D.9080301@quip.cz> <20121202102250.50553fbc@it.tim.tetcu.info> In-Reply-To: <20121202102250.50553fbc@it.tim.tetcu.info> X-Enigmail-Version: 1.4.6 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig05CF4468DCED6AF51A3C2B72" X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2012 08:50:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig05CF4468DCED6AF51A3C2B72 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/12/2012 08:22, Ion-Mihai Tetcu wrote: > You might want to try ports-mgmt/p5-FreeBSD-Portindex > cache-init(1) will take that half an hour, but after that updating the > INDEX will take a minute or so (depending on what has changed in the PT= > since your last update). Also you'll have an INDEX that reflects your > local settings (make.conf, OPTIONS). Thanks for the recommendation. Always glad to hear that people a making use of my code. > # m /root/bin/ports_upd.sh=20 > #!/bin/sh >=20 > DATE=3D`date "+%Y-%m-%d_%H_%M_%S"` > LOG_DIR=3D/var/log/ports > PSNAP_LOG=3D${LOG_DIR}/psnap.${DATE} >=20 > /usr/sbin/portsnap fetch > /usr/sbin/portsnap update | tee ${PSNAP_LOG} > /usr/local/bin/cache-update -f plain,options -i ${PSNAP_LOG} | tee ${P= SNAP_LOG}.cu=20 Actually, nowadays you don't need to save the output of portsnap or cvsup or whatever, and use '-f plain,options' to parse that. The changes in version 2.8 mean portindex can detect when the timestamp on any ports Makefile or pkg-descr file or the options saved in /var/db/ports has changed, and determine what ports it needs to recheck from that, so it's completely independent of the mechanism[*] used to update the tree. This doesn't really take significantly more or less time than the old 'parse the logfile' approach -- all those make invocations are the slow step. Just run 'cache-update' without arguments. > grep -qv 'Nothing to do' ${PSNAP_LOG}.cu && \ > /usr/local/bin/portindex -v -o ${PORTSDIR}/INDEX-9 >=20 > portmaster -L --no-index-fetch --index | egrep -B1 '(ew|ort) version|Ab= orting|installed|dependencies|IGNORE|marked|Reason:|MOVED' | grep -v '^--= ' Cheers, Matthew [*] And less error prone. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --------------enig05CF4468DCED6AF51A3C2B72 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlC7FjcACgkQ8Mjk52CukIxAmgCeIw1RI0/ZfYAYopU+RKppPpf5 /dAAn1WNST0qXfAuUBPlcSRtGPp3revo =RMpH -----END PGP SIGNATURE----- --------------enig05CF4468DCED6AF51A3C2B72--