wok view linux-source/receipt @ rev 4199
Fix: libexo FSH (--libexecdir)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Sep 23 21:12:03 2009 +0200 (2009-09-23) |
parents | 7df76f20d2c3 |
children | 92cea60a3573 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-source"
4 VERSION="2.6.30.6"
5 CATEGORY="development"
6 SHORT_DESC="The Linux kernel source files."
7 MAINTAINER="devel@slitaz.org"
8 WANTED="linux"
9 WEB_SITE="http://www.kernel.org/"
10 DEPENDS="linux slitaz-toolchain ncurses-dev perl"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/
16 ln -s linux-$VERSION-slitaz $fs/usr/src/linux
17 cp -a $src/slitaz $fs/usr/src/linux-$VERSION-slitaz
18 ln -s /usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/source
19 ln -s /usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/build
20 }
22 # Post install/remove commands for Tazpkg.
23 post_install()
24 {
25 local url
26 local patch_file
27 cd $1/usr/src/
28 url=$(cat linux-$VERSION-slitaz/slitaz/url)
29 wget -c $url
30 tar xjf $(basename $url)
31 mv linux-$VERSION-slitaz/slitaz linux-$VERSION
32 rm -rf linux-$VERSION-slitaz
33 mv linux-$VERSION linux-$VERSION-slitaz
34 cd linux-$VERSION-slitaz
35 while read patch_file; do
36 echo "Apply $patch_file"
37 patch -p1 < slitaz/$patch_file
38 done < slitaz/patches
39 [ ! -f System.map ] && cp slitaz/config .config &&
40 make oldconfig && make bzImage && make modules
41 cat <<EOT
42 ----
43 To modify the kernel configuration:
44 $ cd /usr/src/linux-$VERSION-slitaz
45 $ make menuconfig
47 To build the kernel and the modules:
48 $ cd /usr/src/linux-$VERSION-slitaz
49 $ make bzImage && make modules
51 To install the new kernel and the modules:
52 $ make modules_install
53 $ cp -a arch/x86/boot/bzImage /boot/vmlinuz-$VERSION-slitaz
55 See /usr/src/linux-$VERSION-slitaz/README
56 ----
57 EOT
58 }
60 pre_remove()
61 {
62 rm $(basename $(cat /usr/src/linux-$VERSION-slitaz/slitaz/url)) 2> /dev/null || true
63 }
65 post_remove()
66 {
67 rm -rf /usr/src/linux-$VERSION-slitaz
68 }