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