wok rev 240
Shfs & squashfs : no WANTED with WGET_URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 18 00:24:44 2008 +0100 (2008-02-18) |
parents | 7fcc9797a22e |
children | 03c66d91b55f |
files | shfs/receipt squashfs/receipt |
line diff
1.1 --- a/shfs/receipt Sun Feb 17 23:13:22 2008 +0100 1.2 +++ b/shfs/receipt Mon Feb 18 00:24:44 2008 +0100 1.3 @@ -8,7 +8,6 @@ 1.4 TARBALL="shfs-$VERSION.tar.gz" 1.5 WEB_SITE="http://$PACKAGE.sourceforge.net/" 1.6 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.7 -WANTED="linux" 1.8 DEPENDS="dropbear" 1.9 BUILD_DEPENDS="perl" 1.10
2.1 --- a/squashfs/receipt Sun Feb 17 23:13:22 2008 +0100 2.2 +++ b/squashfs/receipt Mon Feb 18 00:24:44 2008 +0100 2.3 @@ -1,7 +1,6 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="squashfs" 2.7 -WANTED="linux" 2.8 VERSION="3.3" 2.9 CATEGORY="base-system" 2.10 SHORT_DESC="Linux squashfs module and userland tools." 2.11 @@ -10,7 +9,7 @@ 2.12 TARBALL="squashfs$VERSION.tgz" 2.13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 2.14 DEPENDS="zlib" 2.15 -BUILD_DEPENDS="zlib-dev perl" 2.16 +BUILD_DEPENDS="zlib-dev" 2.17 2.18 # Rules to configure and make the package. 2.19 compile_rules() 2.20 @@ -25,9 +24,12 @@ 2.21 # Select patch according to kernel version 2.22 patch_dir=${PACKAGE}${VERSION}/kernel-patches/linux-${kver%.*} 2.23 if [ -f ${PACKAGE}${VERSION}/kernel-patches/linux-$kver ]; then 2.24 - patch_dir=${PACKAGE}${VERSION}/kernel-patches/linux-$kver 2.25 + patch_dir=${PACKAGE}${VERSION}/kernel-patches/linux-$kver 2.26 fi 2.27 - [ -d $patch_dir ] || return 1 2.28 + if [ ! -d $patch_dir ]; then 2.29 + echo "No squashfs patchset for kernel $ker. Abort." 2.30 + return 1 2.31 + fi 2.32 [ -d _kernel ] && rm -rf _kernel 2.33 mkdir _kernel 2.34 cd _kernel 2.35 @@ -44,13 +46,15 @@ 2.36 patch -Np1 < ../$patch_dir/${PACKAGE}${VERSION}-patch 2.37 2.38 # Move every files in fs/squashfs directory 2.39 - find include -type f -exec cp {} fs/squashfs \; 2.40 - 2.41 - # Hardcoded options 2.42 - perl -pi -e 's/CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE/3/g' fs/squashfs/* 2.43 + mv include/linux/* fs/squashfs 2.44 + ln -s . fs/squashfs/linux 2.45 + for i in fs/squashfs/*.c fs/squashfs/*.h ; do 2.46 + sed -e 's/#include <\(linux\/squashfs.*\)>.*/#include "\1"/g' > $i.$$ < $i 2.47 + sed -e 's/CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE/3/g' > $i < $i.$$ 2.48 + done 2.49 2.50 # Build kernel module 2.51 - make -C src/. SUBDIRS=$(pwd)/fs/squashfs/ modules 2.52 + make -C src/. SUBDIRS=$(pwd)/fs/squashfs/ CONFIG_SQUASHFS=m modules 2.53 cd .. 2.54 [ -d _pkg ] && rm -rf _pkg 2.55 mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/squashfs _pkg/usr/sbin