wok-6.x view linux64-aufs/receipt @ rev 18250
Up tazpanel (516)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 02 20:30:04 2015 +0200 (2015-08-02) |
parents | 787074b4d567 |
children | 4184d3fe3f1b |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-aufs"
4 SOURCE="aufs"
5 VERSION="20130311"
6 CATEGORY="base-system"
7 SHORT_DESC="aufs3 kernel module"
8 MAINTAINER="godane@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://aufs.sf.net/"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
13 BRANCH="origin/${PACKAGE}3.2"
15 DEPENDS="linux64"
16 BUILD_DEPENDS="linux64-module-headers git xz uclibc-cross-compiler-x86_64"
18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed -i \
24 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
25 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
26 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
27 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
28 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
29 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
30 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
31 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
32 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \
33 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
35 # The sed fixes are from gentoo portage build.
36 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
37 sed -i "s:__user::g" include/linux/aufs_type.h
38 make -j 1 KDIR=/usr/src/linux
39 xz -f fs/aufs/aufs.ko
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 EXTRAVERSION=_${kvers}
46 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs
47 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
48 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz
49 install -D -o root -m 0644 $src/include/linux/aufs_type.h \
50 $fs/usr/include/linux/aufs_type.h
51 }
53 # Post install/remove commands for Tazpkg.
54 post_install()
55 {
56 echo "Processing post-install commands..."
57 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
58 }
60 post_remove()
61 {
62 echo "Processing post-remove commands..."
63 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
64 }