wok-undigest diff aufs/receipt @ rev 1228

updated glib and glib-dev (2.43.3 -> 2.62.4)
author Hans-G?nter Theisgen
date Wed Sep 09 13:48:24 2020 +0100 (2020-09-09)
parents 11ecbb12d022
children
line diff
     1.1 --- a/aufs/receipt	Sat Dec 28 10:13:40 2013 +0100
     1.2 +++ b/aufs/receipt	Wed Sep 09 13:48:24 2020 +0100
     1.3 @@ -1,74 +1,58 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="aufs"
     1.8 -VERSION="20130311"
     1.9 +VERSION="4.14-20181119"
    1.10 +COMMIT="bd41c2e"
    1.11 +#EXTRAVERSION="_$kvers"
    1.12  CATEGORY="base-system"
    1.13 -SHORT_DESC="aufs3 kernel module"
    1.14 -MAINTAINER="slaxemulator@gmail.com"
    1.15 +SHORT_DESC="The Linux Kernel ${VERSION%-*} aufs module"
    1.16 +MAINTAINER="devel@slitaz.org"
    1.17  LICENSE="GPL2"
    1.18 -WEB_SITE="http://aufs.sf.net/"
    1.19 -PROVIDE="linux-aufs"
    1.20 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.21 -WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
    1.22 -BRANCH="origin/${PACKAGE}3.2"
    1.23 -COOK_OPT="!remove_src"
    1.24 +WEB_SITE="http://aufs.sourceforge.net/"
    1.25  
    1.26 -DEPENDS="linux"
    1.27 -BUILD_DEPENDS="linux-module-headers git xz"
    1.28 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.29 +WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$COMMIT.tar.gz"
    1.30  
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 -	cd $src
    1.35 +BUILD_DEPENDS="linux-module-headers xz"
    1.36 +#SIBLINGS="linux64-aufs"
    1.37  
    1.38 -	sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    1.39 -		config.mk || return 1
    1.40 -	sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    1.41 -		config.mk || return 1
    1.42 -	sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    1.43 -		config.mk || return 1
    1.44 -	sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
    1.45 -		config.mk || return 1
    1.46 -	sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
    1.47 -		config.mk || return 1
    1.48 -	sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    1.49 -		config.mk || return 1
    1.50 -	sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
    1.51 -		config.mk || return 1
    1.52 -	sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    1.53 -		config.mk || return 1
    1.54 -	sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
    1.55 -		config.mk || return 1
    1.56 +# How to update:
    1.57 +# 1. Go to https://github.com/sfjro/aufs4-standalone/
    1.58 +# 2. Select "aufs4.14" for the Linux Kernel-4.14.x in the "Branch:" dropdown
    1.59 +# 3. Copy 7 hex digits after the "Latest commit": it's $COMMIT
    1.60 +# 4. Copy AUFS_VERSION value from the updated file include/uapi/linux/aufs_type.h
    1.61 +
    1.62 +COPY_std="@std @dev"
    1.63 +DEPENDS_std="linux"
    1.64 +PROVIDE_std="linux-aufs"
    1.65 +
    1.66 +compile_rules() {
    1.67 +	sed -i.orig \
    1.68 +		-e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    1.69 +		-e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    1.70 +		-e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    1.71 +		-e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
    1.72 +		-e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
    1.73 +		-e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    1.74 +		-e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
    1.75 +		-e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    1.76 +		-e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
    1.77 +
    1.78 +	case $ARCH in
    1.79 +		x86_64) inot64=" y";;
    1.80 +		*)      inot64="";;
    1.81 +	esac
    1.82 +	sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk
    1.83  
    1.84  	# The sed fixes are from gentoo portage build.
    1.85 -	sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    1.86 -	sed -i "s:__user::g" include/linux/aufs_type.h
    1.87 -	make -j 1 KDIR=/usr/src/linux
    1.88 +	sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    1.89 +	sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h
    1.90 +
    1.91 +	make -j1 KDIR=/usr/src/linux || return 1
    1.92  	xz -f fs/aufs/aufs.ko
    1.93 +
    1.94 +	install -Dm0644 fs/aufs/aufs.ko.xz \
    1.95 +		$install/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.xz
    1.96 +	install -Dm0644 include/uapi/linux/aufs_type.h \
    1.97 +		$install/usr/include/uapi/linux/aufs_type.h
    1.98  }
    1.99 -
   1.100 -# Rules to gen a SliTaz package suitable for Tazpkg.
   1.101 -genpkg_rules()
   1.102 -{
   1.103 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
   1.104 -	BASEVER=${KERNEL_VERSION:0:3}
   1.105 -	EXTRAVERSION=_$BASEVER
   1.106 -	mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs
   1.107 -	cp $src/fs/aufs/aufs.ko.xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/
   1.108 -	chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
   1.109 -	chmod 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
   1.110 -	install -D -m 644 $src/include/linux/aufs_type.h \
   1.111 -		$fs/usr/include/linux/aufs_type.h
   1.112 -}
   1.113 -
   1.114 -post_install()
   1.115 -{
   1.116 -	echo "Processing post-install commands..."
   1.117 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
   1.118 -}
   1.119 -
   1.120 -post_remove()
   1.121 -{
   1.122 -	echo "Processing post-remove commands..."
   1.123 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
   1.124 -}