wok diff aufs/receipt @ rev 1874

Fix BUILD_DEPENDS and little hack for amsn
author Julien Rabier <taziden@slitaz.org>
date Wed Dec 17 04:47:23 2008 +0100 (2008-12-17)
parents
children e50c7e65f610
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/aufs/receipt	Wed Dec 17 04:47:23 2008 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="aufs"
     1.7 +VERSION="20081206"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Stackable unification FileSystem Linux kernel module."
    1.10 +MAINTAINER="pascal.bellard@ads-lu.com"
    1.11 +WEB_SITE="http://$PACKAGE.sourceforge.net/"
    1.12 +BUILD_DEPENDS="cvs"
    1.13 +
    1.14 +# Rules to configure and make the package.
    1.15 +compile_rules()
    1.16 +{
    1.17 +	cvsroot=anonymous@$PACKAGE.cvs.sourceforge.net:/cvsroot
    1.18 +	if [ ! -d $src ]; then
    1.19 +		cvs -z3 -d:pserver:$cvsroot/$PACKAGE co -D$VERSION $PACKAGE
    1.20 +		mv $PACKAGE $src
    1.21 +	fi
    1.22 +	local kver
    1.23 +	if [ ! -d ../linux/taz ]; then
    1.24 +		tazwok cook linux
    1.25 +	fi
    1.26 +	kver=$(grep "kernel version" ../linux/linux-*/.config)
    1.27 +	kver=${kver##* }
    1.28 +	cd $src
    1.29 +	ln -s $(cd ../../linux/linux-$kver* ; pwd)/include/linux/* include/linux
    1.30 +	make KDIR=$(cd ../../linux/linux-$kver* ; pwd) -f local.mk
    1.31 +	mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/ _pkg/sbin
    1.32 +	mkdir -p _pkg/etc/default
    1.33 +	cp $(readlink aufs.ko) _pkg/lib/modules/$kver-slitaz/kernel/fs/aufs/
    1.34 +	cp util/etc_default_aufs _pkg/etc/default/aufs
    1.35 +	chmod 644 _pkg/etc/default/aufs
    1.36 +	echo FLUSH=ALL > _pkg/etc/default/auplink
    1.37 +	for i in umount.aufs mount.aufs auplink aulchown aufind.sh auchk; do
    1.38 +		cp $(readlink $i) _pkg/sbin
    1.39 +		chmod 500 _pkg/sbin/$i
    1.40 +	done
    1.41 +}
    1.42 +
    1.43 +
    1.44 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.45 +genpkg_rules()
    1.46 +{
    1.47 +	cp -a $_pkg/lib $fs
    1.48 +}
    1.49 +
    1.50 +# Post install/remove commands for Tazpkg.
    1.51 +post_install()
    1.52 +{
    1.53 +	depmod -a -b "$1/"
    1.54 +}
    1.55 +
    1.56 +post_remove()
    1.57 +{
    1.58 +	depmod -a
    1.59 +}
    1.60 +