wok-next diff aufs/receipt @ rev 20496

Packages with tag "Xfce": fix (b)deps
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 14 17:14:32 2018 +0200 (2018-03-14)
parents 3ae7a9a4ea36
children 99d51a8e04a8
line diff
     1.1 --- a/aufs/receipt	Fri Jan 12 15:30:38 2018 +0200
     1.2 +++ b/aufs/receipt	Wed Mar 14 17:14:32 2018 +0200
     1.3 @@ -1,32 +1,28 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="aufs"
     1.8 -VERSION="57e03f4"	# AUFS_VERSION 4.9-20171218
     1.9 +VERSION="a9aa303"	# AUFS_VERSION 4.14-20171216
    1.10  EXTRAVERSION="_$kvers"
    1.11  CATEGORY="base-system"
    1.12 -SHORT_DESC="The Linux Kernel 4.9 aufs module"
    1.13 +SHORT_DESC="The Linux Kernel 4.14 aufs module"
    1.14  MAINTAINER="godane@slitaz.org"
    1.15  LICENSE="GPL2"
    1.16  WEB_SITE="http://aufs.sourceforge.net/"
    1.17 -PROVIDE="linux-aufs"
    1.18 +HOST_ARCH="i486 x86_64"
    1.19  
    1.20  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.21  WGET_URL="https://github.com/sfjro/aufs4-standalone/archive/$VERSION.tar.gz"
    1.22  
    1.23 -DEPENDS="linux"
    1.24  BUILD_DEPENDS="linux-module-headers xz"
    1.25  SIBLINGS="linux64-aufs"
    1.26  
    1.27  # How to update:
    1.28  # 1. Go to https://github.com/sfjro/aufs4-standalone/
    1.29 -# 2. Select "aufs4.9" for the Linux Kernel-4.9.x in the "Branch:" dropdown
    1.30 +# 2. Select "aufs4.14" for the Linux Kernel-4.14.x in the "Branch:" dropdown
    1.31  # 3. Copy 7 hex digits after the "Latest commit": it's $VERSION
    1.32  
    1.33 -# Rules to configure and make the package.
    1.34 -compile_rules()
    1.35 -{
    1.36 -	cp config.mk config.mk.orig
    1.37 -	sed -i \
    1.38 +compile_rules() {
    1.39 +	sed -i.orig \
    1.40  		-e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    1.41  		-e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    1.42  		-e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    1.43 @@ -37,11 +33,17 @@
    1.44  		-e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    1.45  		-e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
    1.46  
    1.47 +	case $ARCH in
    1.48 +		x86_64) inot64=" y";;
    1.49 +		*)      inot64="";;
    1.50 +	esac
    1.51 +	sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =$inot64|" config.mk
    1.52 +
    1.53  	# The sed fixes are from gentoo portage build.
    1.54 -	sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    1.55 -	sed -i "s:__user::g" include/uapi/linux/aufs_type.h
    1.56 +	sed -i.orig "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    1.57 +	sed -i.orig "s:__user::g" include/uapi/linux/aufs_type.h
    1.58  
    1.59 -	make -j 1 KDIR=/usr/src/linux
    1.60 +	make -j 1 KDIR=/usr/src/linux || return 1
    1.61  	xz -f fs/aufs/aufs.ko
    1.62  
    1.63  	mkdir -p $install/lib/modules/${kvers}-slitaz/kernel/fs/aufs
    1.64 @@ -51,8 +53,8 @@
    1.65  		$install/usr/include/uapi/linux/aufs_type.h
    1.66  }
    1.67  
    1.68 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.69 -genpkg_rules()
    1.70 -{
    1.71 +genpkg_rules() {
    1.72  	copy @std @dev
    1.73 +	DEPENDS="linux"
    1.74 +	PROVIDE="linux-aufs"
    1.75  }