wok-6.x annotate linux64-module-headers/receipt @ rev 20265
linux-module-headers: add include/linux/version.h
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 15 17:57:37 2018 +0100 (2018-03-15) |
parents | 708b5293dd29 |
children | b586ad58c401 |
rev | line source |
---|---|
pascal@17370 | 1 # SliTaz package receipt. |
pascal@17370 | 2 |
pascal@17370 | 3 PACKAGE="linux64-module-headers" |
pascal@20261 | 4 VERSION="3.16.55" |
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@17370 | 18 cp -a $install/linux64/usr/src $fs/usr |
pascal@20265 | 19 ln -s ../generated/uapi/linux/version.h \ |
pascal@20265 | 20 $install/usr/src/linux-$VERSION-slitaz64/include/linux/version.h |
pascal@17370 | 21 } |
pascal@17370 | 22 |
pascal@17370 | 23 pre_remove() { |
pascal@18730 | 24 if [ -e "$1/usr/src/linux" ]; then |
pascal@18730 | 25 rm -rf "$1/usr/src/linux" |
pascal@17370 | 26 fi |
pascal@17370 | 27 } |
pascal@17370 | 28 |
pascal@17370 | 29 post_install() { |
pascal@17370 | 30 # Added soft link to make it easier to point to kernel folder |
pascal@18730 | 31 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux" |
pascal@18730 | 32 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux" |
pascal@18830 | 33 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build" |
pascal@17370 | 34 } |