wok-next view linux64-aufs/receipt @ rev 19583
Up: cookutils, tazpkg, aufs, kmod, lguest, linux, linux64.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 02 07:42:47 2017 +0200 (2017-01-02) |
parents | 6fab3264ba87 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-aufs"
4 VERSION="0d8e71c"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Kernel 4.9 aufs module"
7 MAINTAINER="godane@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://aufs.sourceforge.net/"
10 PROVIDE="aufs:linux64"
12 TARBALL="aufs-$VERSION.tar.gz"
13 WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$VERSION.tar.gz"
15 DEPENDS="linux64"
16 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
17 SIBLINGS="aufs"
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 cp config.mk config.mk.orig
25 sed -i \
26 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
27 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
28 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
29 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
30 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
31 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
32 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
33 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
34 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \
35 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
37 # The sed fixes are from gentoo portage build.
38 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
39 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
41 make -j 1 KDIR=/usr/src/linux
42 xz -f fs/aufs/aufs.ko
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 EXTRAVERSION=_${kvers}
49 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs
50 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
51 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz
52 install -D -o root -m 0644 $src/include/linux/aufs_type.h \
53 $fs/usr/include/linux/aufs_type.h
54 }