wok-6.x annotate linux-mmc/receipt @ rev 18718

Up: tazpkg(890), cookutils(788)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 17 15:58:11 2015 +0200 (2015-12-17)
parents db5b03f42dd9
children ffc20f9bd49f
rev   line source
pascal@2162 1 # SliTaz package receipt.
pascal@2162 2
pascal@2162 3 PACKAGE="linux-mmc"
pascal@18296 4 VERSION="3.2.71"
pascal@2162 5 CATEGORY="base-system"
pascal@2162 6 SHORT_DESC="The Linux kernel mmc modules (card reader)."
pankso@3864 7 MAINTAINER="devel@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
pascal@2926 9 DEPENDS="linux"
pascal@2162 10 WANTED="linux"
pascal@2162 11 WEB_SITE="http://www.kernel.org/"
pascal@2162 12
pascal@2162 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2162 14 genpkg_rules()
pascal@2162 15 {
pascal@2162 16 local path
pankso@15855 17 path=lib/modules/$VERSION-slitaz/kernel
pascal@2162 18 mkdir -p $fs/$path
pankso@15855 19 export src install
pascal@12638 20 $wanted_stuff/list_modules.sh drivers/mmc drivers/misc/tifm_7xx1.ko.xz drivers/misc/iwmc3200top/iwmc3200top.ko.xz| \
pascal@2990 21 while read module; do
pascal@2162 22 dir=$path/$(dirname $module)
pascal@2162 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@15603 24 cp -a $install/$path/$module $fs/$dir
pascal@2162 25 done
slaxemulator@7239 26
pankso@12285 27 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 28 if [ -f $fs/$path/$i ]; then
pankso@12285 29 rm -f $fs/$path/$i
slaxemulator@7239 30 fi
slaxemulator@7239 31 done
pascal@2162 32 }
pascal@2162 33
pascal@2162 34 # Post install/remove commands for Tazpkg.
pascal@2162 35 post_install()
pascal@2162 36 {
pankso@15855 37 chroot "$root/" depmod -a $VERSION-slitaz
pascal@2162 38 }
pascal@2162 39
pascal@2162 40 post_remove()
pascal@2162 41 {
pankso@15855 42 chroot "$root/" depmod -a $VERSION-slitaz
pascal@2162 43 }
pascal@2162 44