wok view aufs/receipt @ rev 8085

Up: linux to 2.6.37. Up: aufs to 20110122.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Jan 22 01:56:16 2011 +0000 (2011-01-22)
parents 5e64ecd01686
children 026c4d1f88ba
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs"
4 VERSION="20110122"
5 CATEGORY="base-system"
6 SHORT_DESC="aufs2 kernel module"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="linux"
9 # Needed for tazdev purge to not purge source everytime
10 TARBALL="$PACKAGE-$VERSION.tar.lzma"
11 BUILD_DEPENDS="linux-module-headers git tar"
12 WEB_SITE="http://aufs.sf.net/"
13 PROVIDE="linux-aufs"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 local AUFSDIR="$PACKAGE-$VERSION"
19 TARBALL=$SOURCES_REPOSITORY/$AUFSDIR.tar.lzma
20 [ -L /bin/tar ] && tazpkg get-install tar --forced
21 if [ -f $TARBALL ]; then
22 tar -x -f $TARBALL
23 cd $AUFSDIR && git checkout origin/aufs2.1-37
24 else
25 # Aufs2 from git repository
26 git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs2-standalone.git $AUFSDIR
27 tar -c --lzma -f $TARBALL $AUFSDIR
28 cd $AUFSDIR && git checkout origin/aufs2.1-37
29 fi
30 cd $src
32 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
33 config.mk || return 1
34 sed -i 's|CONFIG_AUFS_BRANCH_MAX_1023 =.*|CONFIG_AUFS_BRANCH_MAX_1023 = y|' \
35 config.mk || return 1
36 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
37 config.mk || return 1
38 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
39 config.mk || return 1
40 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
41 config.mk || return 1
42 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
43 config.mk || return 1
44 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
45 config.mk || return 1
46 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
47 config.mk || return 1
48 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
49 config.mk || return 1
51 #patch -Np1 -i ../stuff/aufs2-module-2.6.36.patch
52 #make KDIR=/usr/src/linux clean
53 make -j 1 KDIR=/usr/src/linux
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
60 EXTRAVERSION=_$KERNEL_VERSION
61 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs
62 lzma e $src/fs/aufs/aufs.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
63 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
64 chown 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
65 }
67 post_install()
68 {
69 echo "Processing post-install commands..."
70 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
71 }
73 post_remove()
74 {
75 echo "Processing post-remove commands..."
76 depmod -a
77 }