wok-next annotate linux-libre-aoe/receipt @ rev 15918
Up: slitaz-boot-scripts (5.4.1) Bug fix
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 16 19:43:02 2014 +0100 (2014-02-16) |
parents | ad59999b3fce |
children |
rev | line source |
---|---|
gokhlayeh@12032 | 1 # SliTaz package receipt. |
gokhlayeh@12032 | 2 |
gokhlayeh@12032 | 3 PACKAGE="linux-libre-aoe" |
pascal@14201 | 4 VERSION="2.6.37-gnu" |
gokhlayeh@12032 | 5 CATEGORY="base-system" |
gokhlayeh@12032 | 6 SHORT_DESC="The Linux Libre kernel ATA over Ethernet modules." |
gokhlayeh@12032 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
gokhlayeh@12032 | 9 PROVIDE="linux-aoe" |
gokhlayeh@12032 | 10 WANTED="linux-libre" |
gokhlayeh@12032 | 11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" |
gokhlayeh@12032 | 12 |
gokhlayeh@12032 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@12032 | 14 genpkg_rules() |
gokhlayeh@12032 | 15 { |
gokhlayeh@12032 | 16 local path |
gokhlayeh@12032 | 17 path=lib/modules/$VERSION-slitaz/kernel |
gokhlayeh@12032 | 18 mkdir -p $fs/$path |
gokhlayeh@12032 | 19 export src |
gokhlayeh@12032 | 20 export _pkg |
gokhlayeh@12032 | 21 $wanted_stuff/list_modules.sh drivers/block/aoe/aoe.ko.gz | \ |
gokhlayeh@12032 | 22 while read module; do |
gokhlayeh@12032 | 23 dir=$path/$(dirname $module) |
gokhlayeh@12032 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 25 cp -a $install/$path/$module $fs/$dir |
gokhlayeh@12032 | 26 done |
gokhlayeh@12032 | 27 } |
gokhlayeh@12032 | 28 |
gokhlayeh@12032 | 29 # Post install/remove commands for Tazpkg. |
gokhlayeh@12032 | 30 post_install() |
gokhlayeh@12032 | 31 { |
gokhlayeh@12032 | 32 chroot "$1/" depmod -a $VERSION-slitaz |
gokhlayeh@12032 | 33 } |
gokhlayeh@12032 | 34 |
gokhlayeh@12032 | 35 post_remove() |
gokhlayeh@12032 | 36 { |
gokhlayeh@12032 | 37 chroot "$1/" depmod -a $VERSION-slitaz |
gokhlayeh@12032 | 38 } |
gokhlayeh@12032 | 39 |