wok-current view aufs/receipt @ rev 12938

Up: aria2 to 1.15.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed May 30 04:52:44 2012 +0000 (2012-05-30)
parents d9d5114598b0
children ab6b8c6c469c
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs"
4 VERSION="20120109"
5 CATEGORY="base-system"
6 SHORT_DESC="aufs3 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|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
12 BRANCH="origin/${PACKAGE}3.2"
13 COOK_OPT="!remove_src"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers git lzma"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
23 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
24 config.mk || return 1
25 sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
26 config.mk || return 1
27 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
28 config.mk || return 1
29 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
30 config.mk || return 1
31 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
32 config.mk || return 1
33 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
34 config.mk || return 1
35 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
36 config.mk || return 1
37 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
38 config.mk || return 1
39 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
40 config.mk || return 1
42 # The sed fixes are from gentoo portage build.
43 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
44 sed -i "s:__user::g" include/linux/aufs_type.h
45 make -j 1 KDIR=/usr/src/linux
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
52 BASEVER=${KERNEL_VERSION:0:3}
53 EXTRAVERSION=_$BASEVER
54 mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs
55 lzma e $src/fs/aufs/aufs.ko \
56 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.gz
57 chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.gz
58 chown 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.gz
59 install -D -m 644 $src/include/linux/aufs_type.h \
60 $fs/usr/include/linux/aufs_type.h
61 }
63 post_install()
64 {
65 echo "Processing post-install commands..."
66 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
67 }
69 post_remove()
70 {
71 echo "Processing post-remove commands..."
72 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
73 }