wok view kqemu/receipt @ rev 1479

madwifi: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 14:46:49 2008 +0000 (2008-10-04)
parents b4ca1619acb9
children 4c90e423814c
line source
1 # SliTaz package receipt.
3 PACKAGE="kqemu"
4 VERSION="1.3.0pre11"
5 CATEGORY="misc"
6 SHORT_DESC="QEMU Accelerator Module."
7 MAINTAINER="pascal.bellard@ads-lu.com"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://bellard.org/qemu"
10 WGET_URL="$WEB_SITE/$TARBALL"
11 BUILD_DEPENDS="gcc3"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 local dir
17 if [ ! -d $WOK/linux/taz ]; then
18 tazwok cook linux
19 fi
20 dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
21 cd $src
22 ./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \
23 --host-cc=gcc-3 --cc=gcc-3
24 make
25 mkdir -p _pkg/$dir _pkg/dev
26 cp kqemu.ko _pkg/$dir
27 gzip -9 _pkg/$dir/kqemu.ko
28 mknod _pkg/dev/kqemu c 250 0
29 chmod 666 _pkg/dev/kqemu
30 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 local kver
37 kver=$(grep "kernel version" $WOK/linux/linux-*/.config)
38 EXTRAVERSION=_${kver##* }
39 cp -a $_pkg/* $fs
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
46 }
48 post_remove()
49 {
50 depmod -a
51 }