Update of /cvsroot/fink/fink/mirror
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26234

Modified Files:
        _keys _list get-mirrors.pl 
Added Files:
        postgresql 
Log Message:
add postgresql mirrors

Index: _keys
===================================================================
RCS file: /cvsroot/fink/fink/mirror/_keys,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- _keys       24 Mar 2008 15:36:21 -0000      1.14
+++ _keys       19 Nov 2008 19:26:37 -0000      1.15
@@ -17,6 +17,7 @@
 sam-CO: Colombia
 sam-CR: Costa Rica
 sam-RQ: Puerto Rico
+sam-VE: Venezuela
 
 eur: Europe
 eur-AT: Austria
@@ -79,4 +80,4 @@
 asi-SG: Singapore
 asi-TH: Thailand
 asi-TW: Taiwan
-
+asi-VN: Vietnam

--- NEW FILE: postgresql ---
# Official mirror list: 
http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2F
Timestamp: 2008-11-19

Primary: ftp://ftp.postgresql.org/pub

afr-ZA: ftp://ftp.za.postgresql.org/mirror/ftp.postgresql.org
asi-CN: ftp://ftp.cn.postgresql.org/pub/postgresql
asi-ID: ftp://ftp9.id.postgresql.org/postgresql
asi-ID: http://ftp9.id.postgresql.org
asi-JP: ftp://ftp2.jp.postgresql.org/pub/postgresql
asi-JP: ftp://ftp3.jp.postgresql.org/pub/db/postgresql
asi-JP: http://ftp2.jp.postgresql.org/pub/postgresql
asi-KR: ftp://ftp2.kr.postgresql.org/pub/postgresql
asi-MY: ftp://ftp.my.postgresql.org/pub/postgresql
asi-TW: ftp://ftp.tw.postgresql.org/pub/postgresql
asi-TW: ftp://ftp4.tw.postgresql.org/pub/postgresql
asi-TW: http://ftp4.tw.postgresql.org/pub/postgresql
asi-VN: ftp://ftp.vn.postgresql.org/postgresql
aus-AU: ftp://ftp2.au.postgresql.org/pub/postgresql
eur-AT: ftp://ftp.at.postgresql.org/db/www.postgresql.org/pub
eur-AT: http://ftp.at.postgresql.org/db/www.postgresql.org/pub
eur-BA: ftp://ftp.ba.postgresql.org/pub/postgresql
eur-BE: ftp://ftp.be.postgresql.org/postgresql
eur-BE: ftp://ftp2.be.postgresql.org/pub/postgresql
eur-BE: http://ftp.be.postgresql.org/postgresql
eur-BE: http://ftp2.be.postgresql.org
eur-BG: ftp://ftp3.bg.postgresql.org/postgresql
eur-CH: ftp://ftp.ch.postgresql.org/mirror/postgresql
eur-CH: ftp://ftp2.ch.postgresql.org/pub/mirrors/postgresql
eur-CH: http://ftp2.ch.postgresql.org/pub/mirrors/postgresql
eur-CZ: ftp://ftp.cz.postgresql.org/pgsql
eur-CZ: ftp://ftp2.cz.postgresql.org/pub/postgresql
eur-CZ: http://ftp.cz.postgresql.org
eur-CZ: http://ftp2.cz.postgresql.org/pub/postgresql
eur-DE: ftp://ftp.de.postgresql.org/packages/databases/PostgreSQL
eur-DE: ftp://ftp10.de.postgresql.org/pub/mirror/postgresql
eur-DE: ftp://ftp7.de.postgresql.org/pub/ftp.postgresql.org
eur-DE: ftp://ftp8.de.postgresql.org/pub/misc/pgsql
eur-DE: ftp://ftp9.de.postgresql.org/unix/databases/postgresql
eur-DE: http://ftp.de.postgresql.org/packages/databases/PostgreSQL
eur-DE: http://ftp8.de.postgresql.org/pub/misc/pgsql
eur-DK: ftp://ftp.dk.postgresql.org/postgresql
eur-DK: http://ftp.dk.postgresql.org/postgresql
eur-EE: ftp://ftp.ee.postgresql.org/pub/postgresql
eur-EE: http://ftp.ee.postgresql.org/pub/postgresql
eur-ES: ftp://ftp5.es.postgresql.org/mirror/postgresql
eur-ES: http://ftp5.es.postgresql.org/mirror/postgresql
eur-FI: ftp://ftp.fi.postgresql.org/pub/postgresql
eur-FR: ftp://ftp.fr.postgresql.org
eur-FR: ftp://ftp4.fr.postgresql.org/pub/mirrors/postgresql
eur-GR: ftp://ftp.gr.postgresql.org/pub/databases/postgresql
eur-GR: ftp://ftp2.gr.postgresql.org/pub/databases/postgresql
eur-GR: ftp://ftp3.gr.postgresql.org/mirrors/postgresql
eur-GR: http://ftp.gr.postgresql.org/pub/databases/postgresql
eur-GR: http://ftp2.gr.postgresql.org/pub/databases/postgresql
eur-GR: http://ftp3.gr.postgresql.org/mirrors/postgresql
eur-IE: ftp://ftp.ie.postgresql.org/mirrors/ftp.postgresql.org/pub
eur-IE: ftp://ftp2.ie.postgresql.org/mirrors/ftp.postgresql.org
eur-IE: http://ftp.ie.postgresql.org/mirrors/ftp.postgresql.org/pub
eur-IE: http://ftp2.ie.postgresql.org/mirrors/ftp.postgresql.org
eur-IL: ftp://ftp.il.postgresql.org/ftp.postgresql.org
eur-IS: ftp://ftp.is.postgresql.org/pub/postgresql
eur-IT: ftp://ftp2.it.postgresql.org/mirrors/postgres
eur-IT: ftp://ftp6.it.postgresql.org/pub/PostgreSQL
eur-IT: ftp://ftp7.it.postgresql.org/pub/unix/postgres
eur-IT: http://ftp2.it.postgresql.org/mirrors/postgres
eur-IT: http://ftp7.it.postgresql.org/pub/unix/postgres
eur-LT: ftp://ftp.lt.postgresql.org
eur-LT: ftp://ftp2.lt.postgresql.org/pub/PostgreSQL
eur-LT: http://ftp.lt.postgresql.org
eur-LT: http://ftp2.lt.postgresql.org/pub/PostgreSQL
eur-LV: ftp://ftp.lv.postgresql.org/mirrors/ftp.postgresql.org
eur-NL: ftp://ftp.nl.postgresql.org/pub/mirror/postgresql
eur-NL: ftp://ftp2.nl.postgresql.org/mirror/postgresql
eur-NL: ftp://ftp4.nl.postgresql.org/postgresql.zeelandnet.nl
eur-NL: http://ftp2.nl.postgresql.org
eur-NL: http://ftp4.nl.postgresql.org
eur-NO: ftp://ftp.no.postgresql.org/pub/databases/postgresql
eur-PL: ftp://ftp6.pl.postgresql.org/pub/postgresql
eur-PL: ftp://ftp7.pl.postgresql.org/pub/mirror/ftp.postgresql.org
eur-PL: ftp://ftp8.pl.postgresql.org/pub/postgresql
eur-PL: ftp://ftp9.pl.postgresql.org/pub/mirrors/ftp.postgresql.org
eur-PL: http://ftp6.pl.postgresql.org/pub/postgresql
eur-PL: http://ftp8.pl.postgresql.org/pub/postgresql
eur-PL: http://ftp9.pl.postgresql.org/pub/mirrors/ftp.postgresql.org
eur-PT: ftp://ftp.pt.postgresql.org/pub/postgresql
eur-PT: http://ftp.pt.postgresql.org/pub/postgresql
eur-RO: ftp://ftp6.ro.postgresql.org/pub/mirrors/ftp.postgresql.org
eur-RO: ftp://ftp7.ro.postgresql.org/1/PostgreSQL
eur-RO: http://ftp6.ro.postgresql.org/pub/mirrors/ftp.postgresql.org
eur-RU: ftp://ftp.ru.postgresql.org/pub/mirrors/pgsql
eur-RU: ftp://ftp2.ru.postgresql.org/pub/databases/postgresql
eur-RU: ftp://ftp3.ru.postgresql.org/pub/mirror/postgresql/pub
eur-RU: http://ftp2.ru.postgresql.org/pub/databases/postgresql
eur-SE: ftp://ftp.se.postgresql.org/pub/databases/relational/postgresql
eur-SE: http://ftp.se.postgresql.org/pub/databases/relational/postgresql
eur-SI: ftp://ftp.si.postgresql.org/pub/mirrors/postgresql
eur-SK: ftp://ftp2.sk.postgresql.org/pub/postgresql
eur-TR: ftp://ftp.tr.postgresql.org/pub/PostgreSQL
eur-UA: ftp://ftp.ua.postgresql.org/pub/mirrors/postgresql.org
eur-UA: ftp://ftp2.ua.postgresql.org/pub/postgresql
eur-UK: ftp://ftp2.uk.postgresql.org/sites/ftp.postgresql.org
eur-UK: http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org
nam-CA: ftp://ftp5.ca.postgresql.org/mirrors/postgresql
nam-US: ftp://ftp.postgresql.org/pub
nam-US: ftp://ftp10.us.postgresql.org/pub/postgresql
nam-US: ftp://ftp2.lv.postgresql.org/postgresql
nam-US: ftp://ftp3.ua.postgresql.org/pub/mirrors/postgresql
nam-US: ftp://ftp5.us.postgresql.org/pub/PostgreSQL
nam-US: ftp://ftp7.us.postgresql.org/pub/postgresql
nam-US: ftp://ftp9.us.postgresql.org/pub/mirrors/postgresql
nam-US: http://ftp2.lv.postgresql.org
nam-US: http://ftp7.us.postgresql.org/pub/postgresql
nam-US: http://ftp9.us.postgresql.org/pub/mirrors/postgresql
sam-AR: ftp://ftp.ar.postgresql.org/pub/mirrors/postgresql
sam-BR: ftp://ftp2.br.postgresql.org/postgresql
sam-BR: http://ftp2.br.postgresql.org/postgresql

