wok rev 10669

aufs: user $kvers
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 10:23:37 2011 +0200 (2011-05-27)
parents 51dc38f6efca
children ecabd74de6df
files aufs/receipt
line diff
     1.1 --- a/aufs/receipt	Fri May 27 10:23:00 2011 +0200
     1.2 +++ b/aufs/receipt	Fri May 27 10:23:37 2011 +0200
     1.3 @@ -38,9 +38,7 @@
     1.4  	sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
     1.5  		config.mk || return 1
     1.6  
     1.7 -	#patch -Np1 -i $stuff/aufs2-module-2.6.36.patch
     1.8 -	#make KDIR=/usr/src/linux clean
     1.9 -	# build, sed fixes are from gentoo portage build
    1.10 +	# The sed fixes are from gentoo portage build.
    1.11  	sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    1.12  	sed -i "s:__user::g" include/linux/aufs_type.h
    1.13  	make -j 1 KDIR=/usr/src/linux
    1.14 @@ -49,14 +47,14 @@
    1.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.16  genpkg_rules()
    1.17  {
    1.18 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.19 -	EXTRAVERSION=_$KERNEL_VERSION
    1.20 -	mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs
    1.21 -	lzma e $src/fs/aufs/aufs.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
    1.22 -	chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
    1.23 -	chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
    1.24 -	install -D -m 644 $src/include/linux/aufs_type.h $fs/usr/include/linux/aufs_type.h 
    1.25 -
    1.26 +	EXTRAVERSION=_${kvers}
    1.27 +	mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs
    1.28 +	lzma e $src/fs/aufs/aufs.ko \
    1.29 +		$fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
    1.30 +	chown root $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
    1.31 +	chown 0644 $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
    1.32 +	install -D -m 644 $src/include/linux/aufs_type.h \
    1.33 +		$fs/usr/include/linux/aufs_type.h 
    1.34  }
    1.35  
    1.36  post_install()