1 # $Id: PKGBUILD 70561 2010-02-27 12:47:30Z tpowa $
2 # Maintainer: cwchen <linuxisfun0104@gmail.com>
3 # Contributor: Paul Mattal <pjmattal@elys.com>
8 _kernver=${pkgver%_*}-ck
9 pkgdesc="Another Unionfs Implementation"
10 arch=('i686' 'x86_64')
11 url="http://aufs.sourceforge.net/"
13 depends=('kernel26-ck>=2.6.33' 'kernel26-ck<2.6.34')
14 #makedepends=('kernel26-headers>=2.6.33' 'kernel26-headers<2.6.34')
16 install=${pkgname}.install
17 source=(ftp://ftp.archlinux.org/other/aufs2/${_pkgfile}-${pkgver}.tar.gz)
19 md5sums=('4f54f9a77b86e2cbab01455613b8e3f6')
22 cd ${srcdir}/${_pkgfile}-${pkgver} || return 1
23 sed -i 's|CONFIG_AUFS_HINOTIFY =.*|CONFIG_AUFS_HINOTIFY = y|' \
25 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
27 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
29 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
31 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
33 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
35 if [ "${CARCH}" = "x86_64" ]; then
40 sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =${inot64}|" \
43 make KDIR=/usr/src/linux-${_kernver} || return 1
45 install -D -m644 fs/aufs/aufs.ko \
46 $pkgdir/lib/modules/${_kernver}/kernel/fs/aufs/aufs.ko || return 1
47 # tweak the install script for the right kernel version
48 sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
49 $startdir/$pkgname.install || return 1
50 # install include files
51 install -D -m 644 include/linux/aufs_type.h $pkgdir/usr/src/linux-$_kernver/include/linux/aufs_type.h || return 1