Index: get-mirrors.pl
===================================================================
RCS file: /cvsroot/fink/fink/mirror/get-mirrors.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- get-mirrors.pl      26 Sep 2007 13:30:09 -0000      1.9
+++ get-mirrors.pl      19 Nov 2008 19:26:38 -0000      1.10
@@ -14,13 +14,14 @@
 use Net::FTP;
 use WWW::Mechanize;
 use URI;
+use URI::Escape;
 use URI::Find;
 
 use vars qw($VERSION %keys %reverse_keys %files $debug $response);
 
-use vars qw($APACHE $CPAN $CTAN $DEBIAN $FREEBSD $GIMP $GNOME $GNU $KDE);
+use vars qw($APACHE $CPAN $CTAN $DEBIAN $FREEBSD $GIMP $GNOME $GNU $KDE 
$PGSQL);
 
-$APACHE  = 1;
+$APACHE  = 0;
 $CPAN    = 1;
 $CTAN    = 1;
 $DEBIAN  = 1;
@@ -29,6 +30,7 @@
 $GNOME   = 1;
 $GNU     = 1;
 $KDE     = 1;
+$PGSQL   = 1;
 
 $debug = 0;
 $VERSION = ( qw$Revision$ )[-1];
@@ -58,9 +60,9 @@
 
 if ($APACHE) {
        print "- getting apache mirror list:\n";
-       $response = $mech->get( 'http://www.apache.org/mirrors' );
+       $response = $mech->get( 'http://www.apache.org/mirrors/' );
        if ($response->is_success) {
-               $files{'apache'}->{'url'} = 'http://www.apache.org/mirrors';
+               $files{'apache'}->{'url'} = 'http://www.apache.org/mirrors/';
                $files{'apache'}->{'primary'} = 'http://www.apache.org/dist';
                my $mirrors;
                my @links = ($files{'apache'}->{'primary'});
@@ -457,6 +459,42 @@
        }
 }
 
