wok-6.x rev 1823
Add aufs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 06 22:26:39 2008 +0100 (2008-12-06) |
parents | 2fa039deb90f |
children | 2644b287815c |
files | aufs-utils/receipt aufs/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/aufs-utils/receipt Sat Dec 06 22:26:39 2008 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="aufs-utils" 1.7 +VERSION="20081206" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="Stackable unification FileSystem utilities." 1.10 +MAINTAINER="pascal.bellard@ads-lu.com" 1.11 +WEB_SITE="http://$PACKAGE.sourceforge.net/" 1.12 +WANTED="aufs" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + cp -a $_pkg/sbin $_pkg/etc $fs 1.18 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/aufs/receipt Sat Dec 06 22:26:39 2008 +0100 2.3 @@ -0,0 +1,57 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="aufs" 2.7 +VERSION="20081206" 2.8 +CATEGORY="base-system" 2.9 +SHORT_DESC="Stackable unification FileSystem Linux kernel module." 2.10 +MAINTAINER="pascal.bellard@ads-lu.com" 2.11 +WEB_SITE="http://$PACKAGE.sourceforge.net/" 2.12 +BUILD_DEPENDS="cvs" 2.13 + 2.14 +# Rules to configure and make the package. 2.15 +compile_rules() 2.16 +{ 2.17 + cvsroot=anonymous@$PACKAGE.cvs.sourceforge.net:/cvsroot 2.18 + if [ ! -d $src ]; then 2.19 + cvs -z3 -d:pserver:$cvsroot/$PACKAGE co -D$VERSION $PACKAGE 2.20 + mv $PACKAGE $src 2.21 + fi 2.22 + local kver 2.23 + if [ ! -d ../linux/taz ]; then 2.24 + tazwok cook linux 2.25 + fi 2.26 + kver=$(grep "kernel version" ../linux/linux-*/.config) 2.27 + kver=${kver##* } 2.28 + cd $src 2.29 + ln -s $(cd ../../linux/linux-$kver* ; pwd)/include/linux/* include/linux 2.30 + make KDIR=$(cd ../../linux/linux-$kver* ; pwd) -f local.mk 2.31 + mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/ _pkg/sbin 2.32 + mkdir -p _pkg/etc/default 2.33 + cp $(readlink aufs.ko) _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/ 2.34 + cp util/etc_default_aufs _pkg/etc/default/aufs 2.35 + chmod 644 _pkg/etc/default/aufs 2.36 + echo FLUSH=ALL > _pkg/etc/default/auplink 2.37 + for i in umount.aufs mount.aufs auplink aulchown aufind.sh auchk; do 2.38 + cp $(readlink $i) _pkg/sbin 2.39 + chmod 500 _pkg/sbin/$i 2.40 + done 2.41 +} 2.42 + 2.43 + 2.44 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.45 +genpkg_rules() 2.46 +{ 2.47 + cp -a $_pkg/lib $fs 2.48 +} 2.49 + 2.50 +# Post install/remove commands for Tazpkg. 2.51 +post_install() 2.52 +{ 2.53 + depmod -a -b "$1/" 2.54 +} 2.55 + 2.56 +post_remove() 2.57 +{ 2.58 + depmod -a 2.59 +} 2.60 +