wok-current annotate linux-module-headers/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 08cf996a2307 |
children | 4ba93d7db933 |
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() { |
pascal@18730 | 23 if [ -e "$1/usr/src/linux" ]; then |
pascal@18730 | 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@18730 | 30 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux" |
pascal@18730 | 31 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux" |
slaxemulator@7666 | 32 } |