# SliTaz package receipt.

PACKAGE="aufs-utils"
VERSION="20110214"
CATEGORY="system-tools"
SHORT_DESC="The aufs utils."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://aufs.sourceforge.net/"
WGET_URL="git|http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-util.git"
BRANCH="origin/aufs2.1"

DEPENDS="aufs"
BUILD_DEPENDS="git linux-module-headers aufs"

# Rules to configure and make the package.
compile_rules()
{
	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
	cd $src
	sed -i 's/-m 644 -T/-m 644/' Makefile
	make && 
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/sbin $fs
	cp -a $_pkg/usr/bin $fs/usr
}