wok-6.x rev 25106
linux-libre: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 14:39:56 2022 +0000 (2022-06-22) |
parents | 7a500035d756 |
children | ca38ecbe9976 |
files | linux-libre-api-headers/receipt linux-libre/receipt vpnc/receipt |
line diff
1.1 --- a/linux-libre-api-headers/receipt Wed Jun 22 10:31:41 2022 +0000 1.2 +++ b/linux-libre-api-headers/receipt Wed Jun 22 14:39:56 2022 +0000 1.3 @@ -8,9 +8,12 @@ 1.4 LICENSE="GPL2" 1.5 PROVIDE="linux-api-headers" 1.6 SOURCE="linux-libre" 1.7 -TARBALL="$SOURCE-$VERSION.tar.bz2" 1.8 +TARBALL="$SOURCE-$VERSION.vcdiff" 1.9 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" 1.10 -WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/old/gen6/$VERSION/$TARBALL" 1.11 +WGET_URL="http://linux-libre.fsfla.org/pub/linux-libre/releases/old/gen6/$VERSION/$TARBALL" 1.12 +EXTRA_SOURCE_FILES="https://mirrors.edge.kernel.org/pub/linux/kernel/v${VERSION%%.*}.x/linux-${VERSION%-gnu}.tar.xz" 1.13 + 1.14 +BUILD_DEPENDS="xdelta" 1.15 1.16 # What is the latest version available today? 1.17 current_version() 1.18 @@ -19,12 +22,23 @@ 1.19 sed '/-gnu/!d;s|.*ref="||;s|/".*||' | sed '$!d' 1.20 } 1.21 1.22 +# Common rules for cook_tmp_toolchain & compile_rules 1.23 +build_rules() 1.24 +{ 1.25 + [ -s "$SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)" ] || 1.26 + busybox wget -P "$SOURCES_REPOSITORY/" "$EXTRA_SOURCE_FILES" 1.27 + xzcat < $SOURCES_REPOSITORY//$(basename $EXTRA_SOURCE_FILES) > $(basename $EXTRA_SOURCE_FILES .xz) 1.28 + xdelta3 -d $TARBALL 1.29 + tar xf ${TARBALL/vcdiff/tar} 1.30 + mv linux-*/* . 1.31 + make mrproper && 1.32 + make headers_check 1.33 +} 1.34 + 1.35 # Rules to compile & install the temporary toolchain. 1.36 cook_tmp_toolchain() 1.37 { 1.38 - cd $src 1.39 - make mrproper && 1.40 - make headers_check && 1.41 + build_rules && 1.42 make INSTALL_HDR_PATH=dest headers_install && 1.43 cp -r dest/include/* /tools/include 1.44 } 1.45 @@ -32,9 +46,7 @@ 1.46 # Rules to configure and make the package. 1.47 compile_rules() 1.48 { 1.49 - cd $src 1.50 - make mrproper && 1.51 - make headers_check && 1.52 + build_rules && 1.53 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install 1.54 } 1.55
2.1 --- a/linux-libre/receipt Wed Jun 22 10:31:41 2022 +0000 2.2 +++ b/linux-libre/receipt Wed Jun 22 14:39:56 2022 +0000 2.3 @@ -7,13 +7,14 @@ 2.4 MAINTAINER="gokhlayeh@slitaz.org" 2.5 LICENSE="GPL2" 2.6 PROVIDE="linux" 2.7 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.8 +TARBALL="$PACKAGE-$VERSION.vcdiff" 2.9 WEB_SITE="http://www.fsfla.org/ikiwiki/selibre/linux-libre/" 2.10 -WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/old/gen6/$VERSION/$TARBALL" 2.11 +WGET_URL="http://linux-libre.fsfla.org/pub/linux-libre/releases/old/gen6/$VERSION/$TARBALL" 2.12 +EXTRA_SOURCE_FILES="https://mirrors.edge.kernel.org/pub/linux/kernel/v${VERSION%%.*}.x/linux-${VERSION%-gnu}.tar.xz" 2.13 2.14 DEPENDS="kmod" 2.15 BUILD_DEPENDS="slitaz-toolchain perl git xz lzma patch kmod bc \ 2.16 -sysfsutils-dev libtool glib-dev libwrap libwrap-dev udev-dev" 2.17 +sysfsutils-dev libtool glib-dev libwrap libwrap-dev udev-dev xdelta" 2.18 2.19 # What is the latest version available today? 2.20 current_version() 2.21 @@ -25,6 +26,13 @@ 2.22 # Rules to configure and make the package. 2.23 compile_rules() 2.24 { 2.25 + [ -s "$SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)" ] || 2.26 + busybox wget -P "$SOURCES_REPOSITORY/" "$EXTRA_SOURCE_FILES" 2.27 + xzcat < $SOURCES_REPOSITORY//$(basename $EXTRA_SOURCE_FILES) > $(basename $EXTRA_SOURCE_FILES .xz) 2.28 + xdelta3 -d $TARBALL 2.29 + tar xf ${TARBALL/vcdiff/tar} 2.30 + mv linux-*/* . 2.31 + 2.32 # SliTaz db 2.33 rm -rf $WOK/$PACKAGE/slitaz && mkdir $WOK/$PACKAGE/slitaz 2.34 echo "$WGET_URL" > $WOK/$PACKAGE/slitaz/url
3.1 --- a/vpnc/receipt Wed Jun 22 10:31:41 2022 +0000 3.2 +++ b/vpnc/receipt Wed Jun 22 14:39:56 2022 +0000 3.3 @@ -8,7 +8,7 @@ 3.4 LICENSE="GPL2" 3.5 TARBALL="$PACKAGE-$VERSION.tar.gz" 3.6 WEB_SITE="https://github.com/streambinder/vpnc" 3.7 -WGET_URL="https://www.unix-ag.uni-kl.de/~massar/vpnc/$TARBALL" 3.8 +WGET_URL="https://web.archive.org/web/20210410074222if_/https://www.unix-ag.uni-kl.de/~massar/vpnc/$TARBALL" 3.9 CONFIG_FILES="/etc/vpnc" 3.10 TAGS="vpn tunnel" 3.11