wok-current annotate linux-appletalk/receipt @ rev 7607

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