wok-next annotate aufs/receipt @ rev 20766
childsplay: up (3.3); tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 04:36:32 2018 +0300 (2018-06-06) |
parents | 3ae7a9a4ea36 |
children | 99d51a8e04a8 |
rev | line source |
---|---|
al@20437 | 1 # SliTaz package receipt v2. |
slaxemulator@7297 | 2 |
slaxemulator@7297 | 3 PACKAGE="aufs" |
al@20437 | 4 VERSION="a9aa303" # AUFS_VERSION 4.14-20171216 |
al@20251 | 5 EXTRAVERSION="_$kvers" |
slaxemulator@7297 | 6 CATEGORY="base-system" |
al@20437 | 7 SHORT_DESC="The Linux Kernel 4.14 aufs module" |
pankso@15855 | 8 MAINTAINER="godane@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
al@19583 | 10 WEB_SITE="http://aufs.sourceforge.net/" |
al@20437 | 11 HOST_ARCH="i486 x86_64" |
al@19583 | 12 |
al@19583 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19583 | 14 WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$VERSION.tar.gz" |
pankso@9730 | 15 |
al@19583 | 16 BUILD_DEPENDS="linux-module-headers xz" |
al@19583 | 17 SIBLINGS="linux64-aufs" |
slaxemulator@7297 | 18 |
al@19595 | 19 # How to update: |
al@19595 | 20 # 1. Go to https://github.com/sfjro/aufs4-standalone/ |
al@20437 | 21 # 2. Select "aufs4.14" for the Linux Kernel-4.14.x in the "Branch:" dropdown |
al@19595 | 22 # 3. Copy 7 hex digits after the "Latest commit": it's $VERSION |
al@19595 | 23 |
al@20437 | 24 compile_rules() { |
al@20437 | 25 sed -i.orig \ |
pascal@15865 | 26 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pankso@15855 | 27 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pankso@15855 | 28 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pankso@15855 | 29 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pankso@15855 | 30 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pankso@15855 | 31 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pankso@15855 | 32 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pankso@15855 | 33 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pankso@15855 | 34 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
al@19583 | 35 |
al@20437 | 36 case $ARCH in |
al@20437 | 37 x86_64) inot64=" y";; |
al@20437 | 38 *) inot64="";; |
al@20437 | 39 esac |
al@20437 | 40 sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk |
al@20437 | 41 |
pankso@10669 | 42 # The sed fixes are from gentoo portage build. |
al@20437 | 43 sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
al@20437 | 44 sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h |
al@19583 | 45 |
al@20437 | 46 make -j 1 KDIR=/usr/src/linux || return 1 |
pascal@15638 | 47 xz -f fs/aufs/aufs.ko |
al@20423 | 48 |
al@20423 | 49 mkdir -p $install/lib/modules/${kvers}-slitaz/kernel/fs/aufs |
al@20423 | 50 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
al@20423 | 51 $install/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz |
al@20423 | 52 install -D -o root -m 0644 $src/include/uapi/linux/aufs_type.h \ |
al@20423 | 53 $install/usr/include/uapi/linux/aufs_type.h |
slaxemulator@7297 | 54 } |
slaxemulator@7297 | 55 |
al@20437 | 56 genpkg_rules() { |
al@20423 | 57 copy @std @dev |
al@20437 | 58 DEPENDS="linux" |
al@20437 | 59 PROVIDE="linux-aufs" |
slaxemulator@7297 | 60 } |