wok-tiny annotate module-ide/receipt @ rev 142

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (13 months ago)
parents fe3786524709
children
rev   line source
pascal@110 1 # SliTaz package receipt.
pascal@110 2
pascal@110 3 PACKAGE="module-ide"
pascal@110 4 VERSION="2.6.14"
pascal@110 5 CATEGORY="base-system"
pascal@110 6 GROUP="driver"
pascal@110 7 SHORT_DESC="Kernel module for the ide disk interface"
pascal@110 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@110 9 LICENSE="GPL2"
pascal@110 10 WEB_SITE="http://tiny.slitaz.org/"
pascal@110 11 WANTED="linux"
pascal@110 12 SUGGESTED="module-ext3 module-vfat"
pascal@110 13
pascal@110 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@110 15 genpkg_rules()
pascal@110 16 {
pascal@110 17 local path
pascal@110 18 export src=$WOK/$WANTED/source/linux-$VERSION
pascal@110 19 export _pkg=$WOK/$WANTED/install
pascal@110 20 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
pascal@110 21 mkdir -p $fs/$path $fs/dev
pascal@110 22 $src/slitaz/list_modules.sh drivers/ide | while read module; do
pascal@110 23 dir=$path/$(dirname $module)
pascal@110 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@110 25 cp -a $_pkg/$path/$module $fs/$dir
pascal@110 26 done
pascal@110 27 }
pascal@110 28
pascal@110 29 # Post install/remove commands for Tazpkg.
pascal@110 30 post_install()
pascal@110 31 {
pascal@114 32 for i in ide-core ide-disk ide-generic ; do
pascal@114 33 grep -qs ^$i$ $1/modules || echo $i >> $1/modules
pascal@114 34 done
pascal@110 35 }