wok-next view aufs/receipt @ rev 20705
busybox-slish: improve packaging
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 26 15:26:30 2018 +0300 (2018-05-26) |
parents | 3ae7a9a4ea36 |
children | 99d51a8e04a8 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="aufs"
4 VERSION="a9aa303" # AUFS_VERSION 4.14-20171216
5 EXTRAVERSION="_$kvers"
6 CATEGORY="base-system"
7 SHORT_DESC="The Linux Kernel 4.14 aufs module"
8 MAINTAINER="godane@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://aufs.sourceforge.net/"
11 HOST_ARCH="i486 x86_64"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$VERSION.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 $VERSION
24 compile_rules() {
25 sed -i.orig \
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_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
36 case $ARCH in
37 x86_64) inot64=" y";;
38 *) inot64="";;
39 esac
40 sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk
42 # The sed fixes are from gentoo portage build.
43 sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
44 sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h
46 make -j 1 KDIR=/usr/src/linux || return 1
47 xz -f fs/aufs/aufs.ko
49 mkdir -p $install/lib/modules/${kvers}-slitaz/kernel/fs/aufs
50 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
51 $install/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
52 install -D -o root -m 0644 $src/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 }