wok-current view linux64-aufs/receipt @ rev 20119

slitaz-base-files (333), slitaz-boot-scripts (445), slitaz-configs (313), slitaz-tools (1025), tazbug (152), tazinst (93), tazirc (22), tazlito (469), tazpanel (617), tazweb (208): revision of german messages
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 10:45:51 2017 +0200 (2017-10-14)
parents bf1acce7f66c
children 6d5dc1d4590e
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"
14 PROVIDE="aufs:linux64"
16 DEPENDS="linux64"
17 BUILD_DEPENDS="linux64-module-headers git xz uclibc-cross-compiler-x86_64"
19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i \
25 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
26 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
27 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
28 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
29 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
30 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
31 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
32 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
33 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \
34 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
36 # The sed fixes are from gentoo portage build.
37 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
38 sed -i "s:__user::g" include/linux/aufs_type.h
40 # Linux 3.2.71 support
41 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
42 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
44 make -j 1 KDIR=/usr/src/linux
45 xz -f fs/aufs/aufs.ko
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 EXTRAVERSION=_${kvers}
52 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs
53 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
54 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz
55 install -D -o root -m 0644 $src/include/linux/aufs_type.h \
56 $fs/usr/include/linux/aufs_type.h
57 }
59 # Post install/remove commands for Tazpkg.
60 post_install()
61 {
62 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
63 }
65 post_remove()
66 {
67 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
68 }