wok-stable annotate aufs/receipt @ rev 1882
aufs*: use squashfs naming convention
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 17 14:43:38 2008 +0000 (2008-12-17) |
parents | 6b4c613de1c1 |
children | d5139637d409 |
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@1882 | 6 SHORT_DESC="Stackable unification FileSystem utilities." |
pascal@1823 | 7 MAINTAINER="pascal.bellard@ads-lu.com" |
pascal@1823 | 8 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@1882 | 9 DEPENDS="aufs-module" |
pascal@1823 | 10 BUILD_DEPENDS="cvs" |
pascal@1823 | 11 |
pascal@1823 | 12 # Rules to configure and make the package. |
pascal@1823 | 13 compile_rules() |
pascal@1823 | 14 { |
pascal@1823 | 15 cvsroot=anonymous@$PACKAGE.cvs.sourceforge.net:/cvsroot |
pascal@1823 | 16 if [ ! -d $src ]; then |
pascal@1823 | 17 cvs -z3 -d:pserver:$cvsroot/$PACKAGE co -D$VERSION $PACKAGE |
pascal@1823 | 18 mv $PACKAGE $src |
pascal@1823 | 19 fi |
pascal@1823 | 20 local kver |
pascal@1823 | 21 if [ ! -d ../linux/taz ]; then |
pascal@1823 | 22 tazwok cook linux |
pascal@1823 | 23 fi |
pascal@1823 | 24 kver=$(grep "kernel version" ../linux/linux-*/.config) |
pascal@1823 | 25 kver=${kver##* } |
pascal@1823 | 26 cd $src |
pascal@1823 | 27 ln -s $(cd ../../linux/linux-$kver* ; pwd)/include/linux/* include/linux |
pascal@1823 | 28 make KDIR=$(cd ../../linux/linux-$kver* ; pwd) -f local.mk |
pascal@1823 | 29 mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/ _pkg/sbin |
pascal@1823 | 30 mkdir -p _pkg/etc/default |
pascal@1823 | 31 cp $(readlink aufs.ko) _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/ |
pascal@1823 | 32 cp util/etc_default_aufs _pkg/etc/default/aufs |
pascal@1823 | 33 chmod 644 _pkg/etc/default/aufs |
pascal@1823 | 34 echo FLUSH=ALL > _pkg/etc/default/auplink |
pascal@1823 | 35 for i in umount.aufs mount.aufs auplink aulchown aufind.sh auchk; do |
pascal@1823 | 36 cp $(readlink $i) _pkg/sbin |
pascal@1823 | 37 chmod 500 _pkg/sbin/$i |
pascal@1823 | 38 done |
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@1882 | 44 cp -a $_pkg/sbin $_pkg/etc $fs |
pascal@1823 | 45 } |
pascal@1823 | 46 |