wok rev 17370

Add linux64-module-headers
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 21 13:38:52 2014 +0100 (2014-11-21)
parents ae249db6d29c
children 693b7f5a408b
files linux64-module-headers/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux64-module-headers/receipt	Fri Nov 21 13:38:52 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux64-module-headers"
     1.7 +VERSION="3.2.53"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Header files and scripts for building modules for linux kernel."
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +DEPENDS="slitaz-toolchain"
    1.13 +WANTED="linux"
    1.14 +WEB_SITE="http://kernel.org/"
    1.15 +KVERSION=$VERSION-slitaz64
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	local path
    1.21 +	mkdir -p $fs/lib/modules/$KVERSION $fs/usr
    1.22 +	ln -sf /$path $fs/lib/modules/$KVERSION/build
    1.23 +	cp -a $install/linux64/usr/src $fs/usr
    1.24 +}	
    1.25 +
    1.26 +pre_remove() {
    1.27 +	if [ -e $1/usr/src/linux ]; then
    1.28 +		rm -rf $1/usr/src/linux
    1.29 +	fi
    1.30 +}
    1.31 +
    1.32 +post_install() {
    1.33 +	# Added soft link to make it easier to point to kernel folder
    1.34 +	[ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux 
    1.35 +	ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux
    1.36 +}