wok-next annotate linux-appletalk/receipt @ rev 5468
linmodem-agrsm: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 05 20:14:05 2010 +0200 (2010-05-05) |
parents | 7589496c772c |
children | 33dfd49cdf84 |
rev | line source |
---|---|
pascal@2159 | 1 # SliTaz package receipt. |
pascal@2159 | 2 |
pascal@2159 | 3 PACKAGE="linux-appletalk" |
pankso@5245 | 4 VERSION="2.6.33.2" |
pascal@2159 | 5 CATEGORY="base-system" |
pascal@2159 | 6 SHORT_DESC="The Linux kernel appletalk modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@2159 | 9 WANTED="linux" |
pascal@2159 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@2159 | 11 |
pascal@2159 | 12 |
pascal@2159 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2159 | 14 genpkg_rules() |
pascal@2159 | 15 { |
pascal@2159 | 16 local path |
pascal@2159 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2159 | 18 mkdir -p $fs/$path |
pascal@2159 | 19 |
pascal@2159 | 20 export src |
pascal@2159 | 21 export _pkg |
pascal@2159 | 22 |
pascal@3920 | 23 $src/slitaz/list_modules.sh drivers/net/appletalk net/appletalk \ |
pascal@2990 | 24 net/802/p8022.ko.gz | while read module; do |
pascal@2159 | 25 dir=$path/$(dirname $module) |
pascal@2159 | 26 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2159 | 27 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2159 | 28 done |
pascal@2159 | 29 } |
pascal@2159 | 30 |
pascal@2159 | 31 # Post install/remove commands for Tazpkg. |
pascal@2159 | 32 post_install() |
pascal@2159 | 33 { |
pascal@2990 | 34 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2159 | 35 } |
pascal@2159 | 36 |
pascal@2159 | 37 post_remove() |
pascal@2159 | 38 { |
pascal@2159 | 39 depmod -a $VERSION-slitaz |
pascal@2159 | 40 } |
pascal@2159 | 41 |