wok view aufs/receipt @ rev 15612
gettext: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 07 15:01:36 2013 +0000 (2013-12-07) |
parents | b67321452f56 |
children | 61fbcd577996 |
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs"
4 VERSION="20130311"
5 CATEGORY="base-system"
6 SHORT_DESC="aufs3 kernel module"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://aufs.sf.net/"
10 PROVIDE="linux-aufs"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
13 BRANCH="origin/${PACKAGE}3.2"
14 COOK_OPT="!remove_src"
16 DEPENDS="linux"
17 BUILD_DEPENDS="linux-module-headers git xz"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
24 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
25 config.mk || return 1
26 sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
27 config.mk || return 1
28 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
29 config.mk || return 1
30 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
31 config.mk || return 1
32 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
33 config.mk || return 1
34 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
35 config.mk || return 1
36 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
37 config.mk || return 1
38 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
39 config.mk || return 1
40 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
41 config.mk || return 1
43 # The 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 BASEVER=${KERNEL_VERSION:0:3}
54 EXTRAVERSION=_$BASEVER
55 mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs
56 cp $src/fs/aufs/aufs.ko $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/
57 xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko
58 chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
59 chmod 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
60 install -D -m 644 $src/include/linux/aufs_type.h \
61 $fs/usr/include/linux/aufs_type.h
62 }
64 post_install()
65 {
66 echo "Processing post-install commands..."
67 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
68 }
70 post_remove()
71 {
72 echo "Processing post-remove commands..."
73 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
74 }