wok-stable view aufs/receipt @ rev 10245
Up: glib to 2.28.6.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 01:51:01 2011 +0000 (2011-05-21) |
parents | cbfb348cb173 |
children | 8dffd56b84f3 |
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 WEB_SITE="http://aufs.sf.net/"
9 PROVIDE="linux-aufs"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="git|http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git"
12 BRANCH="origin/${PACKAGE}2.1-37"
14 DEPENDS="linux"
15 BUILD_DEPENDS="linux-module-headers git lzma"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
22 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
23 config.mk || return 1
24 sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
25 config.mk || return 1
26 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
27 config.mk || return 1
28 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
29 config.mk || return 1
30 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
31 config.mk || return 1
32 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
33 config.mk || return 1
34 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
35 config.mk || return 1
36 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
37 config.mk || return 1
38 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
39 config.mk || return 1
41 #patch -Np1 -i $stuff/aufs2-module-2.6.36.patch
42 #make KDIR=/usr/src/linux clean
43 # build, sed fixes are from gentoo portage build
44 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
45 sed -i "s:__user::g" include/linux/aufs_type.h
46 make -j 1 KDIR=/usr/src/linux
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
53 EXTRAVERSION=_$KERNEL_VERSION
54 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs
55 lzma e $src/fs/aufs/aufs.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
56 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
57 chown 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
58 install -D -m 644 $src/include/linux/aufs_type.h $fs/usr/include/linux/aufs_type.h
60 }
62 post_install()
63 {
64 echo "Processing post-install commands..."
65 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
66 }
68 post_remove()
69 {
70 echo "Processing post-remove commands..."
71 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
72 }