wok-6.x annotate linux-arcnet/receipt @ rev 15670

Up linux (3.2.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 18 08:40:48 2013 +0000 (2013-12-18)
parents 051931e905b0
children db5b03f42dd9
rev   line source
pankso@12285 1 # SliTaz package receipt.
pankso@12285 2
pankso@12285 3 PACKAGE="linux-arcnet"
pascal@15670 4 VERSION="3.2.53"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pankso@12285 6 CATEGORY="base-system"
pankso@12285 7 SHORT_DESC="arcnet kernel modules"
pankso@12285 8 MAINTAINER="slaxemulator@gmail.com"
pascal@14657 9 LICENSE="GPL2"
pankso@12285 10 WANTED="linux"
pankso@12285 11 WEB_SITE="http://kernel.org/"
pankso@12285 12 DEPENDS="linux"
pankso@12285 13
pankso@12285 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12285 15 genpkg_rules()
pankso@12285 16 {
pankso@12285 17 local path
pankso@12285 18 path=lib/modules/$BASEVER-slitaz/kernel
pankso@12285 19 mkdir -p $fs/$path
pankso@12285 20
pankso@12285 21 export src
pankso@12285 22 export _pkg
pankso@12285 23
pascal@12638 24 $wanted_stuff/list_modules.sh drivers/net/arcnet drivers/net/arcnet/arcnet.ko.xz \
pascal@12638 25 drivers/net/arcnet/com90xx.ko.xz drivers/net/arcnet/rfc1051.ko.xz | while read module; do
pankso@12285 26 dir=$path/$(dirname $module)
pankso@12285 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@15603 28 cp -a $install/$path/$module $fs/$dir
pankso@12285 29 done
pankso@12285 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
pankso@12285 34 fi
pankso@12285 35 done
pankso@12285 36 }
pankso@12285 37
pankso@12285 38 # Post install/remove commands for Tazpkg.
pankso@12285 39 post_install()
pankso@12285 40 {
pankso@12285 41 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@12285 42 }
pankso@12285 43
pankso@12285 44 post_remove()
pankso@12285 45 {
pankso@12285 46 chroot "$1/" depmod -a $BASEVER-slitaz
pankso@12285 47 }