wok annotate linux-memstick/receipt @ rev 7672
Up: drupal to 6.20.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Dec 16 16:11:50 2010 +0000 (2010-12-16) |
parents | 5355ffc461cf |
children | 03d4663c81fa |
rev | line source |
---|---|
pascal@2161 | 1 # SliTaz package receipt. |
pascal@2161 | 2 |
pascal@2161 | 3 PACKAGE="linux-memstick" |
slaxemulator@7131 | 4 VERSION="2.6.36" |
pascal@2161 | 5 CATEGORY="base-system" |
pascal@2161 | 6 SHORT_DESC="The Linux kernel sony memory stick modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@2161 | 9 WANTED="linux" |
pascal@2161 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@2161 | 11 |
pascal@2161 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2161 | 13 genpkg_rules() |
pascal@2161 | 14 { |
pascal@2161 | 15 local path |
pascal@2161 | 16 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2161 | 17 mkdir -p $fs/$path |
pascal@2161 | 18 |
pascal@2161 | 19 export src |
pascal@2161 | 20 export _pkg |
pascal@2161 | 21 |
pascal@3920 | 22 $src/slitaz/list_modules.sh drivers/memstick | while read module; do |
pascal@2161 | 23 dir=$path/$(dirname $module) |
pascal@2161 | 24 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2161 | 25 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2161 | 26 done |
slaxemulator@7239 | 27 |
slaxemulator@7239 | 28 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do |
slaxemulator@7239 | 29 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then |
slaxemulator@7239 | 30 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i |
slaxemulator@7239 | 31 fi |
slaxemulator@7239 | 32 done |
pascal@2161 | 33 } |
pascal@2161 | 34 |
pascal@2161 | 35 # Post install/remove commands for Tazpkg. |
pascal@2161 | 36 post_install() |
pascal@2161 | 37 { |
pascal@2990 | 38 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2161 | 39 } |
pascal@2161 | 40 |
pascal@2161 | 41 post_remove() |
pascal@2161 | 42 { |
pascal@2161 | 43 depmod -a $VERSION-slitaz |
pascal@2161 | 44 } |
pascal@2161 | 45 |