wok-6.x view aufs/receipt @ rev 11585
gecko-mediaplayer: hack compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 08 17:32:11 2012 +0100 (2012-01-08) |
parents | 8dffd56b84f3 |
children | 6f536abe4f0b |
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 # The sed fixes are from gentoo portage build.
42 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
43 sed -i "s:__user::g" include/linux/aufs_type.h
44 make -j 1 KDIR=/usr/src/linux
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 EXTRAVERSION=_${kvers}
51 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs
52 lzma e $src/fs/aufs/aufs.ko \
53 $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
54 chown root $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
55 chown 0644 $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
56 install -D -m 644 $src/include/linux/aufs_type.h \
57 $fs/usr/include/linux/aufs_type.h
58 }
60 post_install()
61 {
62 echo "Processing post-install commands..."
63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
64 }
66 post_remove()
67 {
68 echo "Processing post-remove commands..."
69 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
70 }