wok-next annotate linux-appletalk/receipt @ rev 15343
perl: add threads support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 29 15:37:29 2013 +0000 (2013-09-29) |
parents | 416fab3c90c0 |
children | 051931e905b0 |
rev | line source |
---|---|
pascal@2159 | 1 # SliTaz package receipt. |
pascal@2159 | 2 |
pascal@2159 | 3 PACKAGE="linux-appletalk" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pascal@2159 | 6 CATEGORY="base-system" |
pascal@2159 | 7 SHORT_DESC="The Linux kernel appletalk modules." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 9 LICENSE="GPL2" |
pascal@2926 | 10 DEPENDS="linux" |
pascal@2159 | 11 WANTED="linux" |
pascal@2159 | 12 WEB_SITE="http://www.kernel.org/" |
pascal@2159 | 13 |
pascal@2159 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2159 | 15 genpkg_rules() |
pascal@2159 | 16 { |
pascal@2159 | 17 local path |
pankso@12285 | 18 path=lib/modules/$BASEVER-slitaz/kernel |
pascal@2159 | 19 mkdir -p $fs/$path |
pascal@2159 | 20 |
pascal@2159 | 21 export src |
pascal@2159 | 22 export _pkg |
pascal@2159 | 23 |
slaxemulator@9700 | 24 $wanted_stuff/list_modules.sh drivers/net/appletalk net/appletalk \ |
pascal@12638 | 25 net/802/p8022.ko.xz | while read module; do |
pascal@2159 | 26 dir=$path/$(dirname $module) |
pascal@2159 | 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2159 | 28 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2159 | 29 done |
slaxemulator@7239 | 30 |
pankso@12285 | 31 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 32 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 33 rm -f $fs/$path/$i |
slaxemulator@7239 | 34 fi |
slaxemulator@7239 | 35 done |
pascal@2159 | 36 } |
pascal@2159 | 37 |
pascal@2159 | 38 # Post install/remove commands for Tazpkg. |
pascal@2159 | 39 post_install() |
pascal@2159 | 40 { |
pankso@12285 | 41 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@2159 | 42 } |
pascal@2159 | 43 |
pascal@2159 | 44 post_remove() |
pascal@2159 | 45 { |
pankso@12285 | 46 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@2159 | 47 } |
pascal@2159 | 48 |