You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Anthony Bryan <an...@gmail.com> on 2009/10/18 22:22:56 UTC

Re: Publishing metalinks on the download page

Hi Stefan, apologies in the long delay in replying...

> On 2009-09-03, Bram Neijt <bn...@gmail.com> wrote:
>
> > On Thu, 2009-09-03 at 16:54 +0200, Stefan Bodewig wrote:
>
> > That said, you could host your own metalink with only one or two
> > mirrors, anybody using aria2c for example, would no-longer require to
> > hand-check the digest after download.
>
> The way we create the download page could probably be used to create a
> metalink XML file as well (i.e. an XML file that contained exactly the
> same mirrors that are shown on the download page).
>
> I don't have a strong opinion on whether we want to do that.  Others?

I guess no one is that passionate about this... :)

I think the best solution if you're interested in metalinks is to
create them with your download page, as you mentioned.

If you create them, you can decide which hashes (MD5, SHA-1, SHA-256,
SHA-512) & mirrors to include.

You already encourage users to verify checksums at
http://ant.apache.org/bindownload.cgi#Verify%20Releases - but as noted
these checksumming tools aren't included on Windows. Granted, you
still have to install a download program to make use of metalinks
(most download managers do, & there's an easy Firefox extension), but
checksum verification is automated.

You can also (optionally) include PGP signatures. Most metalink
clients currently don't make use of them, but I think that the more
projects that include them then more clients will use signatures.

The download page states: "If you encounter a problem with this
mirror, please select another mirror. If all mirrors are failing,
there are backup mirrors (at the end of the mirrors list) that should
be available."
That's why the mirrors are included in the metalink, so the download
app will failover automatically to other mirrors if it encounters a
problem. Basically, as long as the user has a net connection and 1
mirror is still up, the download should complete.

The Ant download isn't that large, but I think metalinks could be
helpful to some of your users and the time investment is done once,
then automated. I've included a sample metalink with only a few
mirrors.

Feel like giving metalink a trial run?

thanks
-- 
(( Anthony Bryan ... Metalink [ http://www.metalinker.org ]
  )) Easier, More Reliable, Self Healing Downloads


<?xml version="1.0" encoding="utf-8"?>
<metalink version="3.0" generator="Metalink Editor version 1.1.0"
xmlns="http://www.metalinker.org/">
  <publisher>
    <name>Apache Ant</name>
    <url>http://ant.apache.org/</url>
  </publisher>
  <license>
    <name>Apache 2.0</name>
    <url>http://opensource.org/licenses/apache2.0.php</url>
  </license>
  <identity>Apache Ant</identity>
  <version>1.7.1</version>
  <description>Apache Ant is a Java-based build tool. In theory, it is
kind of like Make, but without Make's wrinkles.</description>
  <files>
    <file name="apache-ant-1.7.1-bin.tar.bz2">
      <size>7641928</size>
      <verification>
	    <signature type="pgp">
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBIZI3EoL/5PaoAd7ARAkb5AJ41yhZouH85SvX38+Kips+rrBCz7wCgl2I5
92IUovpr84OMrFXUJOGyZz0=
=AOA3
-----END PGP SIGNATURE-----
        </signature>
        <hash type="md5">9330447f3763b87570dd1118c49a8efd</hash>
        <hash type="sha1">b078ba89301687662f100da7b059105f32004f7c</hash>
        <hash type="sha256">24e54c9d90b81d1b7342695a8285a969393fd883e99ffbbc04203c106d9c2f97</hash>
      </verification>
      <resources>
        <url type="http">http://www.devlib.org/apache/ant/binaries/apache-ant-1.7.1-bin.tar.bz2</url>
        <url type="http">http://mirrors.sirium.net/pub/apache/ant/binaries/apache-ant-1.7.1-bin.tar.bz2</url>
        <url type="http">http://apache.multihomed.net/ant/binaries/apache-ant-1.7.1-bin.tar.bz2</url>
        <url type="http">http://www.ibiblio.org/pub/mirrors/apache/ant/binaries/apache-ant-1.7.1-bin.tar.bz2</url>
        <url type="http">http://apache.cs.utah.edu/ant/binaries/apache-ant-1.7.1-bin.tar.bz2</url>
        <url type="ftp">ftp://apache.mirrors.tds.net/pub/apache.org/ant/binaries/apache-ant-1.7.1-bin.tar.bz2</url>
      </resources>
    </file>
  </files>
</metalink>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org