wok-next annotate linux-module-headers/receipt @ rev 18831

linux-module-headers: avoid depmod during install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 18 17:45:22 2016 +0100 (2016-01-18)
parents 9e01bc6321ea
children 119e586fb823
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 cp -a $install/usr/src $fs/usr
slaxemulator@6707 19 }
slaxemulator@6707 20
slaxemulator@7666 21 pre_remove() {
pascal@18730 22 if [ -e "$1/usr/src/linux" ]; then
pascal@18730 23 rm -rf "$1/usr/src/linux"
slaxemulator@7666 24 fi
slaxemulator@7666 25 }
slaxemulator@7666 26
slaxemulator@7666 27 post_install() {
slaxemulator@7666 28 # Added soft link to make it easier to point to kernel folder
pascal@18730 29 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
pascal@18730 30 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
pascal@18831 31 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build"
slaxemulator@7666 32 }