wok-6.x annotate aufs/receipt @ rev 8122
Fixed aufs and linux to use lzma-alone for compressing aufs.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Jan 24 01:08:20 2011 +0000 (2011-01-24) |
parents | 03d4663c81fa |
children | 531954b1170f |
rev | line source |
---|---|
slaxemulator@7297 | 1 # SliTaz package receipt. |
slaxemulator@7297 | 2 |
slaxemulator@7297 | 3 PACKAGE="aufs" |
slaxemulator@8122 | 4 VERSION="20110124" |
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" |
slaxemulator@8122 | 9 BUILD_DEPENDS="linux-module-headers git" |
slaxemulator@7297 | 10 WEB_SITE="http://aufs.sf.net/" |
slaxemulator@7297 | 11 PROVIDE="linux-aufs" |
slaxemulator@7297 | 12 |
slaxemulator@7297 | 13 # Rules to configure and make the package. |
slaxemulator@7297 | 14 compile_rules() |
slaxemulator@7297 | 15 { |
slaxemulator@7297 | 16 local AUFSDIR="$PACKAGE-$VERSION" |
slaxemulator@8085 | 17 TARBALL=$SOURCES_REPOSITORY/$AUFSDIR.tar.lzma |
slaxemulator@7297 | 18 if [ -f $TARBALL ]; then |
slaxemulator@8122 | 19 lzma-alone d $TARBALL $AUFSDIR.tar |
slaxemulator@8122 | 20 tar xf $AUFSDIR.tar |
slaxemulator@8122 | 21 if [ -f $AUFSDIR.tar ]; then |
slaxemulator@8122 | 22 rm -f $AUFSDIR.tar |
slaxemulator@8122 | 23 fi |
slaxemulator@8085 | 24 cd $AUFSDIR && git checkout origin/aufs2.1-37 |
slaxemulator@7297 | 25 else |
slaxemulator@7297 | 26 # Aufs2 from git repository |
slaxemulator@8085 | 27 git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs2-standalone.git $AUFSDIR |
slaxemulator@8122 | 28 tar cf $AUFSDIR.tar $AUFSDIR |
slaxemulator@8122 | 29 lzma-alone e $AUFSDIR.tar $TARBALL |
slaxemulator@8122 | 30 if [ -f $AUFSDIR.tar ]; then |
slaxemulator@8122 | 31 rm -f $AUFSDIR.tar |
slaxemulator@8122 | 32 fi |
slaxemulator@8085 | 33 cd $AUFSDIR && git checkout origin/aufs2.1-37 |
slaxemulator@7297 | 34 fi |
slaxemulator@7297 | 35 cd $src |
slaxemulator@7297 | 36 |
slaxemulator@7297 | 37 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
slaxemulator@7297 | 38 config.mk || return 1 |
slaxemulator@7297 | 39 sed -i 's|CONFIG_AUFS_BRANCH_MAX_1023 =.*|CONFIG_AUFS_BRANCH_MAX_1023 = y|' \ |
slaxemulator@7297 | 40 config.mk || return 1 |
slaxemulator@7297 | 41 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
slaxemulator@7297 | 42 config.mk || return 1 |
slaxemulator@7297 | 43 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
slaxemulator@7297 | 44 config.mk || return 1 |
slaxemulator@7297 | 45 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
slaxemulator@7297 | 46 config.mk || return 1 |
slaxemulator@7297 | 47 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
slaxemulator@7297 | 48 config.mk || return 1 |
slaxemulator@7297 | 49 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
slaxemulator@7297 | 50 config.mk || return 1 |
slaxemulator@7297 | 51 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
slaxemulator@7297 | 52 config.mk || return 1 |
slaxemulator@7297 | 53 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \ |
slaxemulator@7297 | 54 config.mk || return 1 |
slaxemulator@7297 | 55 |
slaxemulator@7651 | 56 #patch -Np1 -i ../stuff/aufs2-module-2.6.36.patch |
slaxemulator@7297 | 57 #make KDIR=/usr/src/linux clean |
slaxemulator@8085 | 58 make -j 1 KDIR=/usr/src/linux |
slaxemulator@7297 | 59 } |
slaxemulator@7297 | 60 |
slaxemulator@7297 | 61 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7297 | 62 genpkg_rules() |
slaxemulator@7297 | 63 { |
slaxemulator@7297 | 64 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
slaxemulator@7297 | 65 EXTRAVERSION=_$KERNEL_VERSION |
slaxemulator@7297 | 66 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs |
slaxemulator@7297 | 67 lzma e $src/fs/aufs/aufs.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz |
slaxemulator@7297 | 68 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz |
slaxemulator@7297 | 69 chown 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/fs/aufs/aufs.ko.gz |
slaxemulator@7297 | 70 } |
slaxemulator@7297 | 71 |
slaxemulator@7297 | 72 post_install() |
slaxemulator@7297 | 73 { |
slaxemulator@7297 | 74 echo "Processing post-install commands..." |
slaxemulator@7297 | 75 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@7297 | 76 } |
slaxemulator@7297 | 77 |
slaxemulator@7297 | 78 post_remove() |
slaxemulator@7297 | 79 { |
slaxemulator@7297 | 80 echo "Processing post-remove commands..." |
slaxemulator@7297 | 81 depmod -a |
slaxemulator@8085 | 82 } |