wok-backports annotate linux-arcnet/receipt @ rev 50

GNU Nano - Latest Version 2.7.1 (again)
author Leonardo Laporte <hackdorte@sapo.pt>
date Thu Nov 03 23:48:26 2016 -0200 (2016-11-03)
parents
children
rev   line source
pascal@0 1 # SliTaz package receipt.
pascal@0 2
pascal@0 3 PACKAGE="linux-arcnet"
pascal@0 4 VERSION="3.2.53"
pascal@0 5 BASEVER="${VERSION:0:3}"
pascal@0 6 CATEGORY="base-system"
pascal@0 7 SHORT_DESC="arcnet kernel modules"
pascal@0 8 MAINTAINER="slaxemulator@gmail.com"
pascal@0 9 LICENSE="GPL2"
pascal@0 10 WANTED="linux"
pascal@0 11 WEB_SITE="http://kernel.org/"
pascal@0 12 DEPENDS="linux"
pascal@0 13
pascal@0 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@0 15 genpkg_rules()
pascal@0 16 {
pascal@0 17 local path
pascal@0 18 path=lib/modules/$BASEVER-slitaz/kernel
pascal@0 19 mkdir -p $fs/$path
pascal@0 20
pascal@0 21 export src
pascal@0 22 export _pkg
pascal@0 23
pascal@0 24 $wanted_stuff/list_modules.sh drivers/net/arcnet drivers/net/arcnet/arcnet.ko.xz \
pascal@0 25 drivers/net/arcnet/com90xx.ko.xz drivers/net/arcnet/rfc1051.ko.xz | while read module; do
pascal@0 26 dir=$path/$(dirname $module)
pascal@0 27 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@0 28 cp -a $install/$path/$module $fs/$dir
pascal@0 29 done
pascal@0 30
pascal@0 31 for i in $(cat $wanted_stuff/modules.list); do
pascal@0 32 if [ -f $fs/$path/$i ]; then
pascal@0 33 rm -f $fs/$path/$i
pascal@0 34 fi
pascal@0 35 done
pascal@0 36 }
pascal@0 37
pascal@0 38 # Post install/remove commands for Tazpkg.
pascal@0 39 post_install()
pascal@0 40 {
pascal@0 41 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@0 42 }
pascal@0 43
pascal@0 44 post_remove()
pascal@0 45 {
pascal@0 46 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@0 47 }