wok-6.x annotate linux-video/receipt @ rev 18296
Up linux (3.2.71)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 17 11:03:13 2015 +0200 (2015-08-17) |
parents | db5b03f42dd9 |
children | ffc20f9bd49f |
rev | line source |
---|---|
pascal@886 | 1 # SliTaz package receipt. |
pascal@886 | 2 |
pascal@886 | 3 PACKAGE="linux-video" |
pascal@18296 | 4 VERSION="3.2.71" |
pascal@886 | 5 CATEGORY="base-system" |
pascal@886 | 6 SHORT_DESC="The Linux kernel video modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pascal@2926 | 9 DEPENDS="linux" |
pascal@886 | 10 WANTED="linux" |
pascal@886 | 11 WEB_SITE="http://www.kernel.org/" |
pascal@886 | 12 |
pankso@5653 | 13 # Modules paths and list |
pankso@15855 | 14 MOD_PATH="lib/modules/$VERSION-slitaz/kernel" |
pankso@12285 | 15 MODULES="drivers/video/backlight" |
pankso@5653 | 16 |
pascal@886 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@886 | 18 genpkg_rules() |
pascal@886 | 19 { |
pankso@12285 | 20 mkdir -p ${fs}/${MOD_PATH} |
pankso@5653 | 21 for module in $MODULES |
pankso@5653 | 22 do |
pankso@5653 | 23 dir=$MOD_PATH/$(dirname $module) |
pankso@5653 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 25 cp -a $install/$MOD_PATH/$module $fs/$dir |
pankso@5653 | 26 done |
pascal@886 | 27 } |
pascal@886 | 28 |
pascal@886 | 29 # Post install/remove commands for Tazpkg. |
pascal@886 | 30 post_install() |
pascal@886 | 31 { |
pankso@15855 | 32 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@886 | 33 } |
pascal@886 | 34 |
pascal@886 | 35 post_remove() |
pascal@886 | 36 { |
pankso@15855 | 37 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@886 | 38 } |
pascal@886 | 39 |