wok-4.x view aufs/receipt @ rev 9249
Down mpd 15.15 (I think we need tcp_wrappers)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Mar 13 21:32:02 2011 +0000 (2011-03-13) |
parents | 67231cfc5475 |
children | 19a7717cb1c3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs"
4 VERSION="20110214"
5 CATEGORY="base-system"
6 SHORT_DESC="aufs2 kernel module"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="linux"
9 BUILD_DEPENDS="linux-module-headers git lzma"
10 WEB_SITE="http://aufs.sf.net/"
11 PROVIDE="linux-aufs"
12 WGET_URL="git|http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git"
13 BRANCH="origin/${PACKAGE}2.1-37"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
21 config.mk || return 1
22 sed -i 's|CONFIG_AUFS_BRANCH_MAX_1023 =.*|CONFIG_AUFS_BRANCH_MAX_1023 = y|' \
23 config.mk || return 1
24 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
25 config.mk || return 1
26 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
27 config.mk || return 1
28 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
29 config.mk || return 1
30 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
31 config.mk || return 1
32 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
33 config.mk || return 1
34 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
35 config.mk || return 1
36 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
37 config.mk || return 1
39 #patch -Np1 -i ../stuff/aufs2-module-2.6.36.patch
40 #make KDIR=/usr/src/linux clean
41 # build, sed fixes are from gentoo portage build
42 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
43 sed -i "s:__user::g" include/linux/aufs_type.h
44 make -j 1 KDIR=/usr/src/linux
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
51 EXTRAVERSION=_$KERNEL_VERSION
52 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs
53 lzma e $src/fs/aufs/aufs.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
54 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
55 chown 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
56 install -D -m 644 $src/include/linux/aufs_type.h $fs/usr/include/linux/aufs_type.h
58 }
60 post_install()
61 {
62 echo "Processing post-install commands..."
63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
64 }
66 post_remove()
67 {
68 echo "Processing post-remove commands..."
69 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
70 }