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