wok view aufs/receipt @ rev 15735

guile: tiny edits
author Dominique Corbex <domcox@slitaz.org>
date Wed Jan 01 20:44:08 2014 +0100 (2014-01-01)
parents 61fbcd577996
children db5b03f42dd9
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 xz -f fs/aufs/aufs.ko
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
54 BASEVER=${KERNEL_VERSION:0:3}
55 EXTRAVERSION=_$BASEVER
56 mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs
57 cp $src/fs/aufs/aufs.ko.xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/
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 }