fetchurl: collate samba project urls into a mirror

This commit is contained in:
Edward Tjörnhammar 2015-02-08 22:29:27 +01:00
parent b65e6e873f
commit 33a8a51657
14 changed files with 19 additions and 26 deletions

View File

@ -11,13 +11,13 @@ stdenv.mkDerivation rec {
mainSrc = fetchurl { mainSrc = fetchurl {
# signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5 # signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5
url = "http://rsync.samba.org/ftp/rsync/src/rsync-${version}.tar.gz"; url = "mirror://samba/rsync/src/rsync-${version}.tar.gz";
sha256 = "0896iah6w72q5izpxgkai75bn40dqkqifi2ivcxjzr2zrx7kdr3x"; sha256 = "0896iah6w72q5izpxgkai75bn40dqkqifi2ivcxjzr2zrx7kdr3x";
}; };
patchesSrc = fetchurl { patchesSrc = fetchurl {
# signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5 # signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5
url = "http://rsync.samba.org/ftp/rsync/rsync-patches-${version}.tar.gz"; url = "mirror://samba/rsync/rsync-patches-${version}.tar.gz";
sha256 = "0iij996xbyn20yr4w3kv3rw3cx4jwkg2k85x6w5hb5xlgsis8zjl"; sha256 = "0iij996xbyn20yr4w3kv3rw3cx4jwkg2k85x6w5hb5xlgsis8zjl";
}; };

View File

@ -137,6 +137,11 @@ rec {
http://www.centervenus.com/mirrors/nongnu/ http://www.centervenus.com/mirrors/nongnu/
]; ];
samba = [
http://samba.org/ftp/
http://ftp.riken.jp/net/samba
];
# BitlBee mirrors, see http://www.bitlbee.org/main.php/mirrors.html . # BitlBee mirrors, see http://www.bitlbee.org/main.php/mirrors.html .
bitlbee = [ bitlbee = [
http://get.bitlbee.org/ http://get.bitlbee.org/

View File

@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
name = "ctdb-2.5.4"; name = "ctdb-2.5.4";
src = fetchurl { src = fetchurl {
url = "http://samba.org/ftp/ctdb/${name}.tar.gz"; url = "mirror://samba/ctdb/${name}.tar.gz";
sha256 = "09fb29ngxnh1crsqchykg23bl6s4fifvxwq4gwg1y742mmnjp9fy"; sha256 = "09fb29ngxnh1crsqchykg23bl6s4fifvxwq4gwg1y742mmnjp9fy";
}; };

View File

@ -6,10 +6,7 @@ stdenv.mkDerivation rec {
name = "ldb-1.1.19"; name = "ldb-1.1.19";
src = fetchurl { src = fetchurl {
urls = [ url = "mirror://samba/ldb/${name}.tar.gz";
"http://samba.org/ftp/ldb/${name}.tar.gz"
"http://distfiles.exherbo.org/distfiles/${name}.tar.gz"
];
sha256 = "1p2815z9sjack08pcdbv4xzp1fvr4lxcn30rj0wh3py4ly6ji1h0"; sha256 = "1p2815z9sjack08pcdbv4xzp1fvr4lxcn30rj0wh3py4ly6ji1h0";
}; };

View File

@ -6,10 +6,7 @@ stdenv.mkDerivation rec {
name = "ntdb-1.0"; name = "ntdb-1.0";
src = fetchurl { src = fetchurl {
urls = [ url = "mirror://samba/tdb/${name}.tar.gz";
"http://samba.org/ftp/tdb/${name}.tar.gz"
"http://ftp.riken.jp/net/samba/tdb/${name}.tar.gz"
];
sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1"; sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1";
}; };

View File

@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
name = "talloc-2.1.1"; name = "talloc-2.1.1";
src = fetchurl { src = fetchurl {
url = "http://samba.org/ftp/talloc/${name}.tar.gz"; url = "mirror://samba/talloc/${name}.tar.gz";
sha256 = "0x31id42b425dbxv5whrqlc6dj14ph7wzs3wsp1ggi537dncwa9y"; sha256 = "0x31id42b425dbxv5whrqlc6dj14ph7wzs3wsp1ggi537dncwa9y";
}; };

View File

@ -6,10 +6,7 @@ stdenv.mkDerivation rec {
name = "tdb-1.3.4"; name = "tdb-1.3.4";
src = fetchurl { src = fetchurl {
urls = [ url = "mirror://samba/tdb/${name}.tar.gz";
"http://samba.org/ftp/tdb/${name}.tar.gz"
"http://distfiles.exherbo.org/distfiles/${name}.tar.gz"
];
sha256 = "0a8pa4ar7dxkbsgv1447av2rn35a1m6l1v2s9hgz3ccwni9wv1gm"; sha256 = "0a8pa4ar7dxkbsgv1447av2rn35a1m6l1v2s9hgz3ccwni9wv1gm";
}; };

View File

@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
name = "tevent-0.9.22"; name = "tevent-0.9.22";
src = fetchurl { src = fetchurl {
url = "http://samba.org/ftp/tevent/${name}.tar.gz"; url = "mirror://samba/tevent/${name}.tar.gz";
sha256 = "0myyi3lwsi6f3f0a5qw8rjpm2d5yf18pw4vljdwyi885l411sksl"; sha256 = "0myyi3lwsi6f3f0a5qw8rjpm2d5yf18pw4vljdwyi885l411sksl";
}; };

View File

@ -5,7 +5,7 @@ let
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ccache-3.2.1"; name = "ccache-3.2.1";
src = fetchurl { src = fetchurl {
url = http://samba.org/ftp/ccache/ccache-3.2.1.tar.xz; url = mirror://samba/ccache/ccache-3.2.1.tar.xz;
sha256 = "17dxb0adha2bqzb2r8rcc3kl9mk7y6vrvlh181liivrc3m7g6al7"; sha256 = "17dxb0adha2bqzb2r8rcc3kl9mk7y6vrvlh181liivrc3m7g6al7";
}; };

View File

@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
name = "cifs-utils-6.4"; name = "cifs-utils-6.4";
src = fetchurl { src = fetchurl {
url = "ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/${name}.tar.bz2"; url = "mirror://samba/pub/linux-cifs/cifs-utils/${name}.tar.bz2";
sha256 = "1qz6d2xg4z1if0hy7qwyzgcr59l0alkhci6gxgjdldglda967z1q"; sha256 = "1qz6d2xg4z1if0hy7qwyzgcr59l0alkhci6gxgjdldglda967z1q";
}; };

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
name = "samba-3.6.24"; name = "samba-3.6.24";
src = fetchurl { src = fetchurl {
url = "http://samba.org/samba/ftp/stable/${name}.tar.gz"; url = "mirror://samba/pub/samba/stable/${name}.tar.gz";
sha256 = "19rln8m1k359bz6dhmlv39kzyjg7p296dz4y4mq1jwrlnw2bvl0i"; sha256 = "19rln8m1k359bz6dhmlv39kzyjg7p296dz4y4mq1jwrlnw2bvl0i";
}; };

View File

@ -34,10 +34,7 @@ stdenv.mkDerivation rec {
name = "samba-4.1.16"; name = "samba-4.1.16";
src = fetchurl { src = fetchurl {
urls = [ url = "mirror://samba/pub/samba/stable/${name}.tar.gz";
"http://samba.org/samba/ftp/stable/${name}.tar.gz"
"http://distfiles.exherbo.org/distfiles/${name}.tar.gz"
];
sha256 = "0yx840qg5q6syq81439v3pbwawacm7nwnnvph85za9gsgcb9r80j"; sha256 = "0yx840qg5q6syq81439v3pbwawacm7nwnnvph85za9gsgcb9r80j";
}; };

View File

@ -3,7 +3,7 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "rzip-2.1"; name = "rzip-2.1";
src = fetchurl { src = fetchurl {
url = http://rzip.samba.org/ftp/rzip/rzip-2.1.tar.gz; url = mirror://samba/rzip/rzip-2.1.tar.gz;
sha256 = "4bb96f4d58ccf16749ed3f836957ce97dbcff3e3ee5fd50266229a48f89815b7"; sha256 = "4bb96f4d58ccf16749ed3f836957ce97dbcff3e3ee5fd50266229a48f89815b7";
}; };
buildInputs = [ bzip2 ]; buildInputs = [ bzip2 ];

View File

@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
name = "ppp-${version}"; name = "ppp-${version}";
src = fetchurl { src = fetchurl {
url = "${meta.homepage}ftp/ppp/${name}.tar.gz"; url = "mirror://samba/ppp/${name}.tar.gz";
sha256 = "019m00q85nrgdpjlhb9021a3iw3pr4a0913gp4h9k7r9r7z7lca3"; sha256 = "019m00q85nrgdpjlhb9021a3iw3pr4a0913gp4h9k7r9r7z7lca3";
}; };