wok-4.x rev 7666

Moved Module.sysvers to Module.sysvers-modules. This is cause i think making linux-without-modules bzImage is was change that file. Removed /usr/src/linux in pre_remove function in linux-module-headers. Added /usr/src/linux soft link to post_install in linux-module-headers.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 16 12:59:54 2010 +0000 (2010-12-16)
parents 9c2f7943a358
children 26db9394c095
files linux-ipv6/receipt linux-module-headers/receipt linux/receipt
line diff
     1.1 --- a/linux-ipv6/receipt	Thu Dec 16 09:03:59 2010 +0000
     1.2 +++ b/linux-ipv6/receipt	Thu Dec 16 12:59:54 2010 +0000
     1.3 @@ -22,6 +22,12 @@
     1.4      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
     1.5          cp -a $_pkg/$path/$module $fs/$dir
     1.6      done
     1.7 +
     1.8 +    for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do
     1.9 +        if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
    1.10 +	    rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
    1.11 +	fi
    1.12 +    done
    1.13  }
    1.14  
    1.15  # Post install/remove commands for Tazpkg.
     2.1 --- a/linux-module-headers/receipt	Thu Dec 16 09:03:59 2010 +0000
     2.2 +++ b/linux-module-headers/receipt	Thu Dec 16 12:59:54 2010 +0000
     2.3 @@ -25,9 +25,6 @@
     2.4  		$fs/$path/.config
     2.5  	mkdir -p $fs/$path/include
     2.6  
     2.7 -	# Added soft link to make it easier to point to kernel folder
     2.8 -	ln -s linux-$KVERSION $fs/usr/src/linux
     2.9 -
    2.10  	for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video; do
    2.11  		cp -a $src/include/$i $fs/$path/include/
    2.12  	done
    2.13 @@ -37,7 +34,7 @@
    2.14  	cp -a $src/arch/x86/include $fs/$path/arch/x86/
    2.15  
    2.16  	# copy files necessary for later builds, like nvidia and vmware
    2.17 -  	cp -a $src/Module.symvers $fs/$path
    2.18 +  	cp -a $src/Module.symvers-modules $fs/$path/Module.symvers
    2.19    	cp -a $src/scripts $fs/$path
    2.20    	# fix permissions on scripts dir
    2.21    	chmod og-w -R $fs/$path/scripts
    2.22 @@ -132,3 +129,13 @@
    2.23  
    2.24  }	
    2.25  
    2.26 +pre_remove() {
    2.27 +	if [ -e $1/usr/src/linux ]; then
    2.28 +		rm -rf $1/usr/src/linux
    2.29 +	fi
    2.30 +}
    2.31 +
    2.32 +post_install() {
    2.33 +	# Added soft link to make it easier to point to kernel folder
    2.34 +	ln -sf /usr/src/linux-$KVERSION-slitaz $1/usr/src/linux
    2.35 +}
     3.1 --- a/linux/receipt	Thu Dec 16 09:03:59 2010 +0000
     3.2 +++ b/linux/receipt	Thu Dec 16 12:59:54 2010 +0000
     3.3 @@ -87,6 +87,7 @@
     3.4  	# Compress all modules.
     3.5  	$WOK/$PACKAGE/stuff/gztazmod.sh $PWD/_pkg/lib/modules/$VERSION-slitaz
     3.6  	mv System.map System.map-modules
     3.7 +	mv Module.symvers Module.symvers-modules
     3.8  	sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config
     3.9  	# We can't keep every driver in staging 
    3.10  	sed -i -e 's/^CONFIG_RTL8192/#&/' \