wok-next view aufs/receipt @ rev 21028

jwm: typo (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 03 04:54:12 2018 +0200 (2018-11-03)
parents 99d51a8e04a8
children 1f4b1992db1f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="aufs"
4 VERSION="4.17-20180716"
5 COMMIT="076999e"
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.17" for the Linux Kernel-4.17.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 compile_rules() {
26 sed -i.orig \
27 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
28 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
29 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
30 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
31 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
32 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
33 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
34 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
35 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
37 case $ARCH in
38 x86_64) inot64=" y";;
39 *) inot64="";;
40 esac
41 sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk
43 # The sed fixes are from gentoo portage build.
44 sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
45 sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h
47 make -j1 KDIR=/usr/src/linux || return 1
48 xz -f fs/aufs/aufs.ko
50 install -Dm0644 fs/aufs/aufs.ko.xz \
51 $install/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.xz
52 install -Dm0644 include/uapi/linux/aufs_type.h \
53 $install/usr/include/uapi/linux/aufs_type.h
54 }
56 genpkg_rules() {
57 copy @std @dev
58 DEPENDS="linux"
59 PROVIDE="linux-aufs"
60 }