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