wok-4.x annotate linux-appletalk/receipt @ rev 2159

Add linux-appletalk
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 07 08:42:46 2009 +0000 (2009-02-07)
parents
children 13c1216335ad
rev   line source
pascal@2159 1 # SliTaz package receipt.
pascal@2159 2
pascal@2159 3 PACKAGE="linux-appletalk"
pascal@2159 4 VERSION="2.6.25.5"
pascal@2159 5 CATEGORY="base-system"
pascal@2159 6 SHORT_DESC="The Linux kernel appletalk modules."
pascal@2159 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@2159 8 WANTED="linux"
pascal@2159 9 WEB_SITE="http://www.kernel.org/"
pascal@2159 10
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@2159 22 $src/list_modules.sh drivers/net/appletalk net/appletalk | \
pascal@2159 23 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
pascal@2159 28 }
pascal@2159 29
pascal@2159 30 # Post install/remove commands for Tazpkg.
pascal@2159 31 post_install()
pascal@2159 32 {
pascal@2159 33 depmod -a -b "$1/" $VERSION-slitaz
pascal@2159 34 }
pascal@2159 35
pascal@2159 36 post_remove()
pascal@2159 37 {
pascal@2159 38 depmod -a $VERSION-slitaz
pascal@2159 39 }
pascal@2159 40