# HG changeset patch # User Pascal Bellard # Date 1416580307 -3600 # Node ID ffd943c12a7f64ba68572bfd7a89b909c7af2de3 # Parent d963cb47d21561daa5ec1ca02733417fe1ad02f8 Add linux64-aufs diff -r d963cb47d215 -r ffd943c12a7f linux64-aufs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux64-aufs/receipt Fri Nov 21 15:31:47 2014 +0100 @@ -0,0 +1,60 @@ +# SliTaz package receipt. + +PACKAGE="linux64-aufs" +VERSION="20130311" +CATEGORY="base-system" +SHORT_DESC="aufs3 kernel module" +MAINTAINER="godane@slitaz.org" +LICENSE="GPL2" +WEB_SITE="http://aufs.sf.net/" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" +BRANCH="origin/${PACKAGE}3.2" + +DEPENDS="linux64" +BUILD_DEPENDS="linux64-module-headers git xz" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i \ + -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ + -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ + -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ + -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ + -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ + -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ + -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ + -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ + -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk + + # The sed fixes are from gentoo portage build. + sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile + sed -i "s:__user::g" include/linux/aufs_type.h + make -j 1 KDIR=/usr/src/linux + xz -f fs/aufs/aufs.ko +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + EXTRAVERSION=_${kvers} + mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs + install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ + $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz + install -D -o root -m 0644 $src/include/linux/aufs_type.h \ + $fs/usr/include/linux/aufs_type.h +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + echo "Processing post-install commands..." + chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64 +} + +post_remove() +{ + echo "Processing post-remove commands..." + chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64 +}