wok-tiny diff module-ide/receipt @ rev 110
Add modules ide & tlan
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 09 21:30:10 2016 +0100 (2016-03-09) |
parents | |
children | 8af7d8943f03 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/module-ide/receipt Wed Mar 09 21:30:10 2016 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="module-ide" 1.7 +VERSION="2.6.14" 1.8 +CATEGORY="base-system" 1.9 +GROUP="driver" 1.10 +SHORT_DESC="Kernel module for the ide disk interface" 1.11 +MAINTAINER="pascal.bellard@slitaz.org" 1.12 +LICENSE="GPL2" 1.13 +WEB_SITE="http://tiny.slitaz.org/" 1.14 +WANTED="linux" 1.15 +SUGGESTED="module-ext3 module-vfat" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + local path 1.21 + export src=$WOK/$WANTED/source/linux-$VERSION 1.22 + export _pkg=$WOK/$WANTED/install 1.23 + path=lib/modules/$(ls $_pkg/lib/modules)/kernel 1.24 + mkdir -p $fs/$path $fs/dev 1.25 + $src/slitaz/list_modules.sh drivers/ide | while read module; do 1.26 + dir=$path/$(dirname $module) 1.27 + [ -d $fs/$dir ] || mkdir -p $fs/$dir 1.28 + cp -a $_pkg/$path/$module $fs/$dir 1.29 + done 1.30 +} 1.31 + 1.32 +# Post install/remove commands for Tazpkg. 1.33 +post_install() 1.34 +{ 1.35 + cat >> $1/modules <<EOT 1.36 +ide-core 1.37 +ide-disk 1.38 +ide-generic 1.39 +EOT 1.40 +}