wok-6.x annotate aufs/receipt @ rev 11660

Add; xfe-extras
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Feb 12 22:40:38 2012 +0100 (2012-02-12)
parents 8dffd56b84f3
children 6f536abe4f0b
rev   line source
slaxemulator@7297 1 # SliTaz package receipt.
slaxemulator@7297 2
slaxemulator@7297 3 PACKAGE="aufs"
gokhlayeh@8584 4 VERSION="20110214"
slaxemulator@7297 5 CATEGORY="base-system"
slaxemulator@7297 6 SHORT_DESC="aufs2 kernel module"
slaxemulator@7297 7 MAINTAINER="slaxemulator@gmail.com"
pankso@9730 8 WEB_SITE="http://aufs.sf.net/"
pankso@9730 9 PROVIDE="linux-aufs"
pankso@9730 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@9730 11 WGET_URL="git|http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git"
pankso@9730 12 BRANCH="origin/${PACKAGE}2.1-37"
pankso@9730 13
slaxemulator@7297 14 DEPENDS="linux"
pascal@8125 15 BUILD_DEPENDS="linux-module-headers git lzma"
slaxemulator@7297 16
slaxemulator@7297 17 # Rules to configure and make the package.
slaxemulator@7297 18 compile_rules()
slaxemulator@7297 19 {
slaxemulator@7297 20 cd $src
slaxemulator@7297 21
slaxemulator@7297 22 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
slaxemulator@7297 23 config.mk || return 1
slaxemulator@9559 24 sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
slaxemulator@7297 25 config.mk || return 1
slaxemulator@7297 26 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
slaxemulator@7297 27 config.mk || return 1
slaxemulator@7297 28 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
slaxemulator@7297 29 config.mk || return 1
slaxemulator@7297 30 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
slaxemulator@7297 31 config.mk || return 1
slaxemulator@7297 32 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
slaxemulator@7297 33 config.mk || return 1
slaxemulator@7297 34 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
slaxemulator@7297 35 config.mk || return 1
slaxemulator@7297 36 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
slaxemulator@7297 37 config.mk || return 1
slaxemulator@7297 38 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
slaxemulator@7297 39 config.mk || return 1
slaxemulator@7297 40
pankso@10669 41 # The 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 {
pankso@10669 50 EXTRAVERSION=_${kvers}
pankso@10669 51 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs
pankso@10669 52 lzma e $src/fs/aufs/aufs.ko \
pankso@10669 53 $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
pankso@10669 54 chown root $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
pankso@10669 55 chown 0644 $fs/lib/modules/$kvers-slitaz/kernel/fs/aufs/aufs.ko.gz
pankso@10669 56 install -D -m 644 $src/include/linux/aufs_type.h \
pankso@10669 57 $fs/usr/include/linux/aufs_type.h
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 }