[ https://issues.apache.org/jira/browse/FLEX-33149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426879#comment-13426879 ]
Alex Harui commented on FLEX-33149: ----------------------------------- I don't know how close Nick is to getting this done, but it might be time to consider doing this in AS, at least temporarily. The mirrors.cgi just seems to get a country code, gets the list of mirrors for that country from mirrors.list and randomly picks one. Seems like we could try to use one of the free GeoIP webservices to get the country code and download and parse mirrors.list in AS. > Create webservice that returns the preferred mirror url given a path to an > Apache project release > ------------------------------------------------------------------------------------------------- > > Key: FLEX-33149 > URL: https://issues.apache.org/jira/browse/FLEX-33149 > Project: Apache Flex > Issue Type: Sub-task > Reporter: OmPrakash Muppirala > Assignee: Bertrand Delacretaz > Priority: Critical > Attachments: InstallApacheFlex_Patch_EdB_All_2012-08-26.txt > > > Erik de Bruin's proposal: > 1. Create 'single-mirror-url.cgi' in the root of the site (i.e. > http://incubator.apache.org/flex/single-mirror-url.cgi) with these three > lines: > > #!/bin/sh > # Wrapper around the standard mirrors.cgi script > exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $* > 2. Create 'single-mirror-url.html' (.mdtext?) next to the .cgi from step 1., > with only this line: > > [preferred] > > 3. Set CGI script permissions to executable: > > % chmod a+x single-mirror-url.cgi > 4. In 'ApacheFlexConfig.xml', change the 'path' attribute of the > 'ApacheFlexSDK' node to "/incubator/flex/4.8.0-incubating/binaries/" and the > 'file' attribute to "apache-flex-sdk-4.8.0-incubating-bin.zip". Note: the > application (when patched) will take care of the addition of the mirror > domain to complete the URL. > 5. Apply patches to InstallApacheFlex source: > InstallApacheFlex.txt for InstallApacheFlex.mxml > ViewResourceConstants.txt for ViewResourceConstants.as > RuntimeLocale.txt for RuntimeLocale.as > HTH and that I understood the rules and regulations for patching, commenting > etc. correctly (if not, please tell me and I'll behave better next time). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira