wok-next view aufs/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents 119e586fb823
children cf03631202da
line source
1 # SliTaz package receipt.
3 PACKAGE="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="linux-aufs"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$VERSION.tar.gz"
15 DEPENDS="linux"
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.9" for the Linux Kernel-4.9.x in the "Branch:" dropdown
22 # 3. Copy 7 hex digits after the "Latest commit": it's $VERSION
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cp config.mk config.mk.orig
28 sed -i \
29 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
30 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
31 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
32 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
33 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
34 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
35 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
36 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
37 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
39 # The sed fixes are from gentoo portage build.
40 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
41 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
43 make -j 1 KDIR=/usr/src/linux
44 xz -f fs/aufs/aufs.ko
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 EXTRAVERSION=_${kvers}
51 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs
52 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
53 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
54 install -D -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
55 $fs/usr/include/uapi/linux/aufs_type.h
56 }