wok-current annotate aufs/receipt @ rev 1823
Add aufs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 06 22:26:39 2008 +0100 (2008-12-06) |
parents | |
children | e50c7e65f610 |
rev | line source |
---|---|
pascal@1823 | 1 # SliTaz package receipt. |
pascal@1823 | 2 |
pascal@1823 | 3 PACKAGE="aufs" |
pascal@1823 | 4 VERSION="20081206" |
pascal@1823 | 5 CATEGORY="base-system" |
pascal@1823 | 6 SHORT_DESC="Stackable unification FileSystem Linux kernel module." |
pascal@1823 | 7 MAINTAINER="pascal.bellard@ads-lu.com" |
pascal@1823 | 8 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@1823 | 9 BUILD_DEPENDS="cvs" |
pascal@1823 | 10 |
pascal@1823 | 11 # Rules to configure and make the package. |
pascal@1823 | 12 compile_rules() |
pascal@1823 | 13 { |
pascal@1823 | 14 cvsroot=anonymous@$PACKAGE.cvs.sourceforge.net:/cvsroot |
pascal@1823 | 15 if [ ! -d $src ]; then |
pascal@1823 | 16 cvs -z3 -d:pserver:$cvsroot/$PACKAGE co -D$VERSION $PACKAGE |
pascal@1823 | 17 mv $PACKAGE $src |
pascal@1823 | 18 fi |
pascal@1823 | 19 local kver |
pascal@1823 | 20 if [ ! -d ../linux/taz ]; then |
pascal@1823 | 21 tazwok cook linux |
pascal@1823 | 22 fi |
pascal@1823 | 23 kver=$(grep "kernel version" ../linux/linux-*/.config) |
pascal@1823 | 24 kver=${kver##* } |
pascal@1823 | 25 cd $src |
pascal@1823 | 26 ln -s $(cd ../../linux/linux-$kver* ; pwd)/include/linux/* include/linux |
pascal@1823 | 27 make KDIR=$(cd ../../linux/linux-$kver* ; pwd) -f local.mk |
pascal@1823 | 28 mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/ _pkg/sbin |
pascal@1823 | 29 mkdir -p _pkg/etc/default |
pascal@1823 | 30 cp $(readlink aufs.ko) _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/ |
pascal@1823 | 31 cp util/etc_default_aufs _pkg/etc/default/aufs |
pascal@1823 | 32 chmod 644 _pkg/etc/default/aufs |
pascal@1823 | 33 echo FLUSH=ALL > _pkg/etc/default/auplink |
pascal@1823 | 34 for i in umount.aufs mount.aufs auplink aulchown aufind.sh auchk; do |
pascal@1823 | 35 cp $(readlink $i) _pkg/sbin |
pascal@1823 | 36 chmod 500 _pkg/sbin/$i |
pascal@1823 | 37 done |
pascal@1823 | 38 } |
pascal@1823 | 39 |
pascal@1823 | 40 |
pascal@1823 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1823 | 42 genpkg_rules() |
pascal@1823 | 43 { |
pascal@1823 | 44 cp -a $_pkg/lib $fs |
pascal@1823 | 45 } |
pascal@1823 | 46 |
pascal@1823 | 47 # Post install/remove commands for Tazpkg. |
pascal@1823 | 48 post_install() |
pascal@1823 | 49 { |
pascal@1823 | 50 depmod -a -b "$1/" |
pascal@1823 | 51 } |
pascal@1823 | 52 |
pascal@1823 | 53 post_remove() |
pascal@1823 | 54 { |
pascal@1823 | 55 depmod -a |
pascal@1823 | 56 } |
pascal@1823 | 57 |