+## PostgreSQL
+if ($PGSQL) {
+       print "- getting PostgreSQL mirror list:\n";
+       $response = $mech->get( 
'http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2F' );
+       if ($response->is_success) {
+               $files{'postgresql'}->{'url'} = 
'http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2F';
+               $files{'postgresql'}->{'primary'} = 
'ftp://ftp.postgresql.org/pub';
+               my $mirrors;
+               my @links = ($files{'postgresql'}->{'primary'});
+
+               my $tree = HTML::TreeBuilder->new();
+               $tree->parse($response->content);
+               for my $link ($tree->look_down('_tag' => 'a')) {
+                       my $url = $link->attr('href');
+                       if ($url =~ s/^.*?\&url=//) {
+                               $url = uri_unescape($url);
+                               print "\t", $url, ": ";
+                               if (get_content($url . 'README') =~ /This 
directory contains the current and past releases of PostgreSQL/gs) {
+                                       print "ok\n";
+                                       push(@links, $url);
+                               } else {
+                                       print "failed\n";
+                               }
+                       }
+               }
+               for my $link (@links) {
+                       my ($code, $uri) = get_code($link);
+                       push(@{$mirrors->{$code}}, $uri) if (defined $code);
+               }
+       
+               $files{'postgresql'}->{'mirrors'} = $mirrors;
+       } else {
+               warn "unable to get postgresql ftp list\n";
+       }
+}
+
 for my $site (sort keys %files) {
        print "- writing $site... ";
        if (open (FILEOUT, ">$site.tmp")) {

Index: _list
===================================================================
RCS file: /cvsroot/fink/fink/mirror/_list,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- _list       19 Sep 2007 20:32:43 -0000      1.21
+++ _list       19 Nov 2008 19:26:38 -0000      1.22
@@ -19,3 +19,4 @@
 rsync: RSync SelfUpdate
 sourceforge: SourceForge
 apache: The Apache Project
+postgresql: The PostgreSQL Database


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to