wok-6.x view linux-libre-appletalk/receipt @ rev 9676

Fixed tazdev. Tazwok uses mercurial| not hg| in WGET_URL.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed May 04 16:22:49 2011 +0000 (2011-05-04)
parents
children d1768332cee0
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-appletalk"
4 VERSION="2.6.37-libre"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel appletalk modules."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 PROVIDE="linux-appletalk"
9 DEPENDS="linux-libre"
10 WANTED="linux-libre"
11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 path=lib/modules/$VERSION-slitaz/kernel
18 mkdir -p $fs/$path
20 export src
21 export _pkg
23 $WOK/$WANTED/stuff/list_modules.sh drivers/net/appletalk net/appletalk \
24 net/802/p8022.ko.gz | while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
30 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do
31 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
32 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
33 fi
34 done
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 chroot "$1/" depmod -a $VERSION-slitaz
41 }
43 post_remove()
44 {
45 chroot "$1/" depmod -a $VERSION-slitaz
46 }