wok-next rev 17374

Add linux64-aufs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 21 15:31:47 2014 +0100 (2014-11-21)
parents d963cb47d215
children 787074b4d567
files linux64-aufs/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux64-aufs/receipt	Fri Nov 21 15:31:47 2014 +0100
     1.3 @@ -0,0 +1,60 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux64-aufs"
     1.7 +VERSION="20130311"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="aufs3 kernel module"
    1.10 +MAINTAINER="godane@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="http://aufs.sf.net/"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
    1.15 +BRANCH="origin/${PACKAGE}3.2"
    1.16 +
    1.17 +DEPENDS="linux64"
    1.18 +BUILD_DEPENDS="linux64-module-headers git xz"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	sed -i \
    1.24 +		-e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
    1.25 +		-e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
    1.26 +		-e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
    1.27 +		-e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
    1.28 +		-e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
    1.29 +		-e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
    1.30 +		-e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
    1.31 +		-e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
    1.32 +		-e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
    1.33 +		
    1.34 +	# The sed fixes are from gentoo portage build.
    1.35 +	sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
    1.36 +	sed -i "s:__user::g" include/linux/aufs_type.h
    1.37 +	make -j 1 KDIR=/usr/src/linux
    1.38 +	xz -f fs/aufs/aufs.ko
    1.39 +}
    1.40 +
    1.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 +genpkg_rules()
    1.43 +{
    1.44 +	EXTRAVERSION=_${kvers}
    1.45 +	mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs
    1.46 +	install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
    1.47 +		$fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz
    1.48 +	install -D -o root -m 0644 $src/include/linux/aufs_type.h \
    1.49 +		$fs/usr/include/linux/aufs_type.h
    1.50 +}
    1.51 +
    1.52 +# Post install/remove commands for Tazpkg.
    1.53 +post_install()
    1.54 +{
    1.55 +	echo "Processing post-install commands..."
    1.56 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
    1.57 +}
    1.58 +
    1.59 +post_remove()
    1.60 +{
    1.61 +	echo "Processing post-remove commands..."
    1.62 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
    1.63 +}