1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils linux-mod
7 DESCRIPTION="An entirely re-designed and re-implemented Unionfs."
8 HOMEPAGE="http://aufs.sourceforge.net/"
9 SRC_URI="http://dev.gentooexperimental.org/~tommy/${P}.tar.bz2"
13 KEYWORDS="~amd64 ~x86"
18 MODULE_NAMES="aufs(addon/fs/${PN}:)"
21 # kernel version check
22 if kernel_is lt 2 6 16 ; then
23 eerror "${PN} is being developed and tested on linux-2.6.16 and later."
24 eerror "Make sure you have a proper kernel version!"
25 die "Wrong kernel version"
35 epatch "${FILESDIR}/${P}-disable_security_inode_permission.patch"
37 # Enable hinotify in priv_def.mk
38 if use hinotify && kernel_is ge 2 6 18 ; then
39 echo "CONFIG_AUFS_HINOTIFY = y" >> priv_def.mk || die "setting hinotify in priv_def.mk failed!"
42 # Disable SYSAUFS for kernel less than 2.6.18
43 if kernel_is lt 2 6 18 ; then
44 echo "CONFIG_AUFS_SYSAUFS = " >> priv_def.mk || die "unsetting sysaufs in priv_def.mk failed!"
47 # Check if a vserver-kernel is installed
48 if [[ -e ${KV_DIR}/include/linux/vserver ]] ; then
49 einfo "vserver kernel seems to be installed"
50 einfo "using vserver patch"
51 echo "AUFS_DEF_CONFIG = -DVSERVER" >> priv_def.mk || die "setting vserver in priv_def.mk failed!"
57 use amd64 && ARCH=x86_64
58 emake KDIR=${KV_DIR} -f local.mk || die "emake failed"
65 doexe mount.aufs umount.aufs auplink aulchown
71 elog "To be able to use aufs, you have to load the kernel module by typing:"
73 elog "For further information refer to the aufs man page"
75 linux-mod_pkg_postinst