Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Dec 2012 08:49:51 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: web FreeBSD Ports Search is out of sync
Message-ID:  <50BB162F.1040309@infracaninophile.co.uk>
In-Reply-To: <20121202102250.50553fbc@it.tim.tetcu.info>
References:  <50BA347D.9080301@quip.cz> <CAF6rxgkhbOLN3ZZhxRZgYtQWF4yeHjiPS68YryKE-vAqitAvFg@mail.gmail.com> <CAN6yY1tqH857Ju2C8ADVPYG9VzhJYmY3Rya9fAvP=pcbVvvuRA@mail.gmail.com> <CA%2B7WWSeT-FTD=YBvbBcjhWWSWUbcMjfUiwtwaXYVPW=yZruo8w@mail.gmail.com> <20121202102250.50553fbc@it.tim.tetcu.info>

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



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