wok-next view aufs/receipt @ rev 20423

Up aufs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 12 15:30:38 2018 +0200 (2018-01-12)
parents d247e85339a4
children efd5fe5db61e
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs"
4 VERSION="57e03f4" # AUFS_VERSION 4.9-20171218
5 EXTRAVERSION="_$kvers"
6 CATEGORY="base-system"
7 SHORT_DESC="The Linux Kernel 4.9 aufs module"
8 MAINTAINER="godane@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://aufs.sourceforge.net/"
11 PROVIDE="linux-aufs"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$VERSION.tar.gz"
16 DEPENDS="linux"
17 BUILD_DEPENDS="linux-module-headers xz"
18 SIBLINGS="linux64-aufs"
20 # How to update:
21 # 1. Go to https://github.com/sfjro/aufs4-standalone/
22 # 2. Select "aufs4.9" for the Linux Kernel-4.9.x in the "Branch:" dropdown
23 # 3. Copy 7 hex digits after the "Latest commit": it's $VERSION
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cp config.mk config.mk.orig
29 sed -i \
30 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
31 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
32 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
33 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
34 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
35 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
36 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
37 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
38 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
40 # The sed fixes are from gentoo portage build.
41 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
42 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
44 make -j 1 KDIR=/usr/src/linux
45 xz -f fs/aufs/aufs.ko
47 mkdir -p $install/lib/modules/${kvers}-slitaz/kernel/fs/aufs
48 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
49 $install/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
50 install -D -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
51 $install/usr/include/uapi/linux/aufs_type.h
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 copy @std @dev
58 }