wok-current annotate linux-libre-nbd/receipt @ rev 12496
Up: xorg-libX11 (1.4.4)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 24 16:23:11 2012 +0200 (2012-04-24) |
parents | |
children | 03a6791abff6 |
rev | line source |
---|---|
gokhlayeh@12032 | 1 # SliTaz package receipt. |
gokhlayeh@12032 | 2 |
gokhlayeh@12032 | 3 PACKAGE="linux-libre-nbd" |
gokhlayeh@12032 | 4 VERSION="2.6.37-libre" |
gokhlayeh@12032 | 5 CATEGORY="base-system" |
gokhlayeh@12032 | 6 SHORT_DESC="The Linux Libre kernel network block device modules." |
gokhlayeh@12032 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
gokhlayeh@12032 | 8 PROVIDE="linux-nbd" |
gokhlayeh@12032 | 9 WANTED="linux-libre" |
gokhlayeh@12032 | 10 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" |
gokhlayeh@12032 | 11 |
gokhlayeh@12032 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@12032 | 13 genpkg_rules() |
gokhlayeh@12032 | 14 { |
gokhlayeh@12032 | 15 local path |
gokhlayeh@12032 | 16 path=lib/modules/$VERSION-slitaz/kernel |
gokhlayeh@12032 | 17 mkdir -p $fs/$path |
gokhlayeh@12032 | 18 export src |
gokhlayeh@12032 | 19 export _pkg |
gokhlayeh@12032 | 20 $wanted_stuff/list_modules.sh drivers/block/nbd.ko.gz | \ |
gokhlayeh@12032 | 21 while read module; do |
gokhlayeh@12032 | 22 dir=$path/$(dirname $module) |
gokhlayeh@12032 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
gokhlayeh@12032 | 24 cp -a $_pkg/$path/$module $fs/$dir |
gokhlayeh@12032 | 25 done |
gokhlayeh@12032 | 26 } |
gokhlayeh@12032 | 27 |
gokhlayeh@12032 | 28 # Post install/remove commands for Tazpkg. |
gokhlayeh@12032 | 29 post_install() |
gokhlayeh@12032 | 30 { |
gokhlayeh@12032 | 31 chroot "$1/" depmod -a $VERSION-slitaz |
gokhlayeh@12032 | 32 } |
gokhlayeh@12032 | 33 |
gokhlayeh@12032 | 34 post_remove() |
gokhlayeh@12032 | 35 { |
gokhlayeh@12032 | 36 chroot "$1/" depmod -a $VERSION-slitaz |
gokhlayeh@12032 | 37 } |
gokhlayeh@12032 | 38 |