wok-next annotate linux-module-headers/receipt @ rev 18336
Up zstd (0.1.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 10 17:29:00 2015 +0200 (2015-09-10) |
parents | d963cb47d215 |
children | 9e01bc6321ea |
rev | line source |
---|---|
slaxemulator@6707 | 1 # SliTaz package receipt. |
slaxemulator@6707 | 2 |
slaxemulator@6707 | 3 PACKAGE="linux-module-headers" |
pascal@18296 | 4 VERSION="3.2.71" |
slaxemulator@6707 | 5 CATEGORY="development" |
slaxemulator@6707 | 6 SHORT_DESC="Header files and scripts for building modules for linux kernel." |
pascal@13025 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
slaxemulator@6707 | 9 DEPENDS="slitaz-toolchain" |
slaxemulator@6707 | 10 WANTED="linux" |
slaxemulator@6707 | 11 WEB_SITE="http://kernel.org/" |
pankso@15855 | 12 KVERSION=$VERSION-slitaz |
slaxemulator@6707 | 13 |
slaxemulator@6707 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6707 | 15 genpkg_rules() |
slaxemulator@6707 | 16 { |
pascal@17373 | 17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr |
pascal@17373 | 18 ln -sf /usr/src/linux-$KVERSION $fs/lib/modules/$KVERSION/build |
pascal@17373 | 19 cp -a $install/usr/src $fs/usr |
slaxemulator@6707 | 20 } |
slaxemulator@6707 | 21 |
slaxemulator@7666 | 22 pre_remove() { |
slaxemulator@7666 | 23 if [ -e $1/usr/src/linux ]; then |
slaxemulator@7666 | 24 rm -rf $1/usr/src/linux |
slaxemulator@7666 | 25 fi |
slaxemulator@7666 | 26 } |
slaxemulator@7666 | 27 |
slaxemulator@7666 | 28 post_install() { |
slaxemulator@7666 | 29 # Added soft link to make it easier to point to kernel folder |
pascal@8094 | 30 [ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux |
slaxemulator@7675 | 31 ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux |
slaxemulator@7666 | 32 } |