wok-next annotate aufs/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 99d51a8e04a8 |
children | 1f4b1992db1f |
rev | line source |
---|---|
al@20437 | 1 # SliTaz package receipt v2. |
slaxemulator@7297 | 2 |
slaxemulator@7297 | 3 PACKAGE="aufs" |
al@20892 | 4 VERSION="4.17-20180716" |
al@20892 | 5 COMMIT="076999e" |
al@20251 | 6 EXTRAVERSION="_$kvers" |
slaxemulator@7297 | 7 CATEGORY="base-system" |
al@20892 | 8 SHORT_DESC="The Linux Kernel ${VERSION%-*} aufs module" |
al@21020 | 9 MAINTAINER="devel@slitaz.org" |
pascal@15002 | 10 LICENSE="GPL2" |
al@19583 | 11 WEB_SITE="http://aufs.sourceforge.net/" |
al@19583 | 12 |
al@19583 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20892 | 14 WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$COMMIT.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@20892 | 21 # 2. Select "aufs4.17" for the Linux Kernel-4.17.x in the "Branch:" dropdown |
al@20892 | 22 # 3. Copy 7 hex digits after the "Latest commit": it's $COMMIT |
al@20892 | 23 # 4. Copy AUFS_VERSION value from the updated file include/uapi/linux/aufs_type.h |
al@19595 | 24 |
al@20437 | 25 compile_rules() { |
al@20437 | 26 sed -i.orig \ |
pascal@15865 | 27 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pankso@15855 | 28 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pankso@15855 | 29 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pankso@15855 | 30 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pankso@15855 | 31 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pankso@15855 | 32 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pankso@15855 | 33 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pankso@15855 | 34 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pankso@15855 | 35 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
al@19583 | 36 |
al@20437 | 37 case $ARCH in |
al@20437 | 38 x86_64) inot64=" y";; |
al@20437 | 39 *) inot64="";; |
al@20437 | 40 esac |
al@20437 | 41 sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk |
al@20437 | 42 |
pankso@10669 | 43 # The sed fixes are from gentoo portage build. |
al@20437 | 44 sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
al@20437 | 45 sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h |
al@19583 | 46 |
al@21020 | 47 make -j1 KDIR=/usr/src/linux || return 1 |
pascal@15638 | 48 xz -f fs/aufs/aufs.ko |
al@20423 | 49 |
al@20892 | 50 install -Dm0644 fs/aufs/aufs.ko.xz \ |
al@21020 | 51 $install/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.xz |
al@20892 | 52 install -Dm0644 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 } |