wok-current view linux-libre-appletalk/receipt @ rev 9930
apr: need --prefix
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 23:44:04 2011 +0200 (2011-05-17) |
parents | abe27fd0192d |
children | 03a6791abff6 |
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 $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 $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 }