From owner-freebsd-ports@FreeBSD.ORG Fri Apr 3 10:17:10 2009 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D05F010656CB for ; Fri, 3 Apr 2009 10:17:10 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from raven.customer.vol.cz (raven.customer.vol.cz [195.250.144.108]) by mx1.freebsd.org (Postfix) with ESMTP id F073D8FC0C for ; Fri, 3 Apr 2009 10:17:09 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from [172.19.10.16] (nat-application.b1.lan.prg.vol.cz [195.122.204.152]) (authenticated bits=0) by raven.customer.vol.cz (8.14.3/8.14.3) with ESMTP id n33AH13v088733; Fri, 3 Apr 2009 12:17:02 +0200 (CEST) (envelope-from pav@FreeBSD.org) From: Pav Lucistnik To: Dominic Fandrey In-Reply-To: <49D5DAFF.9030304@bsdforen.de> References: <49CE6B06.8080402@bsdforen.de> <1238446459.17527.4.camel@hood.oook.cz> <49D2956A.20106@bsdforen.de> <1238573306.66242.1.camel@pav.hide.vol.cz> <49D5DAFF.9030304@bsdforen.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ColOAb58cl/l2otjKLwi" Date: Fri, 03 Apr 2009 12:17:00 +0200 Message-Id: <1238753820.66242.26.camel@pav.hide.vol.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Score: -2.169 () AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 195.250.144.108 X-Milter: Spamilter (Reciever: raven.customer.vol.cz; Sender-ip: 195.122.204.152; Sender-helo: [172.19.10.16]; ) Cc: freebsd-ports@FreeBSD.org Subject: Re: LATEST_LINK not in index X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2009 10:17:11 -0000 --=-ColOAb58cl/l2otjKLwi Content-Type: text/plain; charset="ISO8859-2" Content-Transfer-Encoding: quoted-printable Dominic Fandrey p=ED=B9e v p=E1 03. 04. 2009 v 11:46 +0200: > Pav Lucistnik wrote: > > Dominic Fandrey p=ED=B9e v st 01. 04. 2009 v 00:12 +0200: > >=20 > >>> Upgrades are easy. Look up @comment ORIGIN line in +CONTENTS file of = the > >>> port being upgraded, then look up this value in second column of INDE= X > >>> file. > >>> > >> I don't see how this is connected to my question. > >> > >> I want people to be able to use LATEST_LINK to identify ports, > >> e.g. apache for www/apache13, apache20 form www/apache20 and so > >> forth. LATEST_LINK is a unique identifier, unfortunately > >> neither recorded in the INDEX nor +CONTENTS. > >> Also, to read it from +CONTENTS (if it were there) I'd have to > >> know, which package is actually meant, which I don't know, > >> because this is the information I want to find out. > >=20 > > Maybe you really want people to specify ports by ORIGIN, not by > > LATEST_LINK ... > >=20 >=20 > Actually I want people to be able to do both. Since this is a > binary package only tool, I want people to be able to use the > same parameters as they'd be able to use with "pkg_add -r". >=20 > I have implemented some guessing by now and it fails very rarely. > But it's not the kind of solution I like. You could ls -l Latest/ directory on the ftp server and parse the output, but it's a huge hack.. --=20 Pav Lucistnik Said Helvetica Narrow to Helvetica Bold: "Hey, you're just my type." --=-ColOAb58cl/l2otjKLwi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAknV4hwACgkQntdYP8FOsoK6ewCfdlgxK2IJb3nGoM1Ng8UnXUQW KDQAnRSOpbiceoKtsnhjmLPWcxzdT3Yv =bSfP -----END PGP SIGNATURE----- --=-ColOAb58cl/l2otjKLwi--