wok-current annotate aufs/receipt @ rev 8547

imported patch get/dillo-hg
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 13 22:57:56 2011 +0100 (2011-02-13)
parents f924946538db
children 67231cfc5475
rev   line source
slaxemulator@7297 1 # SliTaz package receipt.
slaxemulator@7297 2
slaxemulator@7297 3 PACKAGE="aufs"
gokhlayeh@8545 4 VERSION="2.1-37"
slaxemulator@7297 5 CATEGORY="base-system"
slaxemulator@7297 6 SHORT_DESC="aufs2 kernel module"
slaxemulator@7297 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@7297 8 DEPENDS="linux"
pascal@8125 9 BUILD_DEPENDS="linux-module-headers git lzma"
slaxemulator@7297 10 WEB_SITE="http://aufs.sf.net/"
slaxemulator@7297 11 PROVIDE="linux-aufs"
gokhlayeh@8545 12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs2-standalone.git"
gokhlayeh@8545 13 BRANCH="origin/$PACKAGE$VERSION"
slaxemulator@7297 14
slaxemulator@7297 15 # Rules to configure and make the package.
slaxemulator@7297 16 compile_rules()
slaxemulator@7297 17 {
slaxemulator@7297 18 cd $src
slaxemulator@7297 19
slaxemulator@7297 20 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
slaxemulator@7297 21 config.mk || return 1
slaxemulator@7297 22 sed -i 's|CONFIG_AUFS_BRANCH_MAX_1023 =.*|CONFIG_AUFS_BRANCH_MAX_1023 = y|' \
slaxemulator@7297 23 config.mk || return 1
slaxemulator@7297 24 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
slaxemulator@7297 25 config.mk || return 1
slaxemulator@7297 26 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
slaxemulator@7297 27 config.mk || return 1
slaxemulator@7297 28 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
slaxemulator@7297 29 config.mk || return 1
slaxemulator@7297 30 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
slaxemulator@7297 31 config.mk || return 1
slaxemulator@7297 32 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
slaxemulator@7297 33 config.mk || return 1
slaxemulator@7297 34 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
slaxemulator@7297 35 config.mk || return 1
slaxemulator@7297 36 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
slaxemulator@7297 37 config.mk || return 1
slaxemulator@7297 38
slaxemulator@7651 39 #patch -Np1 -i ../stuff/aufs2-module-2.6.36.patch
slaxemulator@7297 40 #make KDIR=/usr/src/linux clean
slaxemulator@8143 41 # build, sed fixes are from gentoo portage build
slaxemulator@8143 42 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
slaxemulator@8143 43 sed -i "s:__user::g" include/linux/aufs_type.h
slaxemulator@8085 44 make -j 1 KDIR=/usr/src/linux
slaxemulator@7297 45 }
slaxemulator@7297 46
slaxemulator@7297 47 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7297 48 genpkg_rules()
slaxemulator@7297 49 {
slaxemulator@7297 50 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
slaxemulator@7297 51 EXTRAVERSION=_$KERNEL_VERSION
slaxemulator@7297 52 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs
slaxemulator@7297 53 lzma e $src/fs/aufs/aufs.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
slaxemulator@7297 54 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
slaxemulator@7297 55 chown 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz
slaxemulator@8143 56 install -D -m 644 $src/include/linux/aufs_type.h $fs/usr/include/linux/aufs_type.h
slaxemulator@8143 57
slaxemulator@7297 58 }
slaxemulator@7297 59
slaxemulator@7297 60 post_install()
slaxemulator@7297 61 {
slaxemulator@7297 62 echo "Processing post-install commands..."
slaxemulator@7297 63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
slaxemulator@7297 64 }
slaxemulator@7297 65
slaxemulator@7297 66 post_remove()
slaxemulator@7297 67 {
slaxemulator@7297 68 echo "Processing post-remove commands..."
slaxemulator@8245 69 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
slaxemulator@8085 70 }