From 6665c6ad2cfdf94e7a2d12089c2f48d6ac1118f2 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Mon, 28 Nov 2016 15:30:06 -0800 Subject: [PATCH] Fetch redis source packages from mirror links (#83) * Fetch redis source packages from mirror links * Replace more version strings with macros --- src/redis/build.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/redis/build.sh b/src/redis/build.sh index 9ff33de6d137..b69a707d3cad 100755 --- a/src/redis/build.sh +++ b/src/redis/build.sh @@ -1,11 +1,15 @@ #!/bin/bash -x -wget -N 'http://mirrors.accretive-networks.net/debian/pool/main/r/redis/redis_3.2.4.orig.tar.gz' -wget -N 'http://mirrors.accretive-networks.net/debian/pool/main/r/redis/redis_3.2.4-1~bpo8+1.dsc' -wget -N 'http://mirrors.accretive-networks.net/debian/pool/main/r/redis/redis_3.2.4-1~bpo8+1.debian.tar.xz' +REDIS_VERION=3.2.4 +REDIS_VERION_FULL=$REDIS_VERION-1~bpo8+1 -dpkg-source -x redis_3.2.4-1~bpo8+1.dsc +wget -O redis_$REDIS_VERION.orig.tar.gz -N "https://sonicstorage.blob.core.windows.net/packages/redis_$REDIS_VERION.orig.tar.gz?sv=2015-04-05&sr=b&sig=B3qGEoSHe%2FBh5rVwvXHpKijgBtKF7dHeuJWp1p17UnU%3D&se=2026-11-26T22%3A31%3A31Z&sp=r" +wget -O redis_$REDIS_VERION_FULL.dsc -N "https://sonicstorage.blob.core.windows.net/packages/redis_$REDIS_VERION_FULL.dsc?sv=2015-04-05&sr=b&sig=LoUtjLXa%2BCcoM%2BsPewRLkY7YPRvSJTbsvQoW%2BL%2B3QWM%3D&se=2026-11-26T22%3A32%3A11Z&sp=r" -pushd redis-3.2.4; fakeroot debian/rules binary; popd +wget -O redis_$REDIS_VERION_FULL.debian.tar.xz -N "https://sonicstorage.blob.core.windows.net/packages/redis_$REDIS_VERION_FULL.debian.tar.xz?sv=2015-04-05&sr=b&sig=I33UsbDHiffEkQRndpFwY9y3I%2FrKTu0wmG%2FMXB98kys%3D&se=2026-11-26T22%3A32%3A34Z&sp=r" + +dpkg-source -x redis_$REDIS_VERION_FULL.dsc + +pushd redis-$REDIS_VERION; fakeroot debian/rules binary; popd cp *.deb ..