Marcel Offermans wrote:
> Hello Carsten,
>
> On Jul 31, 2007, at 13:45 , Carsten Ziegeler wrote:
>
>> Is it correct that our downloads are streamed from the wiki?
>
> Sort of. The wiki is "auto exported" to a static directory. This
> includes the actual attachments.
>
>> If so, I'm afraid we have to change this. We have to put the downloads
>> in the download section (which is mirrored) and provide a page which
>> downloads the artifacts from a mirror.
>
> Okay. It is not mirrored now.
>
>> Actually, what we have to do is:
>> - Put the artifacts under www.apache.org/dist/felix
>> - create a download.cgi for downloading from the mirrors (we can copy
>> this)
>> - create a download.html which uses the cgi
>> I can do the above steps later today, if noone objects.
>
> No objections here, just a comment. At the moment, the downloads page
> uses a Confluence macro {download:filename.ext} to generate links to the
> file, the asc and the md5. If you modify the location where these
> downloads are, and tell me what the link to the cgi should be, I can
> modify the macro to work again. Alternatively, if you have admin access
> to Confluence and know a bit about their user macros, you could do it
> yourself too. I have time to do this this evening. Let me know!
>
Thanks, Marcel! No, I don't think I have admin access to confluence
(though I'm not sure :)....)
My first idea was to replace to confluence page completly with a static
html page...but if we get the cgi working inside confluence that would
be much easier.
The current solution uses (as installed in other projects) uses two files:
* download.cgi
* download.html
The first one is the cgi which is called, so the "download" link points
to download.cgi. The cgi is pretty simple:
!/bin/sh
# Wrapper script around mirrors.cgi script
# (we must change to that directory in order for python to pick up the
# python includes correctly)
cd /www/www.apache.org/dyn/mirrors
/www/www.apache.org/dyn/mirrors/mirrors.cgi $*
This cgi in turn includes the download.html (in fact it includes an html
page of the same name as the cgi - so if we would call the cgi
dw-felix.cgi, the html has to be named dw-felix.html).
Inside the html page, you can use some variables like [preferred] to get
the actual selected mirror, so a download url is then
[preferred]/felix/something....
We also need a form to change the mirror. (I'll not paste the code for
now, but I can give it to you if you want).
Do you think that this is possible with using confluence?
(In the meantime I'll put the artifacts on the dist server and give you
the links)
Carsten
--
Carsten Ziegeler
[EMAIL PROTECTED]