wok rev 20200

aufs: move kernel module to linux*-aufs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 12 17:29:20 2018 +0100 (2018-02-12)
parents 67a7322e0150
children b9679b3a0de2
files aufs/receipt linux-aufs/receipt linux64-aufs/receipt
line diff
     1.1 --- a/aufs/receipt	Mon Feb 12 16:48:35 2018 +0100
     1.2 +++ b/aufs/receipt	Mon Feb 12 17:29:20 2018 +0100
     1.3 @@ -7,58 +7,13 @@
     1.4  MAINTAINER="godane@slitaz.org"
     1.5  LICENSE="GPL2"
     1.6  WEB_SITE="http://aufs.sf.net/"
     1.7 -PROVIDE="linux-aufs"
     1.8 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.9 -WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
    1.10 -BRANCH="origin/${PACKAGE}3.2"
    1.11  
    1.12 -DEPENDS="linux"
    1.13 +DEPENDS="linux-aufs"
    1.14  BUILD_DEPENDS="linux-module-headers git xz"
    1.15  
    1.16 -# Rules to configure and make the package.
    1.17 -compile_rules()
    1.18 -{
    1.19 -	sed -i \
    1.20 -		-e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    1.21 -		-e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    1.22 -		-e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    1.23 -		-e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
    1.24 -		-e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
    1.25 -		-e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    1.26 -		-e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
    1.27 -		-e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    1.28 -		-e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
    1.29 -		
    1.30 -	# The sed fixes are from gentoo portage build.
    1.31 -	sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    1.32 -	sed -i "s:__user::g" include/linux/aufs_type.h
    1.33 -	
    1.34 -	# Linux 3.2.71 support
    1.35 -	sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
    1.36 -	sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
    1.37 -	
    1.38 -	make -j 1 KDIR=/usr/src/linux
    1.39 -	xz -f fs/aufs/aufs.ko
    1.40 -}
    1.41 -
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43  genpkg_rules()
    1.44  {
    1.45 -	EXTRAVERSION=_${kvers}
    1.46 -	mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs
    1.47 -	install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
    1.48 -		$fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
    1.49  	install -D -o root -m 0644 $src/include/linux/aufs_type.h \
    1.50  		$fs/usr/include/linux/aufs_type.h
    1.51  }
    1.52 -
    1.53 -# Post install/remove commands for Tazpkg.
    1.54 -post_install()
    1.55 -{
    1.56 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.57 -}
    1.58 -
    1.59 -post_remove()
    1.60 -{
    1.61 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.62 -}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/linux-aufs/receipt	Mon Feb 12 17:29:20 2018 +0100
     2.3 @@ -0,0 +1,62 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="linux-aufs"
     2.7 +SOURCE="aufs"
     2.8 +VERSION="20130311"
     2.9 +CATEGORY="base-system"
    2.10 +SHORT_DESC="aufs3 kernel module"
    2.11 +MAINTAINER="godane@slitaz.org"
    2.12 +LICENSE="GPL2"
    2.13 +WEB_SITE="http://aufs.sf.net/"
    2.14 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    2.15 +WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
    2.16 +BRANCH="origin/${PACKAGE}3.2"
    2.17 +
    2.18 +DEPENDS="linux"
    2.19 +BUILD_DEPENDS="linux-module-headers git xz"
    2.20 +
    2.21 +# Rules to configure and make the package.
    2.22 +compile_rules()
    2.23 +{
    2.24 +	sed -i \
    2.25 +		-e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    2.26 +		-e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    2.27 +		-e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    2.28 +		-e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
    2.29 +		-e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
    2.30 +		-e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    2.31 +		-e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
    2.32 +		-e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    2.33 +		-e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
    2.34 +
    2.35 +	# The sed fixes are from gentoo portage build.
    2.36 +	sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    2.37 +	sed -i "s:__user::g" include/linux/aufs_type.h
    2.38 +
    2.39 +	# Linux 3.2.71 support
    2.40 +	sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
    2.41 +	sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
    2.42 +
    2.43 +	make -j 1 KDIR=/usr/src/linux
    2.44 +	xz -f fs/aufs/aufs.ko
    2.45 +}
    2.46 +
    2.47 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.48 +genpkg_rules()
    2.49 +{
    2.50 +	EXTRAVERSION=_${kvers}
    2.51 +	mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs
    2.52 +	install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
    2.53 +		$fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
    2.54 +}
    2.55 +
    2.56 +# Post install/remove commands for Tazpkg.
    2.57 +post_install()
    2.58 +{
    2.59 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.60 +}
    2.61 +
    2.62 +post_remove()
    2.63 +{
    2.64 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.65 +}
     3.1 --- a/linux64-aufs/receipt	Mon Feb 12 16:48:35 2018 +0100
     3.2 +++ b/linux64-aufs/receipt	Mon Feb 12 17:29:20 2018 +0100
     3.3 @@ -11,7 +11,7 @@
     3.4  TARBALL="$SOURCE-$VERSION.tar.bz2"
     3.5  WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
     3.6  BRANCH="origin/${PACKAGE}3.2"
     3.7 -PROVIDE="aufs:linux64"
     3.8 +PROVIDE="linux-aufs:linux64"
     3.9  
    3.10  DEPENDS="linux64"
    3.11  BUILD_DEPENDS="linux64-module-headers git xz uclibc-cross-compiler-x86_64"
    3.12 @@ -52,17 +52,15 @@
    3.13  	mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs
    3.14  	install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
    3.15  		$fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz
    3.16 -	install -D -o root -m 0644 $src/include/linux/aufs_type.h \
    3.17 -		$fs/usr/include/linux/aufs_type.h
    3.18  }
    3.19  
    3.20  # Post install/remove commands for Tazpkg.
    3.21  post_install()
    3.22  {
    3.23 -	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
    3.24 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    3.25  }
    3.26  
    3.27  post_remove()
    3.28  {
    3.29 -	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
    3.30 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    3.31  }