wok-current annotate linux-usbdsl/receipt @ rev 14100
perl-xml-parser: up 2.41
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Sat Feb 23 08:46:31 2013 -0800 (2013-02-23) |
parents | d1768332cee0 |
children | 416fab3c90c0 |
rev | line source |
---|---|
pascal@2166 | 1 # SliTaz package receipt. |
pascal@2166 | 2 |
pascal@2166 | 3 PACKAGE="linux-usbdsl" |
pankso@12285 | 4 VERSION="3.2.14" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pascal@2166 | 6 CATEGORY="base-system" |
pascal@2166 | 7 SHORT_DESC="The Linux kernel usb dsl modem modules." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 9 DEPENDS="linux" |
pascal@2166 | 10 WANTED="linux" |
pascal@2166 | 11 WEB_SITE="http://www.kernel.org/" |
pascal@2166 | 12 |
pascal@2166 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2166 | 14 genpkg_rules() |
pascal@2166 | 15 { |
pascal@2166 | 16 local path |
pankso@12285 | 17 path=lib/modules/$BASEVER-slitaz/kernel |
pascal@2166 | 18 mkdir -p $fs/$path |
pascal@2166 | 19 |
pascal@2166 | 20 export src |
pascal@2166 | 21 export _pkg |
pascal@2166 | 22 |
slaxemulator@9700 | 23 $wanted_stuff/list_modules.sh drivers/usb/atm net/atm | \ |
pascal@2166 | 24 while read module; do |
pascal@2166 | 25 dir=$path/$(dirname $module) |
pascal@2166 | 26 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2166 | 27 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2166 | 28 done |
pascal@2166 | 29 } |
pascal@2166 | 30 |
pascal@2166 | 31 # Post install/remove commands for Tazpkg. |
pascal@2166 | 32 post_install() |
pascal@2166 | 33 { |
pankso@12285 | 34 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@2166 | 35 } |
pascal@2166 | 36 |
pascal@2166 | 37 post_remove() |
pascal@2166 | 38 { |
pankso@12285 | 39 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@2166 | 40 } |
pascal@2166 | 41 |