wok-next annotate aufs/receipt @ rev 10087
Up: cairomm to 1.10.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 20 06:56:28 2011 +0000 (2011-05-20) |
parents | cbfb348cb173 |
children | 8dffd56b84f3 |
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@9699 | 41 #patch -Np1 -i $stuff/aufs2-module-2.6.36.patch |
slaxemulator@7297 | 42 #make KDIR=/usr/src/linux clean |
slaxemulator@8143 | 43 # build, sed fixes are from gentoo portage build |
slaxemulator@8143 | 44 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
slaxemulator@8143 | 45 sed -i "s:__user::g" include/linux/aufs_type.h |
slaxemulator@8085 | 46 make -j 1 KDIR=/usr/src/linux |
slaxemulator@7297 | 47 } |
slaxemulator@7297 | 48 |
slaxemulator@7297 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7297 | 50 genpkg_rules() |
slaxemulator@7297 | 51 { |
slaxemulator@7297 | 52 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
slaxemulator@7297 | 53 EXTRAVERSION=_$KERNEL_VERSION |
slaxemulator@7297 | 54 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs |
slaxemulator@7297 | 55 lzma e $src/fs/aufs/aufs.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz |
slaxemulator@7297 | 56 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz |
slaxemulator@7297 | 57 chown 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz |
slaxemulator@8143 | 58 install -D -m 644 $src/include/linux/aufs_type.h $fs/usr/include/linux/aufs_type.h |
slaxemulator@8143 | 59 |
slaxemulator@7297 | 60 } |
slaxemulator@7297 | 61 |
slaxemulator@7297 | 62 post_install() |
slaxemulator@7297 | 63 { |
slaxemulator@7297 | 64 echo "Processing post-install commands..." |
slaxemulator@7297 | 65 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@7297 | 66 } |
slaxemulator@7297 | 67 |
slaxemulator@7297 | 68 post_remove() |
slaxemulator@7297 | 69 { |
slaxemulator@7297 | 70 echo "Processing post-remove commands..." |
slaxemulator@8245 | 71 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@8085 | 72 } |