From owner-freebsd-ports@FreeBSD.ORG Sun Jan 9 14:39:07 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34B8316A4CE for ; Sun, 9 Jan 2005 14:39:07 +0000 (GMT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B2F343D45 for ; Sun, 9 Jan 2005 14:39:06 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id EEB4111DC7; Sun, 9 Jan 2005 15:39:04 +0100 (CET) Date: Sun, 9 Jan 2005 15:39:04 +0100 From: "Simon L. Nielsen" To: freebsd-ports@FreeBSD.org Message-ID: <20050109143903.GC1187@zaphod.nitro.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G6nVm6DDWH/FONJq" Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: Makeing fetchindex really mirror INDEX X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 14:39:07 -0000 --G6nVm6DDWH/FONJq Content-Type: multipart/mixed; boundary="XvKFcGCOAo53UbWW" Content-Disposition: inline --XvKFcGCOAo53UbWW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello I patched fetchindex to really only download a new INDEX if it's changed and to only uncompress INDEX.bz2 it's newer than INDEX. Patch should be attached. Any complaints to committing this? BTW. the mirror mode fetch(1) is broken in at least FreeBSD 5.3 and newer, but seems to works on 4.10. I have made a patch [1], which I hope to get committed soon, so if the fetchindex patch don't work for you that might be the reason. [1] http://people.freebsd.org/~simon/patches/fetch.mirror.patch --=20 Simon L. Nielsen --XvKFcGCOAo53UbWW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ports-fetchindex.realmir.patch" Content-Transfer-Encoding: quoted-printable Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/ports/Makefile,v retrieving revision 1.90 diff -u -d -r1.90 Makefile --- Makefile 17 Dec 2004 11:23:22 -0000 1.90 +++ Makefile 9 Jan 2005 14:21:13 -0000 @@ -70,7 +70,12 @@ @cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE} =20 fetchindex: - @cd ${.CURDIR} && ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && = bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE} + @${FETCHINDEX} -o ${.CURDIR}/${INDEXFILE}.bz2 \ + ${MASTER_SITE_INDEX}${INDEXFILE}.bz2 + @cd ${.CURDIR} && if [ ${INDEXFILE}.bz2 -nt ${INDEXFILE} ]; then \ + bunzip2 < ${INDEXFILE}.bz2 > ${INDEXFILE}; \ + chmod a+r ${INDEXFILE}; \ + fi =20 MASTER_SITE_INDEX?=3D http://www.FreeBSD.org/ports/ FETCHINDEX?=3D fetch -am --XvKFcGCOAo53UbWW-- --G6nVm6DDWH/FONJq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB4UIHh9pcDSc1mlERAmTgAJ9GthP45XACf0M63K/p8Hf3pR/sbACcDoX0 e/y7zBlvIDh3m3vqNXAfLJk= =LRrd -----END PGP SIGNATURE----- --G6nVm6DDWH/FONJq--