wok-next view aufs/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | d5aab818505e |
children | c9359e58850d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="aufs"
4 VERSION="4.14-20181119"
5 COMMIT="bd41c2e"
6 #EXTRAVERSION="_$kvers"
7 CATEGORY="base-system"
8 SHORT_DESC="The Linux Kernel ${VERSION%-*} aufs module"
9 MAINTAINER="devel@slitaz.org"
10 LICENSE="GPL2"
11 WEB_SITE="http://aufs.sourceforge.net/"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$COMMIT.tar.gz"
16 BUILD_DEPENDS="linux-module-headers xz"
17 #SIBLINGS="linux64-aufs"
19 # How to update:
20 # 1. Go to https://github.com/sfjro/aufs4-standalone/
21 # 2. Select "aufs4.14" for the Linux Kernel-4.14.x in the "Branch:" dropdown
22 # 3. Copy 7 hex digits after the "Latest commit": it's $COMMIT
23 # 4. Copy AUFS_VERSION value from the updated file include/uapi/linux/aufs_type.h
25 COPY_std="@std @dev"
26 DEPENDS_std="linux"
27 PROVIDE_std="linux-aufs"
29 compile_rules() {
30 sed -i.orig \
31 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
32 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
33 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
34 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
35 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
36 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
37 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
38 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
39 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
41 case $ARCH in
42 x86_64) inot64=" y";;
43 *) inot64="";;
44 esac
45 sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk
47 # The sed fixes are from gentoo portage build.
48 sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
49 sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h
51 make -j1 KDIR=/usr/src/linux || return 1
52 xz -f fs/aufs/aufs.ko
54 install -Dm0644 fs/aufs/aufs.ko.xz \
55 $install/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.xz
56 install -Dm0644 include/uapi/linux/aufs_type.h \
57 $install/usr/include/uapi/linux/aufs_type.h
58 }