wok-6.x rev 15185

linux-source: add mirror src fallback
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 23 18:59:48 2013 +0000 (2013-08-23)
parents 60564f86c380
children 256340cc43f6
files blogotext/receipt linux-source/stuff/get-linux-source zerobin/receipt
line diff
     1.1 --- a/blogotext/receipt	Wed Aug 21 14:20:25 2013 +0000
     1.2 +++ b/blogotext/receipt	Fri Aug 23 18:59:48 2013 +0000
     1.3 @@ -5,6 +5,7 @@
     1.4  CATEGORY="network"
     1.5  SHORT_DESC="Simple blog engine."
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 +LICENSE="MIT"
     1.8  WEB_SITE="http://lehollandaisvolant.net/blogotext"
     1.9  TARBALL="$PACKAGE-$VERSION.zip"
    1.10  URL="$WEB_SITE/archives/$TARBALL"
     2.1 --- a/linux-source/stuff/get-linux-source	Wed Aug 21 14:20:25 2013 +0000
     2.2 +++ b/linux-source/stuff/get-linux-source	Fri Aug 23 18:59:48 2013 +0000
     2.3 @@ -11,6 +11,9 @@
     2.4  	url=$(echo $url | sed "s|.*/linux/kernel|$i/linux/kernel|")
     2.5  done
     2.6  
     2.7 +mirror_src=http://mirror.slitaz.org/sources/packages-$(cat /etc/slitaz-release)
     2.8 +busybox wget -s $url || url=$mirror_src/l/$(basename $url)
     2.9 +
    2.10  if [ ! -d $SOURCES_REPOSITORY ]; then
    2.11  	mkdir -p $SOURCES_REPOSITORY
    2.12  fi
     3.1 --- a/zerobin/receipt	Wed Aug 21 14:20:25 2013 +0000
     3.2 +++ b/zerobin/receipt	Fri Aug 23 18:59:48 2013 +0000
     3.3 @@ -5,6 +5,7 @@
     3.4  CATEGORY="network"
     3.5  SHORT_DESC="Online pastebin where the server has zero knowledge of pasted data."
     3.6  MAINTAINER="pascal.bellard@slitaz.org"
     3.7 +LICENSE="zlib/libpng"
     3.8  TARBALL="${PACKAGE}_$VERSION.zip"
     3.9  WEB_SITE="http://sebsauvage.net/wiki/doku.php?id=php:zerobin"
    3.10  WGET_URL="http://sebsauvage.net/files/$TARBALL"