wok-undigest rev 1218

copied aufs receipt from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:05:24 2019 +0100 (2019-11-15)
parents 0b23d5f89212
children 8c041a0b4dc0
files aufs/description.txt aufs/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/aufs/description.txt	Fri Nov 15 17:05:24 2019 +0100
     1.3 @@ -0,0 +1,9 @@
     1.4 +# Aufs (Advanced multi layered unification filesystem) support
     1.5 +
     1.6 +Aufs is a stackable unification filesystem such as Unionfs, which unifies
     1.7 +several directories and provides a merged single directory.
     1.8 +
     1.9 +In the early days, aufs was entirely re-designed and re-implemented Unionfs
    1.10 +Version 1.x series. Introducing many original ideas, approaches and
    1.11 +improvements, it becomes totally different from Unionfs while keeping the basic
    1.12 +features.
     2.1 --- a/aufs/receipt	Fri Nov 15 16:49:43 2019 +0100
     2.2 +++ b/aufs/receipt	Fri Nov 15 17:05:24 2019 +0100
     2.3 @@ -1,74 +1,58 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="aufs"
     2.8 -VERSION="20130311"
     2.9 +VERSION="4.14-20181119"
    2.10 +COMMIT="bd41c2e"
    2.11 +#EXTRAVERSION="_$kvers"
    2.12  CATEGORY="base-system"
    2.13 -SHORT_DESC="aufs3 kernel module"
    2.14 -MAINTAINER="slaxemulator@gmail.com"
    2.15 +SHORT_DESC="The Linux Kernel ${VERSION%-*} aufs module"
    2.16 +MAINTAINER="devel@slitaz.org"
    2.17  LICENSE="GPL2"
    2.18 -WEB_SITE="http://aufs.sf.net/"
    2.19 -PROVIDE="linux-aufs"
    2.20 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.21 -WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
    2.22 -BRANCH="origin/${PACKAGE}3.2"
    2.23 -COOK_OPT="!remove_src"
    2.24 +WEB_SITE="http://aufs.sourceforge.net/"
    2.25  
    2.26 -DEPENDS="linux"
    2.27 -BUILD_DEPENDS="linux-module-headers git xz"
    2.28 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.29 +WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$COMMIT.tar.gz"
    2.30  
    2.31 -# Rules to configure and make the package.
    2.32 -compile_rules()
    2.33 -{
    2.34 -	cd $src
    2.35 +BUILD_DEPENDS="linux-module-headers xz"
    2.36 +#SIBLINGS="linux64-aufs"
    2.37  
    2.38 -	sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    2.39 -		config.mk || return 1
    2.40 -	sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    2.41 -		config.mk || return 1
    2.42 -	sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    2.43 -		config.mk || return 1
    2.44 -	sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
    2.45 -		config.mk || return 1
    2.46 -	sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
    2.47 -		config.mk || return 1
    2.48 -	sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    2.49 -		config.mk || return 1
    2.50 -	sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
    2.51 -		config.mk || return 1
    2.52 -	sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    2.53 -		config.mk || return 1
    2.54 -	sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
    2.55 -		config.mk || return 1
    2.56 +# How to update:
    2.57 +# 1. Go to https://github.com/sfjro/aufs4-standalone/
    2.58 +# 2. Select "aufs4.14" for the Linux Kernel-4.14.x in the "Branch:" dropdown
    2.59 +# 3. Copy 7 hex digits after the "Latest commit": it's $COMMIT
    2.60 +# 4. Copy AUFS_VERSION value from the updated file include/uapi/linux/aufs_type.h
    2.61 +
    2.62 +COPY_std="@std @dev"
    2.63 +DEPENDS_std="linux"
    2.64 +PROVIDE_std="linux-aufs"
    2.65 +
    2.66 +compile_rules() {
    2.67 +	sed -i.orig \
    2.68 +		-e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    2.69 +		-e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    2.70 +		-e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    2.71 +		-e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
    2.72 +		-e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
    2.73 +		-e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    2.74 +		-e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
    2.75 +		-e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    2.76 +		-e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
    2.77 +
    2.78 +	case $ARCH in
    2.79 +		x86_64) inot64=" y";;
    2.80 +		*)      inot64="";;
    2.81 +	esac
    2.82 +	sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk
    2.83  
    2.84  	# The sed fixes are from gentoo portage build.
    2.85 -	sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    2.86 -	sed -i "s:__user::g" include/linux/aufs_type.h
    2.87 -	make -j 1 KDIR=/usr/src/linux
    2.88 +	sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    2.89 +	sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h
    2.90 +
    2.91 +	make -j1 KDIR=/usr/src/linux || return 1
    2.92  	xz -f fs/aufs/aufs.ko
    2.93 +
    2.94 +	install -Dm0644 fs/aufs/aufs.ko.xz \
    2.95 +		$install/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.xz
    2.96 +	install -Dm0644 include/uapi/linux/aufs_type.h \
    2.97 +		$install/usr/include/uapi/linux/aufs_type.h
    2.98  }
    2.99 -
   2.100 -# Rules to gen a SliTaz package suitable for Tazpkg.
   2.101 -genpkg_rules()
   2.102 -{
   2.103 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
   2.104 -	BASEVER=${KERNEL_VERSION:0:3}
   2.105 -	EXTRAVERSION=_$BASEVER
   2.106 -	mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs
   2.107 -	cp $src/fs/aufs/aufs.ko.xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/
   2.108 -	chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
   2.109 -	chmod 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
   2.110 -	install -D -m 644 $src/include/linux/aufs_type.h \
   2.111 -		$fs/usr/include/linux/aufs_type.h
   2.112 -}
   2.113 -
   2.114 -post_install()
   2.115 -{
   2.116 -	echo "Processing post-install commands..."
   2.117 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
   2.118 -}
   2.119 -
   2.120 -post_remove()
   2.121 -{
   2.122 -	echo "Processing post-remove commands..."
   2.123 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
   2.124 -}