wok annotate linux64-module-headers/receipt @ rev 17991
fusecloop: fix realloc index size
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 23 15:42:00 2015 +0200 (2015-04-23) |
parents | 8cd1ef0e44b7 |
children | 08cf996a2307 |
rev | line source |
---|---|
pascal@17370 | 1 # SliTaz package receipt. |
pascal@17370 | 2 |
pascal@17370 | 3 PACKAGE="linux64-module-headers" |
pascal@17370 | 4 VERSION="3.2.53" |
pascal@17370 | 5 CATEGORY="development" |
pascal@17370 | 6 SHORT_DESC="Header files and scripts for building modules for linux kernel." |
pascal@17370 | 7 MAINTAINER="devel@slitaz.org" |
pascal@17370 | 8 LICENSE="GPL2" |
pascal@17370 | 9 DEPENDS="slitaz-toolchain" |
pascal@17370 | 10 WANTED="linux" |
pascal@17370 | 11 WEB_SITE="http://kernel.org/" |
pascal@17370 | 12 KVERSION=$VERSION-slitaz64 |
pascal@17370 | 13 |
pascal@17370 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17370 | 15 genpkg_rules() |
pascal@17370 | 16 { |
pascal@17370 | 17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr |
pascal@17373 | 18 ln -sf /usr/src/linux-$KVERSION $fs/lib/modules/$KVERSION/build |
pascal@17370 | 19 cp -a $install/linux64/usr/src $fs/usr |
pascal@17370 | 20 } |
pascal@17370 | 21 |
pascal@17370 | 22 pre_remove() { |
pascal@17370 | 23 if [ -e $1/usr/src/linux ]; then |
pascal@17370 | 24 rm -rf $1/usr/src/linux |
pascal@17370 | 25 fi |
pascal@17370 | 26 } |
pascal@17370 | 27 |
pascal@17370 | 28 post_install() { |
pascal@17370 | 29 # Added soft link to make it easier to point to kernel folder |
pascal@17370 | 30 [ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux |
pascal@17370 | 31 ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux |
pascal@17370 | 32 } |