# HG changeset patch # User Hans-G?nter Theisgen # Date 1573833924 -3600 # Node ID 4da314d995aefe218b6ae00f1a0556789a927466 # Parent 0b23d5f89212dddcf2c0de80fe93c4b29f70056e copied aufs receipt from wok-next diff -r 0b23d5f89212 -r 4da314d995ae aufs/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aufs/description.txt Fri Nov 15 17:05:24 2019 +0100 @@ -0,0 +1,9 @@ +# Aufs (Advanced multi layered unification filesystem) support + +Aufs is a stackable unification filesystem such as Unionfs, which unifies +several directories and provides a merged single directory. + +In the early days, aufs was entirely re-designed and re-implemented Unionfs +Version 1.x series. Introducing many original ideas, approaches and +improvements, it becomes totally different from Unionfs while keeping the basic +features. diff -r 0b23d5f89212 -r 4da314d995ae aufs/receipt --- a/aufs/receipt Fri Nov 15 16:49:43 2019 +0100 +++ b/aufs/receipt Fri Nov 15 17:05:24 2019 +0100 @@ -1,74 +1,58 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="aufs" -VERSION="20130311" +VERSION="4.14-20181119" +COMMIT="bd41c2e" +#EXTRAVERSION="_$kvers" CATEGORY="base-system" -SHORT_DESC="aufs3 kernel module" -MAINTAINER="slaxemulator@gmail.com" +SHORT_DESC="The Linux Kernel ${VERSION%-*} aufs module" +MAINTAINER="devel@slitaz.org" LICENSE="GPL2" -WEB_SITE="http://aufs.sf.net/" -PROVIDE="linux-aufs" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" -BRANCH="origin/${PACKAGE}3.2" -COOK_OPT="!remove_src" +WEB_SITE="http://aufs.sourceforge.net/" -DEPENDS="linux" -BUILD_DEPENDS="linux-module-headers git xz" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$COMMIT.tar.gz" -# Rules to configure and make the package. -compile_rules() -{ - cd $src +BUILD_DEPENDS="linux-module-headers xz" +#SIBLINGS="linux64-aufs" - sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ - config.mk || return 1 - sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ - config.mk || return 1 - sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ - config.mk || return 1 - sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ - config.mk || return 1 - sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ - config.mk || return 1 - sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ - config.mk || return 1 - sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ - config.mk || return 1 - sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ - config.mk || return 1 - sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \ - config.mk || return 1 +# How to update: +# 1. Go to https://github.com/sfjro/aufs4-standalone/ +# 2. Select "aufs4.14" for the Linux Kernel-4.14.x in the "Branch:" dropdown +# 3. Copy 7 hex digits after the "Latest commit": it's $COMMIT +# 4. Copy AUFS_VERSION value from the updated file include/uapi/linux/aufs_type.h + +COPY_std="@std @dev" +DEPENDS_std="linux" +PROVIDE_std="linux-aufs" + +compile_rules() { + sed -i.orig \ + -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ + -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ + -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ + -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ + -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ + -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ + -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ + -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ + -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk + + case $ARCH in + x86_64) inot64=" y";; + *) inot64="";; + esac + sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk # The sed fixes are from gentoo portage build. - sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile - sed -i "s:__user::g" include/linux/aufs_type.h - make -j 1 KDIR=/usr/src/linux + sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile + sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h + + make -j1 KDIR=/usr/src/linux || return 1 xz -f fs/aufs/aufs.ko + + install -Dm0644 fs/aufs/aufs.ko.xz \ + $install/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.xz + install -Dm0644 include/uapi/linux/aufs_type.h \ + $install/usr/include/uapi/linux/aufs_type.h } - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` - BASEVER=${KERNEL_VERSION:0:3} - EXTRAVERSION=_$BASEVER - mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs - cp $src/fs/aufs/aufs.ko.xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/ - chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz - chmod 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz - install -D -m 644 $src/include/linux/aufs_type.h \ - $fs/usr/include/linux/aufs_type.h -} - -post_install() -{ - echo "Processing post-install commands..." - chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz -} - -post_remove() -{ - echo "Processing post-remove commands..." - chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz -}