wok annotate linux-usbdsl/receipt @ rev 19549
Up cacerts (20161124), perl no more need in post_install
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 09 03:40:48 2016 +0200 (2016-12-09) |
parents | db5b03f42dd9 |
children | ffc20f9bd49f |
rev | line source |
---|---|
pascal@2166 | 1 # SliTaz package receipt. |
pascal@2166 | 2 |
pascal@2166 | 3 PACKAGE="linux-usbdsl" |
pascal@18296 | 4 VERSION="3.2.71" |
pascal@2166 | 5 CATEGORY="base-system" |
pascal@2166 | 6 SHORT_DESC="The Linux kernel usb dsl modem modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
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@15855 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2166 | 18 mkdir -p $fs/$path |
pascal@2166 | 19 |
pankso@15855 | 20 export src install |
pascal@2166 | 21 |
slaxemulator@9700 | 22 $wanted_stuff/list_modules.sh drivers/usb/atm net/atm | \ |
pascal@2166 | 23 while read module; do |
pascal@2166 | 24 dir=$path/$(dirname $module) |
pascal@2166 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 26 cp -a $install/$path/$module $fs/$dir |
pascal@2166 | 27 done |
pascal@2166 | 28 } |
pascal@2166 | 29 |
pascal@2166 | 30 # Post install/remove commands for Tazpkg. |
pascal@2166 | 31 post_install() |
pascal@2166 | 32 { |
pankso@15855 | 33 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@2166 | 34 } |
pascal@2166 | 35 |
pascal@2166 | 36 post_remove() |
pascal@2166 | 37 { |
pankso@15855 | 38 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@2166 | 39 } |
pascal@2166 | 40 |